StealThis .dev

Science — References + Inline Citations

A self-contained scholarly article layout with live inline citations and a full reference list. Hover or focus any bracketed marker to preview the source in a tooltip, click to smooth-scroll to its numbered entry, and switch the visible format between numeric, author-year, and superscript with one toggle. Each reference carries authors, title, venue, year, a resolvable DOI link, and per-entry Cite (copy BibTeX) and Copy buttons, plus a copy-all action. Built with semantic HTML and vanilla JavaScript.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

References + Inline Citations

A complete journal-article reading surface rendered in the institutional house style — Source Serif 4 for prose, Inter for the chrome, and JetBrains Mono for numbers, DOIs, and the display equation. Inline citations are embedded as lightweight [1], [2–4], and [6,8] markers woven through the introduction and results. Hovering or keyboard-focusing a marker raises a dark tooltip previewing each cited source; clicking it smooth-scrolls to the matching numbered entry in the reference list and flashes a highlight so the eye lands in the right place.

A segmented control in the sticky masthead switches the visible citation format across the whole document — numeric brackets, parenthetical author-year (Okonkwo et al., 2023), or compact superscripts — re-rendering every marker in place while preserving the same underlying source links. The control is a proper radiogroup, navigable with arrow keys.

Each reference entry lists authors, title, venue, volume, pages, and year, an Open Access or article-type badge, and a resolvable DOI link. Per-entry buttons copy a formatted plain-text citation or a ready-to-paste BibTeX record, and a Copy all BibTeX action exports the full bibliography at once, each confirmed by a transient toast. The layout reflows to a single column with horizontally scrolling tables down to 360px and honours reduced-motion preferences.

Illustrative UI only — fictional authors, data, and figures; not real scientific results.