From d4468345659bbcc55d0612d35499b2174e504b19 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 4 Oct 2022 10:25:29 +0100 Subject: [PATCH] rename site-side-menu.js to main.js. Because the amount of JavaScript I've written, it doesn't make sense to separate things out into their own files yet. So, I've renamed the file to main.js and will add the little sprinkles of JavaScript here. If the amount of JavaScript grows, I will need to move things out of here but that is a future problem. --- static/js/{site-side-menu.js => main.js} | 4 ++++ 1 file changed, 4 insertions(+) rename static/js/{site-side-menu.js => main.js} (77%) diff --git a/static/js/site-side-menu.js b/static/js/main.js similarity index 77% rename from static/js/site-side-menu.js rename to static/js/main.js index e9fe1ac..6d22f33 100644 --- a/static/js/site-side-menu.js +++ b/static/js/main.js @@ -7,3 +7,7 @@ function toggleSiteSideMenu() { document.getElementById("be-site-side-menu").style.display = "flex"; } } + +function closeAlert() { + document.getElementById("be-alert-container").style.display = "none"; +}