Created
January 8, 2018 11:02
-
-
Save Maxghp/bb6c08489a958f2d877b141e3757e744 to your computer and use it in GitHub Desktop.
Stop all vimeo video when close modal
This file contains hidden or 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
//stop all vimeo videos when close | |
//jquery require | |
$(function(){ | |
$('.modal, .close').click(function(){ | |
$("iframe").each(function() { | |
var src= $(this).attr('src'); | |
$(this).attr('src',src); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment