Expand all ChatGPT prompts

This commit is contained in:
fechin committed 2023-02-10 14:37:22 +08:00
1 parent 40cdf0dc8e
commit 397c00dfa6
1 file changed
+2 -2
+2 -2
View File
@@ -75,8 +75,8 @@ window.addEventListener('load', () => {
/******** List Collapsible ***********/
document.querySelectorAll("ul.collapsible > li > strong").forEach(function (strong) {
let li = strong.parentElement;
// li.classList.add("active");
// strong.classList.toggle("arrow-down");
li.classList.add("active");
strong.classList.toggle("arrow-down");
strong.addEventListener("click", function () {
li.classList.toggle("active");
this.classList.toggle("arrow-down");