From 25fa70c2f094e47de9a18b7407986826bb8ac023 Mon Sep 17 00:00:00 2001 From: Tim Wijma Date: Wed, 2 Nov 2022 15:50:48 +0100 Subject: [PATCH 1/2] filter to chart --- dashboard_static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard_static/index.html b/dashboard_static/index.html index 54a6f1b..efb5e90 100644 --- a/dashboard_static/index.html +++ b/dashboard_static/index.html @@ -110,7 +110,7 @@
- Sports Popularity Filter + Sports Popularity Chart
From 963fab87b2f51ddace3aa446567bebbb08cc0538 Mon Sep 17 00:00:00 2001 From: msoliman3 Date: Wed, 2 Nov 2022 15:59:23 +0100 Subject: [PATCH 2/2] dark/light mode implementation pt.1 --- dashboard_static/js/events.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dashboard_static/js/events.js b/dashboard_static/js/events.js index 83ed769..7e0b801 100644 --- a/dashboard_static/js/events.js +++ b/dashboard_static/js/events.js @@ -46,4 +46,14 @@ $(".sort-dropdown-list li").on("click", function() { $(window).on("test", function(e, filter) { console.log(filter); +}) + +let root = document.querySelector(":root") + +$(".logo").on("click", function() { + if (root.style.getPropertyValue("--main-bg") === 'ghostwhite') { + root.style.setProperty('--main-bg', '#292929'); + } else { + root.style.setProperty('--main-bg', 'ghostwhite'); + } }) \ No newline at end of file