Skip to content

Commit

Permalink
Update javascript.html
Browse files Browse the repository at this point in the history
remove bugged feature

Signed-off-by:  Maximilian Bauer <[email protected]>

Signed-off-by: Max <[email protected]>
  • Loading branch information
maxiangelo authored Feb 14, 2024
1 parent 8f7e33e commit 870ea95
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,22 +395,3 @@
});
});
</script>

{{/* This logic expands collapsed section when URL is loaded in browser*/}}
<script>
window.addEventListener(
"DOMContentLoaded",
() => {
"use strict";
const hash = (window.location.hash).slice(1);
const cardContents = document.querySelectorAll(".card-content");
cardContents.forEach((item) => {
const id = item.getAttribute("id");
if (hash === id) {
item.style.display = "";
} else {
item.style.display = "none";
}
});
});
</script>

0 comments on commit 870ea95

Please sign in to comment.