reasonably working calibreweb thing

This commit is contained in:
MassiveAtoms
2020-07-07 23:11:21 -03:00
commit 8ec8c686c6
38 changed files with 1752 additions and 0 deletions

View File

@ -0,0 +1,14 @@
var dropdown = document.getElementsByClassName("dropdown-btn");
var i;
for (i = 0; i < dropdown.length; i++) {
dropdown[i].addEventListener("click", function() {
this.classList.toggle("active");
var dropdownContent = this.nextElementSibling;
if (dropdownContent.style.display === "block") {
dropdownContent.style.display = "none";
} else {
dropdownContent.style.display = "block";
}
});
}