~gg/blog-theme

ref: e58dcc41038b5c49bb129503bb28c1c0c5745b75 blog-theme/layouts/partials/noscript.html -rw-r--r-- 547 bytes
e58dcc41 — Gui Goncalves Add color scheme, noscript partial 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script type="text/javascript">
 function ready(fn) {
   if (document.readyState != 'loading'){
     fn();
   } else {
     document.addEventListener('DOMContentLoaded', fn);
   }
 }

 ready(() => {
   const h1 = document.createElement('h1');
   h1.innerText = 'Please disable JavaScript';
   h1.style.color = 'white';
   h1.style.position = 'absolute';
   h1.style.width = '100%';
   h1.style.zIndex = 10;
   h1.style.textAlign = 'center';
   document.body.appendChild(h1);
 });
</script>
<script src="{{ .Site.BaseURL }}js/mystify.js"></script>