Skip to content

Instantly share code, notes, and snippets.

@TheGP
Created April 20, 2015 18:29
Show Gist options
  • Select an option

  • Save TheGP/e394b6416af7bbbd863c to your computer and use it in GitHub Desktop.

Select an option

Save TheGP/e394b6416af7bbbd863c to your computer and use it in GitHub Desktop.
pt - no popup with email form
<script>
var pt_no_popup_count = 0;
var pt_no_popup = setInterval(function(){
if (document.getElementById('cd-noemail-popup')) {
document.getElementById('cd-noemail-popup').style.display = 'none';
if (document.getElementById('pt-modal-backdrop'))
document.getElementById('pt-modal-backdrop').style.display = 'none';
pt_no_popup_count++;
if (40 < pt_no_popup_count) {
clearInterval(pt_no_popup);
}
}
}, 200);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment