fix bug
This commit is contained in:
parent
0f2fc30529
commit
e9269aadb8
2 changed files with 14 additions and 12 deletions
|
@ -5,15 +5,17 @@
|
|||
</details>
|
||||
{{ end }}
|
||||
|
||||
<!-- <script>
|
||||
<script>
|
||||
document.querySelector(".toc").addEventListener("click", function () {
|
||||
event.preventDefault();
|
||||
if (this.open) {
|
||||
this.open = false;
|
||||
this.classList.remove("expanded");
|
||||
} else {
|
||||
this.open = true;
|
||||
this.classList.add("expanded");
|
||||
if (event.target.tagName !== "A") {
|
||||
event.preventDefault();
|
||||
if (this.open) {
|
||||
this.open = false;
|
||||
this.classList.remove("expanded");
|
||||
} else {
|
||||
this.open = true;
|
||||
this.classList.add("expanded");
|
||||
}
|
||||
}
|
||||
});
|
||||
</script> -->
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue