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>
master
Raymon Zutekouw 3 years ago
parent cb77ed1a2d
commit bfcd3f9c8f
Signed by: raymon
GPG Key ID: 0E62222846283925
  1. 7
      client/templates/post_index_page.html

@ -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>

Loading…
Cancel
Save