Commit
Author: isaacthefallenapple [46586828+isaacthefallenapple@users.noreply.github.com]
Committer: GitHub [noreply@github.com] Tue, 30 May 2023 18:15:50 +0000
Hash: d1c6e600bd43e965a79447520e6d345c8e4f9f33
Timestamp: Tue, 30 May 2023 18:15:50 +0000 (1 year ago)

+2 -2 +/-1 browse
fix inconsistent quotes (#377)
fix inconsistent quotes (#377)

1diff --git a/docsite/js/slider.js b/docsite/js/slider.js
2index defb04e..837ab40 100644
3--- a/docsite/js/slider.js
4+++ b/docsite/js/slider.js
5 @@ -5,9 +5,9 @@ const rangeToPercent = slider => {
6 let val = slider.value
7 let max = slider.max
8
9- if (slider.min === '-1' && (val === "-1" || val === "0"))
10+ if (slider.min === '-1' && (val === '-1' || val === '0'))
11 percent = (val+1) / max * 100
12- else if (slider.min === '-1' && val === "1")
13+ else if (slider.min === '-1' && val === '1')
14 percent = val / (max-2) * 100
15 else
16 percent = val / max * 100