Science — Peer-Review / Open-Access Badges
A scholarly status-badge kit for journal articles, covering peer-reviewed, preprint, registered-report, gold/green/diamond open-access, data-available, code-available and reproduced states. Each badge pairs a CSS-SVG icon with an accessible label and a hover or focus tooltip that explains what it certifies. The demo assembles them into a realistic article meta strip, lays out a filterable legend gallery, and ships an interactive builder that composes a strip, copies its HTML, and charts badge uptake across a fictional journal issue.
MCP
Code
:root {
--bg: #ffffff;
--bg-alt: #f6f8fb;
--ink: #0f1b2d;
--ink-2: #33445c;
--muted: #697892;
--accent: #1a4f8a;
--accent-d: #123a66;
--accent-50: #e9f0f9;
--teal: #0f7d78;
--teal-50: #e4f3f1;
--line: rgba(15, 27, 45, 0.12);
--line-2: rgba(15, 27, 45, 0.2);
--ok: #2f9e6f;
--warn: #c9821f;
--danger: #cf4538;
--gold: #b8860b;
--gold-50: #fbf3df;
--green: #2f9e6f;
--green-50: #e3f4ec;
--diamond: #2d7fb8;
--diamond-50: #e3f1f9;
--r-sm: 6px;
--r-md: 10px;
--r-lg: 16px;
--shadow-1: 0 1px 2px rgba(15, 27, 45, 0.05), 0 1px 0 rgba(15, 27, 45, 0.02);
--shadow-2: 0 6px 24px rgba(15, 27, 45, 0.08), 0 2px 6px rgba(15, 27, 45, 0.05);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: "Source Serif 4", Georgia, serif;
line-height: 1.6;
font-size: 16px;
}
.wrap {
max-width: 880px;
margin: 0 auto;
padding: 0 24px;
}
.mono {
font-family: "JetBrains Mono", ui-monospace, monospace;
font-feature-settings: "tnum" 1;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.skip {
position: absolute;
left: -999px;
top: 8px;
background: var(--accent);
color: #fff;
padding: 8px 14px;
border-radius: var(--r-sm);
font-family: "Inter", sans-serif;
z-index: 50;
}
.skip:focus {
left: 8px;
}
a {
color: var(--accent);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: 3px;
}
/* ---------- masthead ---------- */
.masthead {
border-bottom: 1px solid var(--line);
background: var(--bg-alt);
}
.masthead-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding-top: 18px;
padding-bottom: 18px;
}
.brand {
display: flex;
align-items: center;
gap: 14px;
}
.brand-mark {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: var(--r-md);
background: var(--accent);
color: #fff;
font-family: "Source Serif 4", serif;
font-weight: 700;
font-size: 18px;
letter-spacing: 0.5px;
box-shadow: var(--shadow-1);
}
.brand-text {
display: flex;
flex-direction: column;
}
.brand-name {
font-family: "Source Serif 4", serif;
font-weight: 700;
font-size: 17px;
color: var(--ink);
}
.brand-meta {
font-size: 11.5px;
color: var(--muted);
margin-top: 1px;
}
/* ---------- article ---------- */
.article {
padding: 34px 0 8px;
}
.kicker {
text-transform: uppercase;
letter-spacing: 1.2px;
font-size: 11px;
color: var(--teal);
margin: 0 0 10px;
}
h1 {
font-family: "Source Serif 4", serif;
font-weight: 700;
font-size: clamp(24px, 3.6vw, 33px);
line-height: 1.22;
margin: 0 0 14px;
color: var(--ink);
}
.authors {
font-size: 16px;
color: var(--ink-2);
margin: 0 0 4px;
}
.authors sup {
color: var(--muted);
}
.affil {
font-size: 12px;
color: var(--muted);
margin: 0 0 16px;
}
.doi-row {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
font-size: 12px;
color: var(--ink-2);
padding-bottom: 18px;
border-bottom: 1px solid var(--line);
}
.abstract {
margin: 22px 0 6px;
color: var(--ink-2);
font-size: 16.5px;
}
.abstract-label {
font-weight: 700;
color: var(--ink);
}
/* ---------- meta strip / badges ---------- */
.meta-strip {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 20px 0 6px;
}
.badge-pill {
--b: var(--accent);
--b-50: var(--accent-50);
display: inline-flex;
align-items: center;
gap: 6px;
font-family: "Inter", sans-serif;
font-weight: 600;
font-size: 12px;
line-height: 1;
padding: 6px 11px 6px 9px;
border-radius: 999px;
border: 1px solid color-mix(in srgb, var(--b) 35%, var(--line));
background: var(--b-50);
color: var(--b);
cursor: default;
position: relative;
transition: transform 0.14s ease, box-shadow 0.14s ease;
white-space: nowrap;
}
.badge-pill svg {
width: 13px;
height: 13px;
fill: currentColor;
flex: none;
}
.badge-pill:hover,
.badge-pill:focus-visible {
transform: translateY(-1px);
box-shadow: var(--shadow-1);
}
/* variant colours */
.badge-reviewed {
--b: var(--accent);
--b-50: var(--accent-50);
}
.badge-gold {
--b: var(--gold);
--b-50: var(--gold-50);
}
.badge-green {
--b: var(--green);
--b-50: var(--green-50);
}
.badge-diamond {
--b: var(--diamond);
--b-50: var(--diamond-50);
}
.badge-preprint {
--b: var(--warn);
--b-50: #fbf0dc;
}
.badge-registered {
--b: var(--teal);
--b-50: var(--teal-50);
}
.badge-data {
--b: #6a4fb0;
--b-50: #efeafa;
}
.badge-code {
--b: var(--ink-2);
--b-50: #eef1f6;
}
.badge-reproduced {
--b: var(--ok);
--b-50: var(--green-50);
}
/* tooltip */
.badge-pill[data-tip]::after,
.badge-pill[data-tip]::before {
opacity: 0;
pointer-events: none;
transition: opacity 0.16s ease, transform 0.16s ease;
}
.badge-pill[data-tip]::after {
content: attr(data-tip);
position: absolute;
bottom: calc(100% + 10px);
left: 50%;
transform: translate(-50%, 4px);
width: max-content;
max-width: 240px;
white-space: normal;
background: var(--ink);
color: #fff;
font-family: "Inter", sans-serif;
font-weight: 400;
font-size: 11.5px;
line-height: 1.45;
text-align: left;
padding: 8px 10px;
border-radius: var(--r-sm);
box-shadow: var(--shadow-2);
z-index: 20;
}
.badge-pill[data-tip]::before {
content: "";
position: absolute;
bottom: calc(100% + 4px);
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: var(--ink);
z-index: 20;
}
.badge-pill[data-tip]:hover::after,
.badge-pill[data-tip]:hover::before,
.badge-pill[data-tip]:focus-visible::after,
.badge-pill[data-tip]:focus-visible::before {
opacity: 1;
transform: translate(-50%, 0);
}
.badge-pill[data-tip]:focus-visible::before {
transform: translateX(-50%);
}
/* ---------- panels ---------- */
.panel {
margin: 30px 0;
padding: 22px 22px 24px;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg);
box-shadow: var(--shadow-1);
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
}
.panel h2 {
font-family: "Source Serif 4", serif;
font-size: 20px;
font-weight: 700;
margin: 0;
color: var(--ink);
}
.panel-sub {
margin: 8px 0 18px;
font-size: 14px;
color: var(--muted);
}
.toolbar {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.chip {
font-family: "Inter", sans-serif;
font-size: 12px;
font-weight: 500;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid var(--line-2);
background: var(--bg);
color: var(--ink-2);
cursor: pointer;
transition: all 0.14s ease;
}
.chip:hover {
border-color: var(--accent);
color: var(--accent);
}
.chip.is-active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
/* ---------- legend grid ---------- */
.legend-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
gap: 12px;
}
.legend-card {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 14px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-alt);
transition: opacity 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.legend-card:hover {
box-shadow: var(--shadow-1);
transform: translateY(-1px);
}
.legend-card.is-dim {
opacity: 0.32;
}
.legend-card .badge-pill {
cursor: default;
}
.legend-body {
font-size: 13px;
color: var(--ink-2);
}
.legend-body strong {
display: block;
font-family: "Inter", sans-serif;
font-size: 13px;
color: var(--ink);
margin-bottom: 2px;
}
.legend-body span {
display: block;
font-size: 12.5px;
color: var(--muted);
line-height: 1.5;
}
/* ---------- builder ---------- */
.builder {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 22px;
}
.builder-controls {
border: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.toggle {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
border: 1px solid var(--line);
border-radius: var(--r-md);
cursor: pointer;
font-family: "Inter", sans-serif;
font-size: 13px;
color: var(--ink-2);
transition: border-color 0.14s ease, background 0.14s ease;
}
.toggle:hover {
border-color: var(--line-2);
}
.toggle input {
accent-color: var(--accent);
width: 16px;
height: 16px;
}
.toggle input[type="radio"] {
accent-color: var(--gold);
}
.toggle.is-on {
border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
background: var(--accent-50);
color: var(--ink);
}
.toggle-group-label {
font-family: "Inter", sans-serif;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--muted);
margin: 8px 0 1px;
}
.builder-preview {
border: 1px dashed var(--line-2);
border-radius: var(--r-md);
padding: 16px;
background: var(--bg-alt);
}
.preview-label {
font-size: 10.5px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--muted);
}
.preview-strip {
min-height: 30px;
margin: 10px 0 16px;
}
.codeblock {
margin: 0;
padding: 12px;
background: var(--ink);
color: #d9e3f2;
border-radius: var(--r-sm);
font-size: 11px;
line-height: 1.6;
white-space: pre-wrap;
word-break: break-word;
overflow-x: auto;
}
.btn {
font-family: "Inter", sans-serif;
font-weight: 600;
font-size: 13px;
padding: 8px 14px;
border-radius: var(--r-sm);
border: 1px solid var(--accent);
background: var(--accent);
color: #fff;
cursor: pointer;
transition: background 0.14s ease;
}
.btn:hover {
background: var(--accent-d);
}
.btn-ghost {
background: var(--bg);
color: var(--accent);
}
.btn-ghost:hover {
background: var(--accent-50);
}
/* ---------- figure ---------- */
.figure {
margin: 30px 0;
}
.fig-box {
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-alt);
padding: 22px 22px 14px;
}
.fig-bars {
display: flex;
align-items: flex-end;
gap: 14px;
height: 180px;
}
.fig-bar {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
height: 100%;
justify-content: flex-end;
}
.fig-bar .bar {
width: 100%;
max-width: 54px;
border-radius: 5px 5px 0 0;
transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
position: relative;
}
.fig-bar .bar::after {
content: attr(data-val);
position: absolute;
top: -18px;
left: 50%;
transform: translateX(-50%);
font-family: "JetBrains Mono", monospace;
font-size: 11px;
color: var(--ink-2);
}
.fig-bar .bar-label {
font-family: "Inter", sans-serif;
font-size: 10.5px;
color: var(--muted);
text-align: center;
line-height: 1.3;
}
figcaption {
font-size: 13px;
color: var(--muted);
margin-top: 12px;
line-height: 1.55;
}
figcaption strong {
color: var(--ink);
}
.page-foot {
font-size: 12px;
color: var(--muted);
border-top: 1px solid var(--line);
padding: 20px 0 40px;
}
/* ---------- toast ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 24px;
transform: translate(-50%, 20px);
background: var(--ink);
color: #fff;
font-family: "Inter", sans-serif;
font-size: 13px;
padding: 10px 16px;
border-radius: var(--r-sm);
box-shadow: var(--shadow-2);
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
z-index: 80;
}
.toast.show {
opacity: 1;
transform: translate(-50%, 0);
}
/* ---------- responsive ---------- */
@media (max-width: 640px) {
.wrap {
padding: 0 16px;
}
.builder {
grid-template-columns: 1fr;
}
.legend-grid {
grid-template-columns: 1fr;
}
.masthead-row {
flex-direction: column;
align-items: flex-start;
}
.fig-bars {
gap: 8px;
height: 150px;
}
.badge-pill[data-tip]::after {
max-width: 200px;
}
}(function () {
"use strict";
// ---- icon set (inline SVG paths) ----
var ICONS = {
check:
'<svg viewBox="0 0 16 16"><path d="M6.2 11.3 3 8.1l1.1-1.1 2.1 2.1 5.6-5.6L13 4.6z"/></svg>',
lockOpen:
'<svg viewBox="0 0 16 16"><path d="M4 7V5a4 4 0 0 1 7.4-2.1l-1.4.8A2.4 2.4 0 0 0 5.6 5v2H12a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm4 2.4a1.1 1.1 0 0 0-.5 2.1v1.1h1v-1.1A1.1 1.1 0 0 0 8 9.4z"/></svg>',
diamond: '<svg viewBox="0 0 16 16"><path d="M3 6l5-4 5 4-5 8z"/></svg>',
doc:
'<svg viewBox="0 0 16 16"><path d="M4 1h5l3 3v11H4zm5 0v3h3z"/></svg>',
pin:
'<svg viewBox="0 0 16 16"><path d="M8 1a4 4 0 0 1 4 4c0 3-4 9-4 9S4 8 4 5a4 4 0 0 1 4-4zm0 2.4A1.6 1.6 0 1 0 8 6.6 1.6 1.6 0 0 0 8 3.4z"/></svg>',
db:
'<svg viewBox="0 0 16 16"><ellipse cx="8" cy="4" rx="5" ry="2"/><path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4c0 1.1-2.2 2-5 2S3 5.1 3 4z"/></svg>',
code:
'<svg viewBox="0 0 16 16"><path d="M5.5 4 2 8l3.5 4 1.1-1L4 8l2.6-3zM10.5 4l-1.1 1L12 8l-2.6 3 1.1 1L14 8z"/></svg>',
repeat:
'<svg viewBox="0 0 16 16"><path d="M4 4h6V2l3 3-3 3V6H4v3H2V5a1 1 0 0 1 1-1zm8 8H6v2l-3-3 3-3v2h6V7h2v4a1 1 0 0 1-1 1z"/></svg>'
};
// ---- badge catalog ----
var BADGES = {
reviewed: {
cls: "badge-reviewed",
icon: "check",
label: "Peer-reviewed",
group: "review",
desc: "Manuscript evaluated by independent referees and accepted after revision. Reviewer reports are openly posted."
},
gold: {
cls: "badge-gold",
icon: "lockOpen",
label: "Gold OA",
group: "access",
access: true,
desc: "Gold open access: the final published version is free to read, funded by an article-processing charge."
},
green: {
cls: "badge-green",
icon: "lockOpen",
label: "Green OA",
group: "access",
access: true,
desc: "Green open access: the author-accepted manuscript is self-archived in an open repository."
},
diamond: {
cls: "badge-diamond",
icon: "diamond",
label: "Diamond OA",
group: "access",
access: true,
desc: "Diamond open access: free to read and free to publish — no fees to authors or readers."
},
preprint: {
cls: "badge-preprint",
icon: "doc",
label: "Preprint",
group: "review",
desc: "A non-peer-reviewed version was posted to a preprint server prior to formal review."
},
registered: {
cls: "badge-registered",
icon: "pin",
label: "Registered Report",
group: "review",
desc: "Study design and analysis plan were peer-reviewed and accepted in principle before data collection."
},
data: {
cls: "badge-data",
icon: "db",
label: "Data available",
group: "artifact",
desc: "The underlying datasets are deposited in a public archive with a persistent identifier."
},
code: {
cls: "badge-code",
icon: "code",
label: "Code available",
group: "artifact",
desc: "Analysis and processing code is published openly under an OSI-approved licence."
},
reproduced: {
cls: "badge-reproduced",
icon: "repeat",
label: "Reproduced",
group: "artifact",
desc: "An independent group re-ran the workflow and confirmed the reported results."
}
};
var ORDER = [
"reviewed",
"diamond",
"gold",
"green",
"preprint",
"registered",
"data",
"code",
"reproduced"
];
// ---- helpers ----
function pill(key, opts) {
opts = opts || {};
var b = BADGES[key];
var btn = document.createElement(opts.tag || "span");
btn.className = "badge-pill " + b.cls;
btn.setAttribute("role", "listitem");
btn.setAttribute("tabindex", "0");
btn.setAttribute("aria-label", b.label + ": " + b.desc);
if (!opts.noTip) btn.setAttribute("data-tip", b.desc);
btn.innerHTML = ICONS[b.icon] + "<span>" + b.label + "</span>";
return btn;
}
function pillMarkup(key) {
var b = BADGES[key];
return (
'<span class="badge-pill ' +
b.cls +
'" tabindex="0" aria-label="' +
b.label +
'" data-tip="' +
b.desc.replace(/"/g, """) +
'">' +
ICONS[b.icon] +
"<span>" +
b.label +
"</span></span>"
);
}
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 1900);
}
// ---- 1. article meta strip ----
var articleBadges = [
"reviewed",
"diamond",
"preprint",
"registered",
"data",
"code",
"reproduced"
];
var metaStrip = document.getElementById("metaStrip");
articleBadges.forEach(function (k) {
metaStrip.appendChild(pill(k));
});
// ---- 2. legend gallery ----
var legendGrid = document.getElementById("legendGrid");
ORDER.forEach(function (k) {
var b = BADGES[k];
var card = document.createElement("div");
card.className = "legend-card";
card.setAttribute("data-group", b.group);
var p = pill(k, { noTip: true });
card.appendChild(p);
var body = document.createElement("div");
body.className = "legend-body";
body.innerHTML =
"<strong>" + b.label + "</strong><span>" + b.desc + "</span>";
card.appendChild(body);
legendGrid.appendChild(card);
});
// ---- filter chips ----
var chips = document.querySelectorAll(".chip");
chips.forEach(function (chip) {
chip.addEventListener("click", function () {
chips.forEach(function (c) {
c.classList.remove("is-active");
c.setAttribute("aria-pressed", "false");
});
chip.classList.add("is-active");
chip.setAttribute("aria-pressed", "true");
var f = chip.getAttribute("data-filter");
legendGrid.querySelectorAll(".legend-card").forEach(function (card) {
var match = f === "all" || card.getAttribute("data-group") === f;
card.classList.toggle("is-dim", !match);
});
});
});
// ---- 3. builder ----
var controls = document.getElementById("builderControls");
var previewStrip = document.getElementById("previewStrip");
var codeOut = document.getElementById("codeOut");
var state = {
reviewed: true,
access: "diamond",
preprint: false,
registered: false,
data: true,
code: true,
reproduced: false
};
function addGroupLabel(text) {
var l = document.createElement("span");
l.className = "toggle-group-label";
l.textContent = text;
controls.appendChild(l);
}
function checkbox(key) {
var b = BADGES[key];
var lab = document.createElement("label");
lab.className = "toggle" + (state[key] ? " is-on" : "");
var input = document.createElement("input");
input.type = "checkbox";
input.checked = !!state[key];
input.addEventListener("change", function () {
state[key] = input.checked;
lab.classList.toggle("is-on", input.checked);
render();
});
lab.appendChild(input);
lab.appendChild(document.createTextNode(b.label));
controls.appendChild(lab);
}
function radio(key) {
var b = BADGES[key];
var lab = document.createElement("label");
lab.className = "toggle" + (state.access === key ? " is-on" : "");
var input = document.createElement("input");
input.type = "radio";
input.name = "access";
input.value = key;
input.checked = state.access === key;
input.addEventListener("change", function () {
state.access = input.checked ? key : state.access;
controls
.querySelectorAll('input[name="access"]')
.forEach(function (r) {
r.closest(".toggle").classList.toggle("is-on", r.checked);
});
render();
});
lab.appendChild(input);
lab.appendChild(document.createTextNode(b.label));
controls.appendChild(lab);
}
addGroupLabel("Review status");
checkbox("reviewed");
checkbox("preprint");
checkbox("registered");
addGroupLabel("Open-access tier (pick one)");
["diamond", "gold", "green"].forEach(radio);
addGroupLabel("Artifacts");
checkbox("data");
checkbox("code");
checkbox("reproduced");
function activeKeys() {
var keys = [];
if (state.reviewed) keys.push("reviewed");
keys.push(state.access);
if (state.preprint) keys.push("preprint");
if (state.registered) keys.push("registered");
if (state.data) keys.push("data");
if (state.code) keys.push("code");
if (state.reproduced) keys.push("reproduced");
// keep canonical order
return ORDER.filter(function (k) {
return keys.indexOf(k) !== -1;
});
}
function render() {
var keys = activeKeys();
previewStrip.innerHTML = "";
keys.forEach(function (k) {
previewStrip.appendChild(pill(k));
});
var html =
'<div class="article-badges">\n ' +
keys.map(pillMarkup).join("\n ") +
"\n</div>";
codeOut.textContent = html;
}
render();
// ---- copy HTML ----
document.getElementById("copyBtn").addEventListener("click", function () {
var text = codeOut.textContent;
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(text).then(
function () {
toast("Meta-strip HTML copied to clipboard");
},
function () {
fallbackCopy(text);
}
);
} else {
fallbackCopy(text);
}
});
function fallbackCopy(text) {
var ta = document.createElement("textarea");
ta.value = text;
ta.style.position = "fixed";
ta.style.opacity = "0";
document.body.appendChild(ta);
ta.select();
try {
document.execCommand("copy");
toast("Meta-strip HTML copied to clipboard");
} catch (e) {
toast("Copy failed — select the code manually");
}
document.body.removeChild(ta);
}
// ---- 4. figure bar chart (fictional data) ----
var FIG = [
{ label: "Peer-reviewed", val: 100, cls: "badge-reviewed" },
{ label: "Diamond OA", val: 64, cls: "badge-diamond" },
{ label: "Green OA", val: 71, cls: "badge-green" },
{ label: "Data", val: 58, cls: "badge-data" },
{ label: "Code", val: 49, cls: "badge-code" },
{ label: "Reproduced", val: 17, cls: "badge-reproduced" }
];
var figBars = document.getElementById("figBars");
FIG.forEach(function (d) {
var col = document.createElement("div");
col.className = "fig-bar";
var bar = document.createElement("div");
bar.className = "bar " + d.cls;
var lab = document.createElement("div");
lab.className = "bar-label";
lab.textContent = d.label;
bar.setAttribute("data-val", d.val + "%");
bar.style.height = "0%";
col.appendChild(bar);
col.appendChild(lab);
figBars.appendChild(col);
// reuse each badge's accent colour for its bar via a hidden probe
var probe = document.createElement("span");
probe.className = "badge-pill " + d.cls;
probe.style.position = "absolute";
probe.style.visibility = "hidden";
document.body.appendChild(probe);
bar.style.background = getComputedStyle(probe).color;
document.body.removeChild(probe);
});
// animate bars when scrolled into view
function animateFig() {
figBars.querySelectorAll(".bar").forEach(function (bar, i) {
var v = FIG[i].val;
setTimeout(function () {
bar.style.height = v + "%";
}, 80 * i);
});
}
if ("IntersectionObserver" in window) {
var io = new IntersectionObserver(
function (entries) {
entries.forEach(function (e) {
if (e.isIntersecting) {
animateFig();
io.disconnect();
}
});
},
{ threshold: 0.3 }
);
io.observe(figBars);
} else {
animateFig();
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Peer-Review / Open-Access Badges</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="masthead">
<div class="wrap masthead-row">
<div class="brand">
<span class="brand-mark" aria-hidden="true">JR</span>
<div class="brand-text">
<span class="brand-name">Journal of Reproducible Systems</span>
<span class="brand-meta mono">ISSN 2998-1147 · Vol. 14, No. 3 · Open Peer Review</span>
</div>
</div>
<span class="badge-pill badge-diamond" title="Diamond open access journal">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 6l5-4 5 4-5 8z" /></svg>
Diamond OA
</span>
</div>
</header>
<main id="main" class="wrap">
<!-- ARTICLE META STRIP -->
<section class="article" aria-labelledby="article-title">
<p class="kicker mono">Research Article · Computational Ecology</p>
<h1 id="article-title">
Drift-resistant calibration of forest-canopy LiDAR using
self-supervised point-cloud priors
</h1>
<p class="authors">
Halvorsen, M. K.<sup>1</sup>, Adeyemi, T.<sup>1,2</sup>,
Okonkwo, R.<sup>2</sup> & Sandoval-Reyes, P.<sup>3</sup>
</p>
<p class="affil mono">
1 Nordreef Institute for Earth Systems · 2 Université de Meridian ·
3 Cascade Polytechnic
</p>
<div class="doi-row mono">
<span>DOI: <a href="#cite">10.48999/jrs.2026.0334</a></span>
<span aria-hidden="true">·</span>
<span>Received 11 Feb 2026 · Accepted 02 May 2026</span>
</div>
<div
class="meta-strip"
role="list"
aria-label="Article status badges"
id="metaStrip"
></div>
<p class="abstract">
<span class="abstract-label">Abstract.</span> We present a
calibration scheme that suppresses sensor drift in airborne LiDAR over
dense canopy without ground control points. Across
<span class="mono">n = 1,284</span> flight lines the residual
RMSE fell to <span class="mono">0.061 m</span> (95% CI
<span class="mono">0.058–0.064</span>), a
<span class="mono">38%</span> reduction over the prior baseline. All
data, processing code, and the registered analysis plan are openly
available.
</p>
</section>
<!-- LEGEND GALLERY -->
<section class="panel" aria-labelledby="legend-title">
<div class="panel-head">
<h2 id="legend-title">Badge legend</h2>
<div class="toolbar" role="group" aria-label="Legend filters">
<button class="chip is-active" data-filter="all" aria-pressed="true">
All
</button>
<button class="chip" data-filter="review" aria-pressed="false">
Review
</button>
<button class="chip" data-filter="access" aria-pressed="false">
Open access
</button>
<button class="chip" data-filter="artifact" aria-pressed="false">
Artifacts
</button>
</div>
</div>
<p class="panel-sub">
Hover or focus any badge for a definition. Each badge maps to a status
on the article meta strip above.
</p>
<div class="legend-grid" id="legendGrid"></div>
</section>
<!-- BADGE BUILDER -->
<section class="panel" aria-labelledby="builder-title">
<div class="panel-head">
<h2 id="builder-title">Compose a meta strip</h2>
<button class="btn btn-ghost" id="copyBtn">Copy HTML</button>
</div>
<p class="panel-sub">
Toggle the statuses that apply to a manuscript and preview the
resulting strip. Open-access tier is mutually exclusive.
</p>
<div class="builder">
<fieldset class="builder-controls" id="builderControls">
<legend class="visually-hidden">Badge toggles</legend>
</fieldset>
<div class="builder-preview">
<span class="preview-label mono">Live preview</span>
<div
class="meta-strip preview-strip"
id="previewStrip"
role="list"
aria-label="Composed badges"
></div>
<pre class="codeblock mono" id="codeOut" aria-live="polite"></pre>
</div>
</div>
</section>
<figure class="figure" aria-labelledby="fig1cap">
<div class="fig-box">
<div class="fig-bars" id="figBars" aria-hidden="true"></div>
</div>
<figcaption id="fig1cap">
<strong>Figure 1.</strong> Share of articles in this issue carrying
each open-science badge (fictional data, <span class="mono">N = 86</span>
articles). Diamond and green routes dominate; full reproduction remains
rare.
</figcaption>
</figure>
<footer class="page-foot mono" id="cite">
Suggested citation: Halvorsen et al. (2026), <em>J. Reprod. Syst.</em>
14(3): e0334. Licensed CC BY 4.0.
</footer>
</main>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Peer-Review / Open-Access Badges
A complete set of open-science status badges for scholarly articles, rendered as one reusable pill component. The kit covers the review lifecycle (Peer-reviewed, Preprint, Registered Report), the three open-access routes (Gold, Green and Diamond OA, each colour-coded), and the reproducibility trio (Data available, Code available, Reproduced). Every badge carries an inline-SVG icon, an aria-label describing what it certifies, and a tooltip that appears on both hover and keyboard focus, so the meaning is never locked behind a mouse.
The page opens with a realistic article header — fictional authors, affiliations, a DOI and a tabular-figures meta strip — then a legend gallery you can filter by review, open access or artifacts. The builder lets you toggle the statuses that apply to a manuscript, with the open-access tier enforced as a mutually exclusive radio group; the live preview re-renders in canonical order and a code panel emits ready-to-paste HTML that a Copy HTML button writes to the clipboard.
Everything is vanilla HTML, CSS and JavaScript with no libraries: the icons are hand-drawn SVG paths, the tooltips are pure CSS, and Figure 1 is an inline bar chart whose bars borrow each badge’s accent colour and animate in on scroll. The layout collapses to a single column and the tables and strips wrap cleanly down to 360px.
Illustrative UI only — fictional authors, data, and figures; not real scientific results.