diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-06-08 20:18:49 -0500 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:18 +0200 |
| commit | 59e6a92c4f5c64c3b6b1a8a9e9b55ae03d7d021b (patch) | |
| tree | 4129bcda19d82defb9bb3aaa18621690fc068e8d /html/template.html | |
| parent | 2bc941c548c7249fe122fbdf43963b798cb2b14f (diff) | |
| download | muhqs-game-59e6a92c4f5c64c3b6b1a8a9e9b55ae03d7d021b.tar.gz muhqs-game-59e6a92c4f5c64c3b6b1a8a9e9b55ae03d7d021b.zip | |
move linkable rule js into seperate file
Diffstat (limited to 'html/template.html')
| -rw-r--r-- | html/template.html | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/html/template.html b/html/template.html index 5e473e3e..00f07880 100644 --- a/html/template.html +++ b/html/template.html @@ -276,26 +276,6 @@ $endif$ $for(header-includes)$ $header-includes$ $endfor$ -<script> -window.onload = function() { - for (let e of document.querySelectorAll(".rule")) { - // Add class via js to ensure there is no wrong - // sense of functionality in browsers without js - e.classList.add("linkable-rule"); - // TODO: support nested lists - e.onclick = function() { - if (e.matches(':hover') || e.matches(':active')) { - const origin = window.location.origin; - const path = window.location.pathname; - const anchor = e.id; - let url = origin + '/' + path + '#' + anchor; - navigator.clipboard.writeText(url); - // document.getElementsByTagName("body")[0].focus(); - } - } - } -} -</script> </head> <body> $for(include-before)$ |
