From ed2d25ce332522cb72e583538af15f48fb4d7dba Mon Sep 17 00:00:00 2001 From: Tim Wijma Date: Thu, 3 Nov 2022 17:40:22 +0100 Subject: [PATCH] pause --- __pycache__/dashboard.cpython-310.pyc | Bin 2355 -> 2341 bytes dashboard_static/index.html | 1 + dashboard_static/js/events.js | 10 +++++++++- dashboard_static/style/style.css | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/__pycache__/dashboard.cpython-310.pyc b/__pycache__/dashboard.cpython-310.pyc index 85375b156a14c9eaff333debcc5b6fb171a426a8..8420058fe156290be959fe0b6dcc4bab295d5c2a 100644 GIT binary patch delta 80 zcmdliv{Z;MpO=@50SFGgNlxbF-pH58Xl&BgS(aLqk(XGa?~+=aU6Nm* wA6inLnpcvlADNn1WT@|(pHiBWYN%gQo>@|oTBKW0l%JKFT%x~u5o0qu0HYcpd;kCd diff --git a/dashboard_static/index.html b/dashboard_static/index.html index c87c293..6366f2b 100644 --- a/dashboard_static/index.html +++ b/dashboard_static/index.html @@ -113,6 +113,7 @@ arrow_downward + pause
diff --git a/dashboard_static/js/events.js b/dashboard_static/js/events.js index 8c5f63e..38d19c0 100644 --- a/dashboard_static/js/events.js +++ b/dashboard_static/js/events.js @@ -126,4 +126,12 @@ function updateSort(sort){ filters.sorted = sort; $(window).trigger("filter"); showFeeds() -} \ No newline at end of file +} + +$(".pause-btn").on("click", function() { + if($(".pause-btn").html() == "pause") { // Unpaused to paused + $(".pause-btn").html("play_arrow") + } else { // Paused to unpaused + $(".pause-btn").html("pause") + } +}) \ No newline at end of file diff --git a/dashboard_static/style/style.css b/dashboard_static/style/style.css index af837df..b17f7e1 100644 --- a/dashboard_static/style/style.css +++ b/dashboard_static/style/style.css @@ -325,3 +325,9 @@ body { .current-sort { line-height: 36px; } + +.material-symbols-outlined.pause-btn { + line-height: 52px; + font-weight: 600; + user-select: none; +} \ No newline at end of file