This commit is contained in:
Junyi Hou 2024-03-04 19:44:29 +08:00
parent 0f2fc30529
commit e9269aadb8
2 changed files with 14 additions and 12 deletions

View file

@ -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>