From 5b4aec2ab8ed6b2ecec709140ff893af0181e973 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Fri, 6 May 2022 11:24:07 -0400 Subject: [PATCH] css for the slider advanced.php updates birdnet.conf now removed privacy_server.py added snippets to update_birdnet_snippets.sh --- homepage/style.css | 30 ++ scripts/advanced.php | 15 +- scripts/privacy_server.py | 456 ----------------------------- scripts/update_birdnet_snippets.sh | 8 +- 4 files changed, 41 insertions(+), 468 deletions(-) delete mode 100755 scripts/privacy_server.py diff --git a/homepage/style.css b/homepage/style.css index 6469e1c..ba5e360 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -349,6 +349,36 @@ button:hover { width: 20%; } +.slider { + -webkit-appearance: none; + width: 33%; + height: 15px; + border-radius: 5px; + background: #d3d3d3; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 25px; + height: 25px; + border-radius: 50%; + background: #04AA6D; + cursor: pointer; +} + +.slider::-moz-range-thumb { + width: 25px; + height: 25px; + border-radius: 50%; + background: #04AA6D; + cursor: pointer; +} + #body::-webkit-scrollbar { # display:none #} diff --git a/scripts/advanced.php b/scripts/advanced.php index f3859df..87c1f89 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -111,12 +111,7 @@ if(isset($_GET['submit'])) { if(isset($_GET["privacy_threshold"])) { $privacy_threshold = $_GET["privacy_threshold"]; - if(strcmp($config['PRIVACY_THRESHOLD'], "1") == 0 ) { - $pmode = "on"; - }elseif(strcmp($config['PRIVACY_THRESHOLD'], "") == 0) { - $pmode = "off"; - } - if(strcmp($privacy_threshold,$pmode) !== 0) { + if(strcmp($privacy_threshold,$config['PRIVACY_THRESHOLD']) !== 0) { $contents = preg_replace("/PRIVACY_THRESHOLD=.*/", "PRIVACY_THRESHOLD=$privacy_threshold", $contents); $contents2 = preg_replace("/PRIVACY_THRESHOLD=.*/", "PRIVACY_THRESHOLD=$privacy_threshold", $contents2); } @@ -185,12 +180,12 @@ if (file_exists('./scripts/thisrun.txt')) {

- -

Value: %

+ +

Value: %