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')) {