mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-08 08:09:03 -06:00
Remove old glitch storage class comments
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user