Platform
Resources
Pricing
Sign in
Contact us
oscar6echo
Workspace
Fork
Public
By
oscar6echo
Edited
Jul 26, 2022
Fork of
Scrubber
•
3 forks
Importers
33 stars
Insert cell
2
Insert cell
Insert cell
2
Insert cell
Insert cell
numbers
=
Array
.
from
(
{
length
:
256
}
,
(
_
,
i
)
=>
i
)
Insert cell
dates
=
Array
.
from
(
{
length
:
365
}
,
(
_
,
i
)
=>
{
const
date
=
new
Date
(
2019
,
0
,
1
)
;
date
.
setDate
(
i
+
1
)
;
return
date
;
}
)
Insert cell
letters
=
'abcdefghijklmnopqrstuvwxyz'
.
split
(
''
)
Insert cell
Insert cell
viewof
a
=
Player
(
dates
,
{
autoplay
:
true
,
initial
:
100
,
format
:
(
date
)
=>
date
.
toLocaleString
(
"en"
,
{
month
:
"long"
,
day
:
"numeric"
}
)
,
debug
:
true
}
)
Insert cell
Insert cell
Insert cell
viewof
b
=
Player
(
letters
,
{
index
:
true
,
delay
:
1000
}
)
Insert cell
Insert cell
Insert cell
viewof
c
=
Player
(
numbers
,
{
delay
:
250
}
)
Insert cell
Insert cell
Insert cell
viewof
d
=
Player
(
numbers
,
{
loop
:
true
,
alternate
:
true
}
)
Insert cell
Insert cell
Insert cell
viewof
e
=
Player
(
numbers
,
{
width
:
450
,
time
:
true
,
loop
:
true
}
)
Insert cell
Insert cell
Insert cell
viewof
f
=
Player
(
letters
,
{
delay
:
250
,
loop
:
true
,
show
:
{
play
:
true
,
stop
:
true
}
}
)
Insert cell
Insert cell
viewof
g
=
Player
(
letters
,
{
delay
:
350
,
loop
:
true
,
show
:
{
stepLeft
:
false
,
stepRight
:
false
,
alternate
:
false
}
}
)
Insert cell
Insert cell
Insert cell
{
const
text
=
'update player g'
;
const
btn
=
html
`<button>${
text
}`
;
btn
.
onclick
=
(
)
=>
{
const
v
=
Math
.
floor
(
Math
.
random
(
)
*
letters
.
length
)
;
viewof
g
.
update
(
v
)
;
btn
.
innerHTML
=
`${
text
} (latest jump to ${
v
})`
;
}
;
return
btn
;
}
Insert cell
{
const
text
=
'toggle player g play/pause'
;
const
btn
=
html
`<button>${
text
}`
;
btn
.
onclick
=
(
)
=>
{
viewof
g
.
remoteClickPlayPause
(
)
;
}
;
return
btn
;
}
Insert cell
Insert cell
3
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Show 2 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Show 2 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
numbers
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dates
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
letters
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
a
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
b
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
c
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
e
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
f
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
g
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Player
Edit
Show 3 comments
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
btn
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sb
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bgc
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bgc2
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fas
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML