Skip to content

Commit

Permalink
Deploying to notebook-exports from @ 494eb12 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Nov 4, 2023
1 parent 2757cd6 commit 8dac5f6
Show file tree
Hide file tree
Showing 40 changed files with 83 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PlutoUI"
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
authors = ["Fons van der Plas <[email protected]>"]
version = "0.7.52"
version = "0.7.53"

[deps]
AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150"
Expand Down
22 changes: 14 additions & 8 deletions assets/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const unit = clock.querySelector("span#unit")
const button = clock.querySelector("button")

const max_value = +clock.dataset.maxValue
const repeat = clock.dataset.repeat === "true"

var t = clock.value = 1
var t = (clock.value = 1)
var starttime = null
var dt = 1

Expand All @@ -29,16 +30,21 @@ analogfront.onanimationiteration = (e) => {
const running_time = (Date.now() - starttime) / 1000
t = Math.max(t + 1, Math.floor(running_time / dt))
if (!isNaN(max_value)) {
t = Math.min(t, max_value)
if (repeat) {
if(t > max_value) {
t = 1
starttime = Date.now()
}
} else {
if (t >= max_value) {
clock.classList.add("stopped")
t = max_value
}
}
}
clock.value = t
clock.dispatchEvent(new CustomEvent("input"))
}

if (t >= max_value) {
clock.classList.add("stopped")
t = 0
}
}
unit.onclick = (e) => {
clock.classList.toggle("inverted")
Expand All @@ -48,6 +54,6 @@ button.onclick = (e) => {
starttime = Date.now()
clock.classList.toggle("stopped")
if (!clock.classList.contains("stopped")) {
t = 1 - 1
t = 1
}
}
2 changes: 1 addition & 1 deletion pluto_export.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"notebooks":{"src/TableOfContents.jl":{"id":"src/TableOfContents.jl","hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","html_path":"src/TableOfContents.html","statefile_path":"src/TableOfContents.plutostate","notebookfile_path":"src/TableOfContents.jl","current_hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","desired_hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","frontmatter":{"title":"TableOfContents"}},"src/Scrubbable.jl":{"id":"src/Scrubbable.jl","hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","html_path":"src/Scrubbable.html","statefile_path":"src/Scrubbable.plutostate","notebookfile_path":"src/Scrubbable.jl","current_hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","desired_hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","frontmatter":{"title":"Scrubbable"}},"src/RangeSlider.jl":{"id":"src/RangeSlider.jl","hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","html_path":"src/RangeSlider.html","statefile_path":"src/RangeSlider.plutostate","notebookfile_path":"src/RangeSlider.jl","current_hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","desired_hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","frontmatter":{"title":"RangeSlider"}},"src/Combine.jl":{"id":"src/Combine.jl","hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","html_path":"src/Combine.html","statefile_path":"src/Combine.plutostate","notebookfile_path":"src/Combine.jl","current_hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","desired_hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","frontmatter":{"title":"Combine"}},"src/WebcamInput.jl":{"id":"src/WebcamInput.jl","hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","html_path":"src/WebcamInput.html","statefile_path":"src/WebcamInput.plutostate","notebookfile_path":"src/WebcamInput.jl","current_hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","desired_hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","frontmatter":{"title":"WebcamInput"}},"src/Clock.jl":{"id":"src/Clock.jl","hash":"lnP0YARdlUnVL1grKWmuGzEqMGcvR983gTBHNHs4Ego","html_path":"src/Clock.html","statefile_path":"src/Clock.plutostate","notebookfile_path":"src/Clock.jl","current_hash":"lnP0YARdlUnVL1grKWmuGzEqMGcvR983gTBHNHs4Ego","desired_hash":"lnP0YARdlUnVL1grKWmuGzEqMGcvR983gTBHNHs4Ego","frontmatter":{"title":"Clock"}},"src/Builtins.jl":{"id":"src/Builtins.jl","hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","html_path":"src/Builtins.html","statefile_path":"src/Builtins.plutostate","notebookfile_path":"src/Builtins.jl","current_hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","desired_hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","frontmatter":{"title":"Builtins"}},"src/TransformedValue.jl":{"id":"src/TransformedValue.jl","hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","html_path":"src/TransformedValue.html","statefile_path":"src/TransformedValue.plutostate","notebookfile_path":"src/TransformedValue.jl","current_hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","desired_hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","frontmatter":{"title":"TransformedValue"}},"src/Layout.jl":{"id":"src/Layout.jl","hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","html_path":"src/Layout.html","statefile_path":"src/Layout.plutostate","notebookfile_path":"src/Layout.jl","current_hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","desired_hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","frontmatter":{"title":"Layout"}},"src/MultiCheckBox.jl":{"id":"src/MultiCheckBox.jl","hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","html_path":"src/MultiCheckBox.html","statefile_path":"src/MultiCheckBox.plutostate","notebookfile_path":"src/MultiCheckBox.jl","current_hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","desired_hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","frontmatter":{"title":"MultiCheckBox"}},"src/Confirm.jl":{"id":"src/Confirm.jl","hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","html_path":"src/Confirm.html","statefile_path":"src/Confirm.plutostate","notebookfile_path":"src/Confirm.jl","current_hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","desired_hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","frontmatter":{"title":"Confirm"}},"src/TerminalNotebook.jl":{"id":"src/TerminalNotebook.jl","hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","html_path":"src/TerminalNotebook.html","statefile_path":"src/TerminalNotebook.plutostate","notebookfile_path":"src/TerminalNotebook.jl","current_hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","desired_hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","frontmatter":{"title":"TerminalNotebook"}}},"pluto_version":"0.19.27","julia_version":"1.7.3","format_version":"1","title":null,"description":null,"collections":null}
{"notebooks":{"src/TableOfContents.jl":{"id":"src/TableOfContents.jl","hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","html_path":"src/TableOfContents.html","statefile_path":"src/TableOfContents.plutostate","notebookfile_path":"src/TableOfContents.jl","current_hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","desired_hash":"1BT1NDaW7DD-n1n76yH3EcL90EcF8NUt-bWxmRticbc","frontmatter":{"title":"TableOfContents"}},"src/Scrubbable.jl":{"id":"src/Scrubbable.jl","hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","html_path":"src/Scrubbable.html","statefile_path":"src/Scrubbable.plutostate","notebookfile_path":"src/Scrubbable.jl","current_hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","desired_hash":"KRQ9M8fcdkT4bgALBgUaHiOu5MRtsoxweMd1y2EiBF4","frontmatter":{"title":"Scrubbable"}},"src/RangeSlider.jl":{"id":"src/RangeSlider.jl","hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","html_path":"src/RangeSlider.html","statefile_path":"src/RangeSlider.plutostate","notebookfile_path":"src/RangeSlider.jl","current_hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","desired_hash":"41IQj6SuNGg6oScvXLjMSK_J4322m3skjL-9Hg277TE","frontmatter":{"title":"RangeSlider"}},"src/Combine.jl":{"id":"src/Combine.jl","hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","html_path":"src/Combine.html","statefile_path":"src/Combine.plutostate","notebookfile_path":"src/Combine.jl","current_hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","desired_hash":"iUvZwy_jEKRNqLirUqQyk409XKfVDa2FSdhA-nKjhec","frontmatter":{"title":"Combine"}},"src/WebcamInput.jl":{"id":"src/WebcamInput.jl","hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","html_path":"src/WebcamInput.html","statefile_path":"src/WebcamInput.plutostate","notebookfile_path":"src/WebcamInput.jl","current_hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","desired_hash":"-i-5w3pSkmIv4eG53-qx2hWOArKmu-YPzVTSkF9qOTY","frontmatter":{"title":"WebcamInput"}},"src/Clock.jl":{"id":"src/Clock.jl","hash":"BTRH7QC_EA0OZrYrLa8yYxbnK0VhQAdoMDHEL4vOIG8","html_path":"src/Clock.html","statefile_path":"src/Clock.plutostate","notebookfile_path":"src/Clock.jl","current_hash":"BTRH7QC_EA0OZrYrLa8yYxbnK0VhQAdoMDHEL4vOIG8","desired_hash":"BTRH7QC_EA0OZrYrLa8yYxbnK0VhQAdoMDHEL4vOIG8","frontmatter":{"title":"Clock"}},"src/Builtins.jl":{"id":"src/Builtins.jl","hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","html_path":"src/Builtins.html","statefile_path":"src/Builtins.plutostate","notebookfile_path":"src/Builtins.jl","current_hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","desired_hash":"eESv9gp9ljW8yMrLH2qGfKG0pd3CAZyP4frO8l48rng","frontmatter":{"title":"Builtins"}},"src/TransformedValue.jl":{"id":"src/TransformedValue.jl","hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","html_path":"src/TransformedValue.html","statefile_path":"src/TransformedValue.plutostate","notebookfile_path":"src/TransformedValue.jl","current_hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","desired_hash":"OfJ4BXH7_xy1IDdIpQSLhuJwws1AvsKrECwhkT5Xxlw","frontmatter":{"title":"TransformedValue"}},"src/Layout.jl":{"id":"src/Layout.jl","hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","html_path":"src/Layout.html","statefile_path":"src/Layout.plutostate","notebookfile_path":"src/Layout.jl","current_hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","desired_hash":"67WMi08M6X6E15b_6QXTDeBl6n6V-4QfidfYVCgY57A","frontmatter":{"title":"Layout"}},"src/MultiCheckBox.jl":{"id":"src/MultiCheckBox.jl","hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","html_path":"src/MultiCheckBox.html","statefile_path":"src/MultiCheckBox.plutostate","notebookfile_path":"src/MultiCheckBox.jl","current_hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","desired_hash":"NFFwqMjsWOYeWw08Qh2edO4CF4SNg7CgasoYlY-qlHQ","frontmatter":{"title":"MultiCheckBox"}},"src/Confirm.jl":{"id":"src/Confirm.jl","hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","html_path":"src/Confirm.html","statefile_path":"src/Confirm.plutostate","notebookfile_path":"src/Confirm.jl","current_hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","desired_hash":"dD9jscUtfaYaL9POrAJksUA8k8IrPRAn6dzPp0glvak","frontmatter":{"title":"Confirm"}},"src/TerminalNotebook.jl":{"id":"src/TerminalNotebook.jl","hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","html_path":"src/TerminalNotebook.html","statefile_path":"src/TerminalNotebook.plutostate","notebookfile_path":"src/TerminalNotebook.jl","current_hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","desired_hash":"dSz8XM9ttBM9HyWugq5NCwEtDItdCVsOBNvmN77QKKU","frontmatter":{"title":"TerminalNotebook"}}},"pluto_version":"0.19.32","julia_version":"1.7.3","format_version":"1","title":null,"description":null,"collections":null,"binder_url":"https://mybinder.org/v2/gh/fonsp/pluto-on-binder/v0.19.32","slider_server_url":null}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 8dac5f6

Please sign in to comment.