Varia's website, varia.zone or vvvvvvaria.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
668 B

window.addEventListener("load", function() {
document.querySelector(".wiki-nav-button").addEventListener('click', function(event) {
document.querySelector(".wiki-links").classList.toggle('nodisplay');
event.target.text = event.target.text == "Expand Menu" ? "Collapse Menu" : "Expand Menu";
}, false);
var expanders = document.querySelectorAll(".wiki-dir-expander");
for (i = 0; i < expanders.length; ++i) {
expanders[i].addEventListener('click', function(event) {
event.target.parentElement.nextSibling.nextSibling.classList.toggle("nodisplay");
event.target.text = event.target.text == "+" ? "-" : "+";
}, false);
};
}, false);