refactor(website): move UI text out of scripts before translation

Prepare the website for localized pages without changing what English
readers see:

- Add --font-sans and --font-mono tokens and use them for every font stack.
- Read copy feedback from the shared #copy-status element, restore each
  Copy button's own label, and build the GitHub star label from header
  data attributes with Intl.PluralRules and Intl.NumberFormat for the
  page language.
- Move the percent demo, dinosaur game and speed-check messages into
  data-msg-* attributes on the home page and dino lab.
- Render the skip link from the shared header template.
- Fix the lowercase Ghidra macOS/Linux copy-button label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-11 07:09:16 +00:00
co-authored by Claude Opus 5.5
parent 21650455a9
commit 3d34185171
25 changed files with 372 additions and 86 deletions
+5 -2
View File
@@ -7,8 +7,11 @@
An English static website with explanatory figures, worked guides and Aegis, DX-Ball, Notion, TH04 and CTF investigations.
The public files are in `website/public/`. The site uses HTML, CSS and small
scripts for copying code, following code comparisons and playing the dinosaur
speed reconstruction. Small Python commands maintain shared HTML, prepare
downloads and check the site. There is no frontend framework, bundler or npm
speed reconstruction. The scripts contain no reader-facing text: copy messages
and the GitHub star label come from the shared header and footer, and each demo
reads its messages from `data-msg-*` attributes in the page, with `{name}`
placeholders for inserted values. Small Python commands maintain shared HTML,
prepare downloads and check the site. There is no frontend framework, bundler or npm
dependency. The checked-in HTML works as ordinary static files.
[style-guide.md](style-guide.md) explains the writing, page structure, figures,
+28 -22
View File
@@ -11,6 +11,9 @@ function initializeDinoDemo(demo) {
const auto = demo.querySelector("[data-dino-auto]");
const output = demo.querySelector("[data-dino-speed]");
const status = demo.querySelector("[data-dino-status]");
// The page owns the localized messages; {name} marks an inserted value.
const message = (name, values = {}) =>
demo.dataset[name].replace(/\{(\w+)\}/g, (_, key) => values[key]);
const ground = 148;
const dinosaurX = 52;
const dinosaur = new Path2D(
@@ -67,7 +70,9 @@ function initializeDinoDemo(demo) {
context.font = "13px monospace";
context.textAlign = "right";
context.fillText(
`DISTANCE ${String(Math.floor(distance / 100)).padStart(4, "0")}`,
message("msgDistance", {
distance: String(Math.floor(distance / 100)).padStart(4, "0"),
}),
580,
28,
);
@@ -75,18 +80,18 @@ function initializeDinoDemo(demo) {
context.textAlign = "center";
context.font = "15px system-ui";
context.fillText(
crashed ? "Hit a cactus. Try another speed." : "Space or Jump ↑",
message(crashed ? "msgCanvasCrashed" : "msgCanvasReady"),
330,
85,
);
}
};
const stop = (message) => {
const stop = (notice) => {
running = false;
cancelAnimationFrame(frame);
start.textContent = crashed ? "Play again" : "Play";
if (message) status.textContent = message;
start.textContent = message(crashed ? "msgPlayAgain" : "msgPlay");
if (notice) status.textContent = notice;
draw();
};
@@ -99,8 +104,8 @@ function initializeDinoDemo(demo) {
obstacles = [{ x: 550, height: 38 }];
if (auto.checked) speed = SPEED_RULE.start;
elapsed = 0;
start.textContent = "Play";
status.textContent = "Press Play, then jump over the cactus.";
start.textContent = message("msgPlay");
status.textContent = message("msgReady");
updateSpeedDisplay();
draw();
};
@@ -134,7 +139,7 @@ function initializeDinoDemo(demo) {
)
) {
crashed = true;
stop("Hit a cactus. Press Play again, or change the speed and restart.");
stop(message("msgCrashed"));
}
};
@@ -157,8 +162,8 @@ function initializeDinoDemo(demo) {
running = true;
lastTime = performance.now();
elapsed = 0;
start.textContent = "Pause";
status.textContent = "Running. Space or Jump clears a cactus.";
start.textContent = message("msgPause");
status.textContent = message("msgRunning");
frame = requestAnimationFrame(animate);
};
@@ -169,7 +174,7 @@ function initializeDinoDemo(demo) {
};
start.addEventListener("click", () => {
if (running) stop("Paused. Press Play to continue.");
if (running) stop(message("msgPaused"));
else play();
});
demo.querySelector("[data-dino-jump]").addEventListener("click", jump);
@@ -188,25 +193,25 @@ function initializeDinoDemo(demo) {
auto.checked = false;
speed = Number(slider.value);
updateSpeedDisplay();
status.textContent = running
? `Fixed speed: ${speed.toFixed(1)}. Space or Jump clears a cactus.`
: `Fixed speed: ${speed.toFixed(1)}. Press Play to try it.`;
status.textContent = message(
running ? "msgFixedRunning" : "msgFixedStopped",
{ speed: speed.toFixed(1) },
);
draw();
});
auto.addEventListener("change", () => {
if (auto.checked) speed = SPEED_RULE.start;
updateSpeedDisplay();
status.textContent = auto.checked
? "Recovered rule: start at 6, then increase toward 13."
: `Fixed speed: ${speed.toFixed(1)}.`;
? message("msgRule")
: message("msgFixed", { speed: speed.toFixed(1) });
});
document.addEventListener("visibilitychange", () => {
if (document.hidden && running) stop("Paused. Press Play to continue.");
if (document.hidden && running) stop(message("msgPaused"));
});
if ("IntersectionObserver" in window) {
new IntersectionObserver((entries) => {
if (!entries[0].isIntersecting && running)
stop("Paused. Press Play to continue.");
if (!entries[0].isIntersecting && running) stop(message("msgPaused"));
}).observe(demo);
}
demo.querySelector(".dino-fallback").setAttribute("hidden", "");
@@ -229,7 +234,8 @@ speedCheck?.addEventListener("click", () => {
matches =
matches && speed === cell.parentElement.children[1].textContent.trim();
});
document.querySelector("[data-speed-check-status]").textContent = matches
? "Replayed the recovered rule. All four values match the controlled original-game check when rounded to three decimals."
: "The replay differs from the recorded original-game values. Compare the speed rule and settings above.";
const status = document.querySelector("[data-speed-check-status]");
status.textContent = matches
? status.dataset.msgMatch
: status.dataset.msgMismatch;
});
+6 -5
View File
@@ -5,6 +5,9 @@ function initializePercentDemo() {
const expression = demo.querySelector("[data-percent-expression]");
const status = demo.querySelector("[data-percent-status]");
const equals = demo.querySelector('[data-percent-key="equals"]');
// The page owns the localized messages; {name} marks an inserted value.
const message = (name, values = {}) =>
demo.dataset[name].replace(/\{(\w+)\}/g, (_, key) => values[key]);
const operations = demo.querySelectorAll("[data-percent-operation]");
let operation = "add";
let stage = "input";
@@ -24,12 +27,10 @@ function initializePercentDemo() {
equals.disabled = stage !== "percent";
status.textContent =
stage === "input"
? "Press % to see what happens to 10."
? message("msgInput")
: stage === "percent"
? adding
? "10% of 200 is 20. Press = to add it."
: "For multiplication, 10 becomes 0.1. Press = to multiply."
: `200 ${operator} ${percent} = ${result}.`;
? message(adding ? "msgPercentAdd" : "msgPercentMultiply")
: message("msgResult", { operator, percent, result });
};
operations.forEach((button) => {
+20 -9
View File
@@ -1,10 +1,15 @@
function initializeCopyButtons() {
// The shared footer owns the localized copy messages.
const status = document.getElementById("copy-status");
if (status === null) return;
const messages = status.dataset;
document.querySelectorAll("[data-copy]").forEach((button) => {
const label = button.textContent;
button.addEventListener("click", async () => {
const target = document.getElementById(button.getAttribute("data-copy"));
if (target === null) return;
const status = document.getElementById("copy-status");
const content = target.textContent.trim();
const text =
target.closest(".terminal-prompt") === null
@@ -12,8 +17,8 @@ function initializeCopyButtons() {
: content.replace(/\s+/g, " ");
try {
await navigator.clipboard.writeText(text);
button.textContent = "Copied";
if (status !== null) status.textContent = "Code copied to clipboard.";
button.textContent = messages.copied;
status.textContent = messages.statusCopied;
} catch {
const range = document.createRange();
range.selectNodeContents(target);
@@ -22,13 +27,12 @@ function initializeCopyButtons() {
selection.removeAllRanges();
selection.addRange(range);
}
button.textContent = "Selected";
if (status !== null)
status.textContent = "Code selected. Use your keyboard to copy it.";
button.textContent = messages.selected;
status.textContent = messages.statusSelected;
}
window.setTimeout(() => {
button.textContent = "Copy";
button.textContent = label;
}, 2000);
});
});
@@ -128,8 +132,15 @@ async function initializeGitHubStars() {
const stars = repository.stargazers_count;
if (!Number.isSafeInteger(stars) || stars < 0) return;
const formatted = new Intl.NumberFormat("en-US").format(stars);
const label = `REA on GitHub (${formatted} ${stars === 1 ? "star" : "stars"})`;
// The shared header owns one localized label per plural category.
const lang = document.documentElement.lang || undefined;
const category = new Intl.PluralRules(lang).select(stars);
const template =
link.dataset[`label${category[0].toUpperCase()}${category.slice(1)}`] ??
link.dataset.labelOther;
if (template === undefined) return;
const formatted = new Intl.NumberFormat(lang).format(stars);
const label = template.replace("{count}", formatted);
count.textContent = formatted;
count.hidden = false;
link.setAttribute("aria-label", label);
+9 -7
View File
@@ -6,8 +6,10 @@
--soft: #f4f6f8;
--accent: #294f82;
--page: #ffffff;
font-family:
--font-sans:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-sans);
font-synthesis: none;
text-rendering: optimizeLegibility;
}
@@ -44,7 +46,7 @@ button {
}
code,
pre {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-mono);
}
code {
font-size: 0.9em;
@@ -57,7 +59,7 @@ kbd {
border-radius: 3px;
background: var(--soft);
color: var(--ink);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-mono);
font-size: 0.85em;
white-space: nowrap;
}
@@ -932,7 +934,7 @@ pre code {
font-variant-numeric: tabular-nums;
}
.aegis-calculation .aegis-code {
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
font-family: ui-monospace, var(--font-mono);
font-size: 1.5rem;
letter-spacing: 0.06em;
}
@@ -1264,7 +1266,7 @@ pre code {
margin: 0;
padding: 1.4rem;
color: #f1f4f8;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-mono);
font-size: 0.9rem;
line-height: 1.9;
}
@@ -1878,7 +1880,7 @@ pre code {
gap: 0.5rem;
}
.expert-facts dt {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-mono);
}
.expert-facts dd {
margin: 0;
@@ -2137,7 +2139,7 @@ pre code {
font-size: 0.875rem;
}
.dino-speed-label output {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
color: var(--accent);
}
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -170,7 +173,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top" class="blog-article">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -1020,7 +1023,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+39 -4
View File
@@ -55,9 +55,10 @@
<script type="module" src="../../assets/dino-demo.js"></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -77,6 +78,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -166,7 +169,24 @@
try a slower or faster game; it switches to a fixed speed. Select
the recovered rule to start at 6 and gradually accelerate again.
</p>
<figure class="dino-demo dino-lab-demo" data-dino-demo>
<figure
class="dino-demo dino-lab-demo"
data-dino-demo
data-msg-play="Play"
data-msg-pause="Pause"
data-msg-play-again="Play again"
data-msg-ready="Press Play, then jump over the cactus."
data-msg-running="Running. Space or Jump clears a cactus."
data-msg-paused="Paused. Press Play to continue."
data-msg-crashed="Hit a cactus. Press Play again, or change the speed and restart."
data-msg-fixed="Fixed speed: {speed}."
data-msg-fixed-running="Fixed speed: {speed}. Space or Jump clears a cactus."
data-msg-fixed-stopped="Fixed speed: {speed}. Press Play to try it."
data-msg-rule="Recovered rule: start at 6, then increase toward 13."
data-msg-distance="DISTANCE {distance}"
data-msg-canvas-ready="Space or Jump ↑"
data-msg-canvas-crashed="Hit a cactus. Try another speed."
>
<p class="figure-title">Play the reconstruction</p>
<div class="dino-stage">
<svg
@@ -331,7 +351,13 @@
<button class="button" type="button" data-speed-check hidden>
Run the speed check
</button>
<p class="caption" data-speed-check-status role="status">
<p
class="caption"
data-speed-check-status
data-msg-match="Replayed the recovered rule. All four values match the controlled original-game check when rounded to three decimals."
data-msg-mismatch="The replay differs from the recorded original-game values. Compare the speed rule and settings above."
role="status"
>
Values rounded to three decimals. The branch checks before adding,
so the final increment can take speed just above 13.
</p>
@@ -413,7 +439,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -511,7 +514,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -450,7 +453,16 @@ JS</code></pre>
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+15 -3
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -587,7 +590,7 @@ fnm default 24</code></pre>
class="copy-button"
type="button"
data-copy="ghidra-connect"
aria-label="Copy ghidra connection · macos / linux"
aria-label="Copy Ghidra connection for macOS and Linux"
>
Copy
</button>
@@ -819,7 +822,16 @@ npx rea-agents@latest setup</code></pre>
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -435,7 +438,16 @@ link.click();</code></pre>
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -222,7 +225,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -435,7 +438,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -449,7 +452,16 @@ return (DxBallInt)pan;</code></pre>
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+40 -4
View File
@@ -56,9 +56,10 @@
<script type="module" src="assets/dino-demo.js"></script>
</head>
<body class="home-page" id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="./" aria-label="REA home"
@@ -78,6 +79,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -512,7 +515,24 @@
</div>
</dl>
<div class="home-example-grid dino-example-grid">
<figure class="dino-demo" data-dino-demo>
<figure
class="dino-demo"
data-dino-demo
data-msg-play="Play"
data-msg-pause="Pause"
data-msg-play-again="Play again"
data-msg-ready="Press Play, then jump over the cactus."
data-msg-running="Running. Space or Jump clears a cactus."
data-msg-paused="Paused. Press Play to continue."
data-msg-crashed="Hit a cactus. Press Play again, or change the speed and restart."
data-msg-fixed="Fixed speed: {speed}."
data-msg-fixed-running="Fixed speed: {speed}. Space or Jump clears a cactus."
data-msg-fixed-stopped="Fixed speed: {speed}. Press Play to try it."
data-msg-rule="Recovered rule: start at 6, then increase toward 13."
data-msg-distance="DISTANCE {distance}"
data-msg-canvas-ready="Space or Jump ↑"
data-msg-canvas-crashed="Hit a cactus. Try another speed."
>
<p class="figure-title">Play the reconstruction</p>
<div class="dino-stage">
<svg
@@ -746,7 +766,14 @@ SPEED: 6</code></pre>
</div>
</dl>
<div class="home-example-grid">
<figure class="percent-figure" data-percent-demo>
<figure
class="percent-figure"
data-percent-demo
data-msg-input="Press % to see what happens to 10."
data-msg-percent-add="10% of 200 is 20. Press = to add it."
data-msg-percent-multiply="For multiplication, 10 becomes 0.1. Press = to multiply."
data-msg-result="200 {operator} {percent} = {result}."
>
<p class="figure-title">Try the calculation</p>
<div
class="percent-operation"
@@ -1115,7 +1142,16 @@ SPEED: 6</code></pre>
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -55,9 +55,10 @@
<script type="module" src="../../assets/aegis-demo.js"></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -77,6 +78,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -747,7 +750,16 @@ npx rea-agents@latest inspect-android-package \
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -717,7 +720,16 @@ chmod +x ms_flag_checker
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -725,7 +728,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -257,7 +260,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -563,7 +566,16 @@ mimeTypes:
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+14 -2
View File
@@ -54,9 +54,10 @@
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="../../" aria-label="REA home"
@@ -76,6 +77,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
@@ -740,7 +743,16 @@ no_aim:
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+10 -1
View File
@@ -10,7 +10,16 @@
</div>
</div>
</footer>
<p class="sr-only" id="copy-status" role="status" aria-live="polite"></p>
<p
class="sr-only"
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
+4
View File
@@ -1,4 +1,6 @@
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="$base" aria-label="REA home"
@@ -12,6 +14,8 @@
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
>
<svg
width="22"
-1
View File
@@ -14,7 +14,6 @@
<script src="${base}assets/main.js" defer></script>
</head>
<body id="top">
<a class="skip-link" href="#main">Skip to content</a>
<!-- website:header:start -->
<!-- website:header:end -->
<main id="main" class="container">