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 myVar = setInterval(function(){ | |
if(document.getElementById("test").classList.contains(className)) { | |
clearInterval(myVar); | |
// do stuff here. | |
} | |
}, 5000); |
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
window.dataLayer = window.dataLayer || []; | |
window.dataLayer.push({ | |
/* | |
* Transaction property should be hit scoped | |
* - fires one time per event and only for a single request | |
*/ | |
transaction : { | |
vertical : 'phone|background|email', | |
type : 'acquisition|upsell|cross-sell', | |
is_trial : true|false, |
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
(function (window, document) { | |
if (window.myfbq) return; | |
window.myfbq = (function () { | |
if (arguments.length > 0) { | |
var pixelId, trackType, contentObj; | |
if (typeof arguments[0] == 'string') pixelId = arguments[0]; | |
if (typeof arguments[1] == 'string') trackType = arguments[1]; | |
if (typeof arguments[2] == 'object') contentObj = arguments[2]; |