Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Created February 5, 2014 15:50
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 thomasgriffin/8826589 to your computer and use it in GitHub Desktop.
Save thomasgriffin/8826589 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($){
$(document).on('OptinMonsterInit', function(event, data){
// If video is playing (add your own logic here), remove the optin.
if ( data.optin ) {
$('#om-' + data.optin).remove();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment