not very useful close button script (thanks unnick)
All checks were successful
/ build (push) Successful in 33s

This commit is contained in:
Ruben 2025-07-15 11:18:36 -05:00
commit 418222fc0c
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5
4 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,7 @@
// unnick asked for this, i provide.
// this provides no usefulness and there is no implementation to respawn windows. but i think it's funny and you can just reload anyways since it doesn't take long to load anyways
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll(".close-button").forEach(e => {
e.onclick = () => e.parentElement.parentElement.remove();
});
});