Interactive Examples
Every card runs real FLASH.js. No mocks — inspect examples/index.html and src/js/site.js:1.
DOM
js
F(".card").addClass("active");
F("#app").html("<h1>FLASH.js</h1>");
F(".item").attr("data-ready","true");#ex-dom-target
Events + Delegation
js
F("button").on("click", handler);
F(document).on("click",".btn", handler);—
HTTP — F.http.json
js
const user = await F.http.json("/api/user");
const res = await F.http.get("/api/data", { timeout: 5000 });—
Storage — F.storage
js
F.storage.set("theme","dark");
F.storage.get("theme");—
Animation — Web Animations API
js
await F("#box").animate({ opacity:[0,1] }, { duration:300 });UI — Toast / Modal / Loading
js
F.toast("Saved!","success");
await F.confirm("Delete?","Confirm");
F.loading(true);Utilities — copy / download / theme
js
await F.copy("hello");
F.download("file.txt","content");
F.theme("dark");Observers — visible / resize
js
F("#hero").visible((v)=> console.log(v));
F("#panel").resize((rect)=> console.log(rect.width));Scroll into view → —