Platform
Resources
Pricing
Sign in
Get started
Andrew Wooldridge
📜JavaScript developer. 🐲RPG fan. 📚Storyteller and 🕹game developer. 👨Father and Husband.
Workspace
Fork
Published
2 collections
By
Andrew Wooldridge
Edited
Jan 23, 2021
JavaScript Tips
String.prototype.replaceAll
How To Use Local JS Files in Your Notebooks
Import JavaScript Class from Github Gist
Hello, sortablejs
Hello, JS-YAML
Testing bitECS for Tempest
New Options for Images in Observable
Test Message Channel
JavaScript Class Exploration
How To: Create and Update HTML Views
How to: filter a data set via search + suggestions
How to Center a Div
Run Some Code on Button Click
Using JSON Placeholder
Scrubber Test
Executable JS FileAttachment Test
Hello, Handel
Data from Google Spreadsheets test 001
Testing fetch with runkit
Testing ecsyjs
Move a Div in JavaScript
Also listed in…
Random Bits
Insert cell
md
`# Scrubber Test`
Insert cell
Insert cell
viewof
scrub_height
=
Scrubber
(
numbers
,
{
loop
:
false
}
)
Insert cell
viewof
scrub_width
=
Scrubber
(
[
...
numbers
]
.
reverse
(
)
,
{
alternate
:
true
}
)
Insert cell
{
let
retval
=
html
`<div style="height:${
scrub_height
}px; width:${
scrub_width
}px; border: 2px solid black; background-color: tan;">A Div</div>`
yield
retval
}
Insert cell
md
`# Imports`
Insert cell
import
{
Scrubber
,
numbers
}
from
"@mbostock/scrubber"
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
Fork
View
Export
Listed in...
JavaScript Tips
Andrew Wooldridge
Random Bits
Andrew Wooldridge
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
scrub_height
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
scrub_width
Add comment
Copy import
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
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML