Compare commits

..

2 Commits

Author SHA1 Message Date
blek 6bd7171173
make the js only script actually work 2023-10-01 20:47:38 +10:00
blek 3798b63c4b
.js-only class 2023-10-01 20:42:22 +10:00
3 changed files with 7 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,6 +11,7 @@
<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>
<title>blek! File</title>
{% block head %}{% endblock %}
@ -43,5 +44,8 @@
</tbody>
</table>
</div>
<script src="/js-only.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>