Published unlisted
Edited
May 12, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
loader = (width, height, message) => {
const loader = document.createElement('div');
loader.style.width = width + "px";
loader.style.height = height + "px";
loader.style.position = "absolute";
loader.style.left = "50%";
loader.style.transform = "translate(-50%, 0)";
loader.style.zIndex = 99;
loader.style.backgroundColor = "white";
loader.style.opacity = 0.9;
loader.style.border = "1px solid gray";
loader.style.display = "flex";
loader.style.justifyContent = "center";
loader.style.alignItems = "center";
loader.classList.add("exo2");

const loadTitle = document.createElement("p");
loadTitle.style.flex = "0 0 " + width + "px";
loadTitle.style.textAlign = "center";
loadTitle.appendChild(document.createTextNode(message));
loader.appendChild(loadTitle);

Object.assign(loader, {onclick: () => mutable loaded = true})
return loader
}
Insert cell
load_screen = loader(w, h, "Click to Start Animation")
Insert cell
Insert cell
style = {return atlasStyle}
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more