_includes/head/index.html in word-games-theme-0.9.3 vs _includes/head/index.html in word-games-theme-0.9.4

- old
+ new

@@ -27,18 +27,18 @@ <link rel="stylesheet" href="{{ '/assets/css/about.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/news.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/wordGroup.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/footer.css' | relative_url }}"> + {% include cssfile/links.html %} + <title> {%- unless page.layout == "home" -%} {{dataToShow.title }} {%- endunless -%} {{ page.title}}</title> - - <script> if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('./serviceworker.js') .then((reg) => console.log('Success: ', reg.scope)) @@ -100,34 +100,8 @@ {%- include Rating/structureddata.html -%} {%- endif -%} {%- include google-analytics.html -%} - - {%- if 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> - {%- endif -%} + {% include Monumetric/Monumetric.html %} </head> \ No newline at end of file