Last active
June 25, 2018 21:22
-
-
Save atannus/d8f129c9a51db978c1e76d7fd1856953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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