make the js only script actually work

This commit is contained in:
blek 2023-10-01 20:47:38 +10:00
parent 3798b63c4b
commit 6bd7171173
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 5 additions and 3 deletions

View File

@ -1,2 +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'})
// 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

@ -13,7 +13,6 @@
<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>
@ -45,5 +44,8 @@
</tbody>
</table>
</div>
<script src="/js-only.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>