Skip to content

Commit

Permalink
v1.1.1: Oops, stars animation wasn't getting disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Patitotective committed Aug 22, 2024
1 parent 67b7d2f commit 22876d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/simulations/parabola.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,8 @@ proc loadSettings(state: var ParabolaState) =

toggleStarsAnimation(b)
getElementById("settings-sa").checked = b
else:
toggleStarsAnimation(false)

if (let v = window.localStorage.getItem("showVArrow"); not v.isNil):
var b = true
Expand Down Expand Up @@ -2447,7 +2449,7 @@ proc renderSettingsModal(state: var ParabolaState): VNode =
text state.lang.bulletsLimit
tdiv(class = "col-9 col-sm-12 tooltip tooltip-left", `data-tooltip` = cstring $state.canon.bulletsLimit):
input(class = "slider", `type` = "range", id = "settings-bl",
min = $bulletsLimitRange.a, max = $bulletsLimitRange.b, value = cstring $state.canon.bulletsLimit, step = "1"):
min = cstring $bulletsLimitRange.a, max = cstring $bulletsLimitRange.b, value = cstring $state.canon.bulletsLimit, step = "1"):
proc onchange(e: Event, n: VNode) =
var v = 0
discard parseInt($n.value, v)
Expand Down

0 comments on commit 22876d0

Please sign in to comment.