Public
Edited
Jul 19, 2024
Paused
Comments locked
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
await visibility();
yield Object.assign($(hello), {
style: "--qb-semaphore: --qb-success"
});
}
Insert cell
{
await visibility();
yield Object.assign($(hello), {
className: ["fade--in"].join(" "),
style: "--qb-semaphore: --qb-success"
});
}
Insert cell
{
await visibility();
yield Object.assign($(hello), {
className: ["fade--in"].join(" "),
style: "--qb-semaphore: --qb-warning"
});
}
Insert cell
{
await visibility();
yield Object.assign($(hello), {
style:
"--qb-semaphore: --qb-warning; --qb-animation-hook: --fade-in ease-in-out 3s"
});
}
Insert cell
{
await visibility();
yield Object.assign($(hello), {
style: "--qb-semaphore: --qb-danger"
});
}
Insert cell
{
await visibility();
yield Object.assign($(hello), {
style:
"--qb-semaphore: --qb-danger; --qb-animation-hook: --fade-in cubic-bezier(.2, .65, .6, 1) infinite alternate 3s"
});
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
((elt) => elt && (elt.style.setProperty("--qb-waypoint", waypoint), waypoint))(
mutable probe
)
Insert cell
ident = "--qb-states"
Insert cell
states = colors
.slice()
.reverse()
.map((x) =>
Object.fromEntries([
["color", x + ""],
["background-color", Object.assign(Object.create(x), { opacity }) + ""]
])
)
Insert cell
colors = [d3.color("red"), d3.color("orange"), d3.color("green")].concat(
toggle ? [d3.color("blue")] : []
)
Insert cell
Insert cell
mutable probe = null
Insert cell
available = CSS.supports("(--css: variables)")
Insert cell
hello = html`<span>Hello, World!`
Insert cell
$ = (elt) => elt.cloneNode(true)
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.
Learn more