diff options
author | Pjotr Prins | 2020-05-23 07:18:24 -0500 |
---|---|---|
committer | Pjotr Prins | 2020-05-23 07:18:24 -0500 |
commit | b203bb27172d7abeef60de5bff561de85c7ff11f (patch) | |
tree | 01352c25b9ef7f6796eb20d366563a2ea5a4279f /bh20simplewebuploader/static/main.js | |
parent | 1ba6c90b5ec49be6c6424916ac70dfcc11026853 (diff) | |
download | bh20-seq-resource-b203bb27172d7abeef60de5bff561de85c7ff11f.tar.gz bh20-seq-resource-b203bb27172d7abeef60de5bff561de85c7ff11f.tar.lz bh20-seq-resource-b203bb27172d7abeef60de5bff561de85c7ff11f.zip |
Website: added menu/toolbar
Diffstat (limited to 'bh20simplewebuploader/static/main.js')
-rw-r--r-- | bh20simplewebuploader/static/main.js | 15 |
1 files changed, 15 insertions, 0 deletions
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 => { |