Remove old glitch storage class comments

This commit is contained in:
2024-02-01 02:57:55 -06:00
parent a2fb261232
commit f146ab048c

View File

@@ -109,22 +109,5 @@ const linkedDataTag = "<script type='application/ld+json'>" + JSON.stringify(lin
</head>
<body class="flex flex-col w-full max-w-full min-h-screen">
<slot />
</body><!-- <script type="text/javascript">
Is all of this too much effort to make the animation play in just the right way?
window.onbeforeunload = function() {
Remember the origin so it can be checked for page reloads
sessionStorage.setItem("origin", window.location.href);
}
window.onload = function() {
Display the glitch effect on new page loads or reloads.
let glitch_seen = sessionStorage.getItem('glitch')
if (glitch_seen !== 'true' || window.location.href === sessionStorage.getItem("origin")) {
sessionStorage.setItem('glitch', 'true')
document.getElementById('header').firstElementChild.classList.add('glitch')
}
}
</script>
-->
</body>
</html>