}, function () {
$("span", this).text('Collapse');
});
+ $('section').hover(function() {
+ $(this).addClass('hover')
+ }, function() {
+ $(this).removeClass('hover')
+ })
+ setInterval(function() {
+ $('section.hover').each(function() {
+ if ($(this).attr('hoveron')) {
+ if ($('video')[0].currentTime-$(this).attr('hoveron')>1) {
+ $(this).removeAttr('hoveron').removeClass('hover');
+ }
+ }
+ })
+ }, 500);
+
});
</script>
</head>
}
if (!commandObject.running && commandObject.params["in"] < t && commandObject.params["out"] > t) {
commandObject.running = true;
+ if (typeof commandObject.flash=="undefined") {
+ var section = $(commandObject.target).parents('section');
+ if (!section.hasClass('hover')) {
+ section.addClass('hover');
+ section.attr('hoveron', $('video')[0].currentTime);
+ }
+ }
commandObject.onIn();
commandObject.displayOverlay();
}
margin-bottom: 15px;
}
-section:hover{
+section.hover{
-webkit-box-shadow: -1px 1px 1px #bdc7c6;
-moz-box-shadow: -1px 1px 1px #bdc7c6;
box-shadow: -1px 1px 1px #bdc7c6;