mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 15:36:38 +02:00
* fix setup html (recent version crashed)
maybe the issue was regarding the flower brackets
This commit is contained in:
parent
75e7eb8bb2
commit
ec08f58a46
2 changed files with 10 additions and 15 deletions
File diff suppressed because one or more lines are too long
|
@ -151,19 +151,14 @@
|
|||
<p class="right"><a href="{IP}/reboot">Reboot</a></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
var coll = document.getElementsByClassName("s_collapsible");
|
||||
var i;
|
||||
|
||||
for (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";
|
||||
}
|
||||
content.style.display = (content.style.display === "block") ? "none" : "block";
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue