aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/js/content/page.js
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-02-02 00:15:44 +0100
committerGravatar GitHub <[email protected]>2022-02-02 00:15:44 +0100
commit09fb2a4df59be324fc41176227ae3c684e2f6add (patch)
tree9d5baa069f91419e3189115d143129b6dc4b8e31 /pydis_site/static/js/content/page.js
parentMerge pull request #649 from python-discord/update-pyfakefs (diff)
parentDuck pond removed when removing all filters. (diff)
Merge pull request #582 from python-discord/swfarnsworth/smarter-resources/merge-with-main
Smarter Resources
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";
- }
- });
- }
-});