diff options
author | luxagraf <sng@luxagraf> | 2021-02-22 22:21:20 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-02-22 22:21:20 -0500 |
commit | f853066011b43137aa214e4dbb1055e9b53e7422 (patch) | |
tree | 50bdbb857a1c2d0f97cf3b0311410db783480146 | |
parent | 08a4d15c566ab98264ec6e50475077afec62c18f (diff) |
js: eliminated more inline js
-rw-r--r-- | design/templates/base.html | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/design/templates/base.html b/design/templates/base.html index 17d7278..61b9172 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -51,36 +51,7 @@ </p> </footer> {% block js %}{% endblock%} -<script> -<!-- -// Register our service-worker -//if (navigator.serviceWorker) { -// window.addEventListener('load', function() { -// if (navigator.serviceWorker.controller) { -// navigator.serviceWorker.controller.postMessage({'command': 'trimCaches'}); -// } else { -// navigator.serviceWorker.register('/serviceworker.js', { -// scope: '/' -// }); -// } -// }); -//} -//--> - -<!-- Piwik --> -var _paq = _paq || []; -_paq.push(["disableCookies"]); -_paq.push(['trackPageView']); -_paq.push(['enableLinkTracking']); -(function() { - var u="https://stats.luxagraf.net/"; - _paq.push(['setTrackerUrl', u+'piwik.php']); - _paq.push(['setSiteId', 1]); - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); - })(); -<!-- End Piwik Code --> -</script> -<noscript><p><img src="//stats.luxagraf.net/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript> +<script async src="/media/js/piwik.js"></script> +<noscript><p><img src="https://stats.luxagraf.net/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript> </body> </html> |