👀 Reading hidden code
using PlutoUI
Start both clocks:
and wait 6 seconds
👀 Reading hidden code
👀 Reading hidden code
Run superclock:
👀 Reading hidden code
md"""Run superclock: $(@bind do_clock html"<input type=checkbox>")"""
👀 Reading hidden code
Reached 0.0 ticks per second
👀 Reading hidden code
0
👀 Reading hidden code
num_ticks = Ref(0)
UndefVarError: trigger not defined
Here is what happened, the most recent locations are first:
let
trigger
num_ticks[] += 1
end
👀 Reading hidden code
3
Δt = 3
👀 Reading hidden code
supertimer = html"""
<script>
let i = 0
const handle = setInterval(() => {
i += 1
currentScript.value = i
currentScript.dispatchEvent(new CustomEvent("input"))
}, 1)
invalidation.then(() => {
clearInterval(handle)
})
</script>
""";
👀 Reading hidden code