1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-08 13:09:09 +00:00

Add javascript nojs

This commit is contained in:
Luke Seers 2022-10-12 13:13:40 +02:00
parent 79e9421deb
commit d1f8c13b70
2 changed files with 4 additions and 0 deletions
_layouts
assets/javascript

View file

@ -7,5 +7,6 @@
{% include nav.html %}
{{ content }}
{% include footer.html %}
<script src="{{ site.assets_url }}javascript/nojs.js"></script>
</body>
</html>

View file

@ -0,0 +1,3 @@
document.querySelectorAll('nojs').forEach((nojs) => {
nojs.style.display = "none"
});