Skip to content

Commit

Permalink
fix chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanza3D committed Dec 3, 2023
1 parent dc44693 commit abd7f98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions medals/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion medals/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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", () => {
Expand All @@ -1300,3 +1302,5 @@ document.getElementById("cast-vote").addEventListener("click", function() {
document.getElementById("votepanel").classList.add("hidden");
document.getElementById("votepanel-thanks").classList.remove("hidden");
});

}

0 comments on commit abd7f98

Please sign in to comment.