This commit is contained in:
Elias Schriefer 2024-07-08 23:19:20 +02:00
parent 1cbab5f8fa
commit 6ad314ef11

View File

@ -87,7 +87,6 @@ rating.addEventListener("mousemove", (event) => {
if (!dataset.storageGetKey("is-rated", false)) {
let bounds = rating.getBoundingClientRect();
currentRating = Math.round(((event.clientX - bounds.left) / bounds.width) * 5);
console.log(currentRating);
rating.value = currentRating;
}