Skip to content

Instantly share code, notes, and snippets.

@atannus
Last active June 25, 2018 21:22
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 atannus/d8f129c9a51db978c1e76d7fd1856953 to your computer and use it in GitHub Desktop.
Save atannus/d8f129c9a51db978c1e76d7fd1856953 to your computer and use it in GitHub Desktop.
// Revela todas as máscaras.
function revealMasks(event) {
event.stopPropagation();
event.preventDefault();
if( typeof dataLayer !== 'undefined') {
dataLayer.push({'event': 'RevealMask'})
dataLayer.push({'ListingPageType': 'conversion'});
dataLayer.push({'event': 'PageTypeChange'})
}
$('.contactMask').fadeOut();
document.cookie="contactMasksRevealed=1; expires=Thu, 01 Jan 2100 00:00:00 UTC; path=/"
}
// Listener para remover máscaras.
$('.contactMask').on('click', null, revealMasks);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment