From 5032ca83a0ae6d81709a4d7dec13ffdf92b8480c Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Fri, 17 Dec 2021 12:31:46 -0800 Subject: [PATCH] Update main-1.js --- js/main-1.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/main-1.js b/js/main-1.js index 78759ad3..84c99816 100644 --- a/js/main-1.js +++ b/js/main-1.js @@ -90,6 +90,11 @@ async function uploadFiles(filesRaw, destination, otherParams = '') { }) } +//Collapsible elements +function toggleCollapse(event) { + event.target.closest('.collapsible').classList.toggle('collapsed'); +} + //Input same value still enters const urlInputs = Array.from(document.querySelectorAll('input[type=url]')); urlInputs.forEach(element => {