aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/js/content/page.js
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-02-21 14:28:16 +0000
committerGravatar GitHub <[email protected]>2022-02-21 14:28:16 +0000
commit91dd3ae025a967c24a91b65baf9c7ddac57ff848 (patch)
treec1b870c3c498e5f8c115e372ff94ecee26f743cd /pydis_site/static/js/content/page.js
parentUpdate .gitignore to ignore MacOS system files (diff)
parentMerge 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.js13
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";
- }
- });
- }
-});