Prompt user to turn off JavaScript on posts page

- Credits to Heydon Pickering
  - From the talk "State of the browser 2021; Please Disable JavaScript To View This Site"

Signed-off-by: Raymonzut <me@raymon.dev>
This commit is contained in:
2022-03-18 22:49:35 +01:00
parent cb77ed1a2d
commit bfcd3f9c8f
+7
View File
@@ -14,6 +14,13 @@
media="all" media="all"
> >
<link defer rel="stylesheet" href="/css/general.css" media="all"> <link defer rel="stylesheet" href="/css/general.css" media="all">
<script type="text/javascript">
document.addEventListener('DOMContentLoaded',
() => document.body.textContent = 'Please disable JavaScript to view the blog posts.',
false);
</script>
</head> </head>
<body> <body>
<main> <main>