add noscript

This commit is contained in:
Bruno Windels 2021-02-02 18:19:45 +01:00
parent 163c3a3f62
commit 623512c2b5
2 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,11 @@ body {
margin: 0;
}
noscript {
display: block;
padding: 20px;
}
p { line-height: 150%; }
a { text-decoration: none; }

View File

@ -12,5 +12,9 @@
import {main} from "./src/main.js";
main(document.body);
</script>
<noscript>
<h1>Please enable javascript</h1>
<p>Matrix.to preserves your privacy by only processing which rooms and people you view on the client side. For this to work, it needs javascript.</p>
</noscript>
</body>
</html>