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

Version Path
word-games-theme-1.5.4 _includes/Monumetric/Monumetric.html
word-games-theme-1.5.3 _includes/Monumetric/Monumetric.html
word-games-theme-1.5.2 _includes/Monumetric/Monumetric.html
word-games-theme-1.5.1 _includes/Monumetric/Monumetric.html
word-games-theme-1.5.0 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.9 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.8 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.7 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.6 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.5 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.4 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.3 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.2 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.1 _includes/Monumetric/Monumetric.html
word-games-theme-1.4.0 _includes/Monumetric/Monumetric.html
word-games-theme-1.3.9 _includes/Monumetric/Monumetric.html
word-games-theme-1.3.8 _includes/Monumetric/Monumetric.html
word-games-theme-1.3.6 _includes/Monumetric/Monumetric.html
word-games-theme-1.3.5 _includes/Monumetric/Monumetric.html
word-games-theme-1.3.4 _includes/Monumetric/Monumetric.html