changed the way how data.json is called
This commit is contained in:
@@ -26,6 +26,22 @@
|
||||
dropdownContent.style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
// Collapsible functionality for perks, buffs, etc.
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var coll = document.getElementsByClassName("collapsible-header");
|
||||
for (var i = 0; i < coll.length; i++) {
|
||||
coll[i].addEventListener("click", function() {
|
||||
this.classList.toggle("active");
|
||||
var content = this.nextElementSibling;
|
||||
if (content.style.display === "block") {
|
||||
content.style.display = "none";
|
||||
} else {
|
||||
content.style.display = "block";
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<header>
|
||||
|
||||
Reference in New Issue
Block a user