Public
Script
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Inspector } from "https://esm.sh/@observablehq/inspector";
globalThis.width = window.innerWidth;
const style = document.createElement("style");
style.innerText =
":root{--syntax_normal:#1b1e23;--syntax_comment:#a9b0bc;--syntax_number:#20a5ba;--syntax_keyword:#c30771;--syntax_atom:#10a778;--syntax_string:#008ec4;--syntax_error:#ffbedc;--syntax_unknown_variable:#838383;--syntax_known_variable:#005f87;--syntax_match
document.head.appendChild(style);
export function display(val) {
const d = document.body.appendChild(document.createElement("div"));
const inspector = new Inspector(d);
inspector.fulfilled(val);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
June 3, 2024