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-3.2.2 _includes/Monumetric/Monumetric.html
word-games-theme-3.2.1 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.9 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.8 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.7 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.6 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.5 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.4 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.3 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.2 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.1 _includes/Monumetric/Monumetric.html
word-games-theme-3.1.0 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.9 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.8 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.7 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.6 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.5 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.4 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.3 _includes/Monumetric/Monumetric.html
word-games-theme-3.0.2 _includes/Monumetric/Monumetric.html