Skip to content

Instantly share code, notes, and snippets.

@danieliser
Last active May 12, 2017 03:01
Show Gist options
  • Select an option

  • Save danieliser/91a8243e9cda22dee8f2 to your computer and use it in GitHub Desktop.

Select an option

Save danieliser/91a8243e9cda22dee8f2 to your computer and use it in GitHub Desktop.
Stop Vimeo video on popup close.
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', ''));
});
@jerrylee
Copy link
Copy Markdown

What is pumBeforeClose referencing please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment