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.
|
|
|
window.addEventListener('load', () => {
|
|
|
|
document.querySelectorAll(".thread").forEach(x=> x.classList.toggle("hidden"));
|
|
|
|
document.querySelectorAll(".script").forEach(x=> x.style=""); //unhide script-specific elements
|
|
|
|
|
|
|
|
document.querySelectorAll(".expand").forEach(x=> {
|
|
|
|
x.addEventListener("click", ()=> {
|
|
|
|
document.querySelector("[id='"+ x.getAttribute("href").slice(1) +"']").classList.toggle("hidden");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|