From abd7f98d85fc17657f1ff5634d1ca85b34bbf4c4 Mon Sep 17 00:00:00 2001 From: Tanza3D Date: Sun, 3 Dec 2023 01:53:22 +0000 Subject: [PATCH] fix chrome --- medals/css/main.css | 1 + medals/js/functions.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/medals/css/main.css b/medals/css/main.css index e69a2152..3821adc6 100644 --- a/medals/css/main.css +++ b/medals/css/main.css @@ -1765,6 +1765,7 @@ html { .medals__diff-vote input[type='range']::-webkit-slider-runnable-track { -webkit-appearance: none; height: 35px;; + background-color: transparent !important; } .medals__diff-vote input[type='range']::-webkit-slider-thumb { diff --git a/medals/js/functions.js b/medals/js/functions.js index b0d51747..585bfd34 100644 --- a/medals/js/functions.js +++ b/medals/js/functions.js @@ -421,13 +421,14 @@ async function loadMedal(strMedalName, updateAdminPanel = true) { strCurrentMedalName = colMedals[strMedalName].Name; strCurrentMedalMode = colMedals[strMedalName].Restriction; nCurrentMedalID = colMedals[strMedalName].MedalID; - + if(bLoggedIn) { document.getElementById("votepanel-thanks").classList.add("hidden"); if (colMedals[strMedalName].HasVoted == false) { document.getElementById("votepanel").classList.remove("hidden"); } else { document.getElementById("votepanel").classList.add("hidden"); } +} { if (FavMedals != null && nUserID != -1) @@ -1278,6 +1279,7 @@ function randomMedal() { } +if(bLoggedIn) { document.getElementById("vote-range-text").innerText = document.getElementById("vote-range").value; document.getElementById("vote-range").addEventListener("input", () => { @@ -1300,3 +1302,5 @@ document.getElementById("cast-vote").addEventListener("click", function() { document.getElementById("votepanel").classList.add("hidden"); document.getElementById("votepanel-thanks").classList.remove("hidden"); }); + +} \ No newline at end of file