Published
Edited
Jan 1, 2021
Importers
23 stars
Insert cell
Insert cell
Insert cell
teaserList(example_docs)
Insert cell
Insert cell
html`<div id="my-id" style="max-width: 350px">
${renderTeaser(example_docs[3])}
${getScopedStyle('#my-id', THEME_TEASERS)}
`
Insert cell
Insert cell
html`<div id="my-id" style="max-width: 250px">
${renderTeaser({
title: 'Remember notebooks?',
image: 'https://i.imgur.com/uw9hFtj.png',
href: 'https://en.wikipedia.org/wiki/Moleskine',
date_short: 'A long time ago',
})}
${getScopedStyle('#my-id', THEME_TEASERS)}
`
Insert cell
Insert cell
html`
${getScopedStyle('#my-ul', `
:scope .owner, :scope .likes {display: none}
:scope .date:before {content: "("}
:scope .date:before {content: "("}
:scope .date:after {content: ")"}
`)}
<ul id=my-ul>
${example_docs.slice().sort((a,b) => b.update_time - a.update_time).map(doc => html`<li>${renderTeaser(doc)}`)}
`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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.
Learn more