Published
Edited
Oct 18, 2020
4 stars
Insert cell
Insert cell
play = {
const button = html`<button>Play Sound`;
button.onclick = () => doorbell.play();
return button;
}
Insert cell
doorbell = {
return new Howl({
// OGGs don't work in Safari
src: ["http://techslides.com/demos/samples/sample.mp3"],
autoplay: false,
loop: false,
volume: 0.5
});
}
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.
Learn more