Skip to content

Instantly share code, notes, and snippets.

@igorsgm
Created February 1, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorsgm/13a89d1a11ded45dedf320b2c0476af2 to your computer and use it in GitHub Desktop.
Save igorsgm/13a89d1a11ded45dedf320b2c0476af2 to your computer and use it in GitHub Desktop.
js = jQuery.noConflict();
js(document).on('click', '.close', function () {
// Pausar e resetar video do YouTube
js(".modal iframe").attr("src", js(".modal iframe").attr("src"));
js('audio').each(function () {
this.pause(); // Pausar áudio
this.currentTime = 0; // Resetar tempo
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment