Published
Edited
Jan 31, 2021
2 stars
Insert cell
Insert cell
md`The value of \`location.search\` is: \`${location.search}\``
Insert cell
Insert cell
querystrings = new URL(location).searchParams
Insert cell
text = querystrings.get('text')
Insert cell
value = Number(querystrings.get('value'))
Insert cell
Insert cell
hash = Generators.observe(notify => {
const hashchange = () => notify(location.hash);
hashchange();
addEventListener("hashchange", hashchange);
return () => removeEventListener("hashchange", hashchange);
})
Insert cell
Insert cell
Insert cell
document.baseURI
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