Sha256: a6779638630f342865f9093a02416448c38fdb5b620ba2a591be9d951290eca9
Contents?: true
Size: 1.89 KB
Versions: 220
Compression:
Stored size: 1.89 KB
Contents
{% if jekyll.environment == 'production' and site.MonumetricID %} <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" defer delay="{{site.MonumetricID}}" data-cfasync="false"></script> {% endif %} {% if jekyll.environment == 'development' and site.MonumetricID %} <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="{{site.MonumetricID}}"></script> {% endif %}
Version data entries
220 entries across 220 versions & 1 rubygems