Last active
May 12, 2017 03:01
-
-
Save danieliser/91a8243e9cda22dee8f2 to your computer and use it in GitHub Desktop.
Stop Vimeo video on popup close.
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
| jQuery('#pum-123') | |
| .on('pumBeforeClose', function () { | |
| var $iframe = jQuery('iframe', jQuery(this)), | |
| src = $iframe.prop('src'); | |
| $iframe.prop('src', '').prop('src', src.replace('&autoplay=1', '')); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is pumBeforeClose referencing please?