mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-25 08:01:53 -05:00
Remove JS
This commit is contained in:
parent
f7856be21b
commit
760ca35507
|
|
@ -1,12 +0,0 @@
|
|||
// I stole this code.
|
||||
for(let el of document.querySelectorAll("details")) {
|
||||
el.addEventListener("click", evt => {
|
||||
// Close detail elements if clicking elsewhere
|
||||
let path = evt.path || [];
|
||||
document.querySelectorAll("details[open]").forEach(el => {
|
||||
if (!path.includes(el)) {
|
||||
el.removeAttribute("open");
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -152,6 +152,4 @@
|
|||
|
||||
<footer>Copyright 2020 - Design by mrjvs, development by Jip Fr</footer>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="main.js"></script>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user