diff options
author | 2022-02-21 14:28:16 +0000 | |
---|---|---|
committer | 2022-02-21 14:28:16 +0000 | |
commit | 91dd3ae025a967c24a91b65baf9c7ddac57ff848 (patch) | |
tree | c1b870c3c498e5f8c115e372ff94ecee26f743cd /pydis_site/static/js/content/page.js | |
parent | Update .gitignore to ignore MacOS system files (diff) | |
parent | Merge pull request #668 from python-discord/update/name-profile-policy (diff) |
Merge branch 'main' into update-gitignore
Diffstat (limited to 'pydis_site/static/js/content/page.js')
-rw-r--r-- | pydis_site/static/js/content/page.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pydis_site/static/js/content/page.js b/pydis_site/static/js/content/page.js deleted file mode 100644 index 366a033c..00000000 --- a/pydis_site/static/js/content/page.js +++ /dev/null @@ -1,13 +0,0 @@ -document.addEventListener("DOMContentLoaded", () => { - const headers = document.getElementsByClassName("collapsible"); - for (const header of headers) { - header.addEventListener("click", () => { - var content = header.nextElementSibling; - if (content.style.maxHeight){ - content.style.maxHeight = null; - } else { - content.style.maxHeight = content.scrollHeight + "px"; - } - }); - } -}); |