mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 09:45:31 +00:00
more refactoring of <head>; login -> alpine ajax
This commit is contained in:
10
views/layouts/components/_scripts.gohtml
Normal file
10
views/layouts/components/_scripts.gohtml
Normal file
@@ -0,0 +1,10 @@
|
||||
<script type="module">
|
||||
const hash = window.location.hash;
|
||||
if (hash) {
|
||||
const stripped = hash.slice(1);
|
||||
const element = document.getElementById(stripped);
|
||||
if (element) {
|
||||
element.setAttribute("aria-current", "location");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user