not very useful close button script (thanks unnick)
All checks were successful
/ build (push) Successful in 33s
All checks were successful
/ build (push) Successful in 33s
This commit is contained in:
parent
69264c0bd8
commit
418222fc0c
4 changed files with 19 additions and 3 deletions
7
_includes/scripts/close.js
Normal file
7
_includes/scripts/close.js
Normal 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();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue