_includes/monumetric/ads.html in appscms-tools-theme-3.0.4 vs _includes/monumetric/ads.html in appscms-tools-theme-3.0.5

- old
+ new

@@ -1,58 +1,58 @@ -{% if page.url != '/' %} -{% if jekyll.environment == 'production' and site.adsId %} -<script> - const autoLoadDuration = 5; //In Seconds - const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"]; - - const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000); - - eventList.forEach(function (event) { - window.addEventListener(event, triggerScripts, { passive: true }) - }); - - function triggerScripts() { - runScripts(); - clearTimeout(autoLoadTimeout); - eventList.forEach(function (event) { - window.removeEventListener(event, triggerScripts, { passive: true }); - }); - } - - function runScripts() { - document.querySelectorAll("script[delay]").forEach(function (scriptTag) { - scriptTag.setAttribute("src", scriptTag.getAttribute("delay")); - }); - } -</script> -<script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script> -{% endif %} - -{% if jekyll.environment == 'development' and site.adsId %} -<script> - const autoLoadDuration = 5; //In Seconds - const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"]; - - const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000); - - eventList.forEach(function (event) { - window.addEventListener(event, triggerScripts, { passive: true }) - }); - - function triggerScripts() { - runScripts(); - clearTimeout(autoLoadTimeout); - eventList.forEach(function (event) { - window.removeEventListener(event, triggerScripts, { passive: true }); - }); - } - - function runScripts() { - document.querySelectorAll("script[delay]").forEach(function (scriptTag) { - scriptTag.setAttribute("src", scriptTag.getAttribute("delay")); - }); - } -</script> -<script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script> - -{% endif %} +{% if page.url != '/' %} +{% if jekyll.environment == 'production' and site.adsId %} +<script> + const autoLoadDuration = 5; //In Seconds + const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"]; + + const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000); + + eventList.forEach(function (event) { + window.addEventListener(event, triggerScripts, { passive: true }) + }); + + function triggerScripts() { + runScripts(); + clearTimeout(autoLoadTimeout); + eventList.forEach(function (event) { + window.removeEventListener(event, triggerScripts, { passive: true }); + }); + } + + function runScripts() { + document.querySelectorAll("script[delay]").forEach(function (scriptTag) { + scriptTag.setAttribute("src", scriptTag.getAttribute("delay")); + }); + } +</script> +<script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script> +{% endif %} + +{% if jekyll.environment == 'development' and site.adsId %} +<script> + const autoLoadDuration = 5; //In Seconds + const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"]; + + const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000); + + eventList.forEach(function (event) { + window.addEventListener(event, triggerScripts, { passive: true }) + }); + + function triggerScripts() { + runScripts(); + clearTimeout(autoLoadTimeout); + eventList.forEach(function (event) { + window.removeEventListener(event, triggerScripts, { passive: true }); + }); + } + + function runScripts() { + document.querySelectorAll("script[delay]").forEach(function (scriptTag) { + scriptTag.setAttribute("src", scriptTag.getAttribute("delay")); + }); + } +</script> +<script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script> + +{% endif %} {% endif %} \ No newline at end of file