Created
January 19, 2017 15:20
-
-
Save cougrimes/55759febd262c734a3091ae051d52c44 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
var cta_links = document.getElementsByClassName('cta-button'); | |
for (var k=0;k<cta_links.length;++k) { | |
cta_links[k].addEventListener('click', function(e) { | |
Munchkin.munchkinFunction('clickLink', { | |
href: window.location.pathname + 'cta-button' | |
} | |
e.stopPropagation(); | |
); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment