.js-only class

This commit is contained in:
blek 2023-10-01 20:42:22 +10:00
parent 06b2064678
commit 3798b63c4b
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 5 additions and 0 deletions

1
filed/static/js-only.css Normal file
View File

@ -0,0 +1 @@
.js-only{display:none}

2
filed/static/js-only.js Normal file
View File

@ -0,0 +1,2 @@
// This script displays all elements with `js-only` class.
(()=>{let a=document.getElementsByClassName('js-only');for(let i=0;i!=a.length;i++)a[i].style.display='initial'})

View File

@ -11,7 +11,9 @@
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;600;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/paint.css" />
<link rel="stylesheet" href="/form.css" />
<link rel="stylesheet" href="/js-only.css" />
<script src="/delay.js"></script>
<script src="/js-only.js"></script>
<title>blek! File</title>
{% block head %}{% endblock %}
</head>