From b203bb27172d7abeef60de5bff561de85c7ff11f Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 23 May 2020 07:18:24 -0500 Subject: Website: added menu/toolbar --- bh20simplewebuploader/static/main.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bh20simplewebuploader/static/main.js') diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index 024a101..6707096 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -1,3 +1,18 @@ +/* + * Menu and navigation + */ + +/* Toggle between adding and removing the "responsive" class to topnav + * when the user clicks on the icon */ +function myFunction() { + var x = document.getElementById("myTopnav"); + if (x.className === "topnav") { + x.className += " responsive"; + } else { + x.className = "topnav"; + } +} + function fetchAPI(apiEndPoint) { fetch(scriptRoot + apiEndPoint) .then(response => { -- cgit v1.2.3