Created
May 6, 2015 10:15
-
-
Save ooooak/115dda2f5d38b27da075 to your computer and use it in GitHub Desktop.
revolution: stop video on next slide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
if (typeof revapi2 === 'undefined'){ | |
return; | |
} | |
revapi2.bind("revolution.slide.onloaded",function (e,data) { | |
revapi2.bind("revolution.slide.onchange",function (e,data) { | |
var iframes = $('.rev_slider > ul > li iframe'); | |
$('.rev_slider > ul > li iframe').each(function(index, el) { | |
var $el = $(el); | |
$el.attr('src', $el.attr(src)); | |
}); | |
}); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It worked perfectly, thanks!!