From 6edc612ed689236f746d3041209f9c52832d9c9b Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Thu, 2 Mar 2023 12:30:39 +1100 Subject: [PATCH] Fixed gitignore --- .gitignore | 20 ++++++------ app/interface/static/interface/icon.png | Bin 0 -> 258 bytes .../static/interface/js/interface.js | 29 ++++++++++++++++++ app/interface/templates/base.html | 4 +-- 4 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 app/interface/static/interface/icon.png create mode 100644 app/interface/static/interface/js/interface.js diff --git a/.gitignore b/.gitignore index f40d561..67709bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,15 @@ __pycache__ *.pyc -db.sqlite3 +*.sqlite3 +credentials.json credentials local_settings.py -env -old -test.* -static -teststore -cache -local_storage -media +.coverage +/env +/data +/old +/static +/teststore +/cache +/local_storage +/media diff --git a/app/interface/static/interface/icon.png b/app/interface/static/interface/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..237adb008e6970522a2133059eccd5d255567add GIT binary patch literal 258 zcmV+d0sa1oP)jm+Ne3GQ! zI~aN1F}Tpkl}zG6Dp*z}1eR6VmrSaK%%lZ}JUb+Qq%?BI;%s>+;4}0j4cd>NqiR2* zkrON{BsbNXn{W)ZY&~c{0?AQpMsiaVj#HGdTDJZxg95&g+ys^tkR16HavhfFRwTFP zFj!Wz { + + // Get all "navbar-burger" elements + const navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); + + // Add a click event on each of them + navbarBurgers.forEach( el => { + el.addEventListener('click', () => { + + // Get the target from the "data-target" attribute + const target = document.getElementById(el.dataset.target); + + // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" + el.classList.toggle('is-active'); + target.classList.toggle('is-hidden-touch'); + + }); + }); + + + // set all active links + const here = location.toString(); + for (const el of document.getElementsByTagName('a')) { + if (el.href == here) { + el.classList.add('is-active'); + } + } + +}); \ No newline at end of file diff --git a/app/interface/templates/base.html b/app/interface/templates/base.html index 8e2cbe3..2d9eca7 100644 --- a/app/interface/templates/base.html +++ b/app/interface/templates/base.html @@ -23,8 +23,8 @@