StealThis .dev

Wiki — Footnotes / Citations Block

A knowledge-base article body with inline citation superscripts that link down to a numbered references section. Hovering or focusing a superscript opens a small popover previewing the author, title, source, and year, with a jump action and a copy-citation button. Clicking smooth-scrolls to the matching reference and highlights it, while caret back-links return you to the exact spot in the prose. References render as formatted entries with external-link icons and per-entry copy buttons, all over a clean white wiki layout with sidebar nav and a sticky table of contents.

Ouvrir dans Lab
html css vanilla-js
Targets: JS HTML

Code

Footnotes / Citations Block

A long-form encyclopedia article — the fictional Aurora DB storage engine — set in a clean white knowledge-base shell with a persistent left sidebar, a readable serif body column, and a sticky right-rail table of contents. Inline citation superscripts like [1] sit flush in the prose and link down to a numbered References section, where each entry is formatted with its author, title, source, year, an external-link icon, and a per-entry copy button.

The interactions center on the citation markers. Hovering or keyboard-focusing a superscript opens a compact popover that previews the cited work and offers View reference and Copy citation actions, repositioning itself above or below the marker so it never clips the viewport. Clicking a marker smooth-scrolls to its reference and flashes a highlight; caret back-links on each reference jump back to the exact citation in the body. References reused across multiple sections automatically collect multiple back-links.

Supporting chrome keeps it feeling like a real wiki: scrollspy keeps the sidebar and table of contents in sync as you read, a / shortcut focuses the search box, the sidebar collapses into a drawer on small screens, and every copy action confirms with a toast. The whole thing is vanilla HTML, CSS, and JavaScript with no dependencies.

Illustrative UI only — fictional articles, products, and data.