An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
refactor: rename project and skill to Papermorph
yzrddadbb54057e
diff --git a/.claude/skills/animebook/SKILL.md b/.claude/skills/papermorph/SKILL.mdsimilarity index 99%rename from .claude/skills/animebook/SKILL.mdrename to .claude/skills/papermorph/SKILL.mdindex bcb83aa..2b7bc6c 100644--- a/.claude/skills/animebook/SKILL.md+++ b/.claude/skills/papermorph/SKILL.md@@ -1,9 +1,9 @@----name: animebook+name: papermorphdescription: Make or edit animated, narrated, interactive web books from reference PDFs. Use for book planning, chapter animation and exercises, narration, cover and contents pages, and requested publishing, including "make the next chapter" or "fix this animation".----# AnimeBook+# PapermorphMake the picture explain the idea through change: rearrange, split, balance, count, compare. Each chapter is one 1600×900 SVG stage plus controls; **beats** pair narration clips with timed actions. Quick checks and final practice happen inside the picture. Templates supply mechanics; choose the visual argument for the content.diff --git a/.claude/skills/animebook/assets/engine/engine.css b/.claude/skills/papermorph/assets/engine/engine.csssimilarity index 100%rename from .claude/skills/animebook/assets/engine/engine.cssrename to .claude/skills/papermorph/assets/engine/engine.cssdiff --git a/.claude/skills/animebook/assets/engine/engine.js b/.claude/skills/papermorph/assets/engine/engine.jssimilarity index 99%rename from .claude/skills/animebook/assets/engine/engine.jsrename to .claude/skills/papermorph/assets/engine/engine.jsindex 538e56e..6ec278a 100644--- a/.claude/skills/animebook/assets/engine/engine.js+++ b/.claude/skills/papermorph/assets/engine/engine.js@@ -1,4 +1,4 @@-// AnimeBook lesson engine: stage, drawing, timeline, questions, player.+// Papermorph lesson engine: stage, drawing, timeline, questions, player.// A chapter page loads this file, defines CHAPTER and BEATS, then calls boot().'use strict';document.body.insertAdjacentHTML('afterbegin', `<div id="frame">diff --git a/.claude/skills/animebook/assets/templates/BOOK.md b/.claude/skills/papermorph/assets/templates/BOOK.mdsimilarity index 100%rename from .claude/skills/animebook/assets/templates/BOOK.mdrename to .claude/skills/papermorph/assets/templates/BOOK.mddiff --git a/.claude/skills/animebook/assets/templates/book.html b/.claude/skills/papermorph/assets/templates/book.htmlsimilarity index 100%rename from .claude/skills/animebook/assets/templates/book.htmlrename to .claude/skills/papermorph/assets/templates/book.htmldiff --git a/.claude/skills/animebook/assets/templates/chapter.html b/.claude/skills/papermorph/assets/templates/chapter.htmlsimilarity index 100%rename from .claude/skills/animebook/assets/templates/chapter.htmlrename to .claude/skills/papermorph/assets/templates/chapter.htmldiff --git a/.claude/skills/animebook/assets/templates/e2e.py b/.claude/skills/papermorph/assets/templates/e2e.pysimilarity index 100%rename from .claude/skills/animebook/assets/templates/e2e.pyrename to .claude/skills/papermorph/assets/templates/e2e.pydiff --git a/.claude/skills/animebook/assets/templates/narration.en.json b/.claude/skills/papermorph/assets/templates/narration.en.jsonsimilarity index 100%rename from .claude/skills/animebook/assets/templates/narration.en.jsonrename to .claude/skills/papermorph/assets/templates/narration.en.jsondiff --git a/.claude/skills/animebook/assets/templates/unit-art.js b/.claude/skills/papermorph/assets/templates/unit-art.jssimilarity index 100%rename from .claude/skills/animebook/assets/templates/unit-art.jsrename to .claude/skills/papermorph/assets/templates/unit-art.jsdiff --git a/.claude/skills/animebook/references/authoring.md b/.claude/skills/papermorph/references/authoring.mdsimilarity index 100%rename from .claude/skills/animebook/references/authoring.mdrename to .claude/skills/papermorph/references/authoring.mddiff --git a/.claude/skills/animebook/references/engine.md b/.claude/skills/papermorph/references/engine.mdsimilarity index 97%rename from .claude/skills/animebook/references/engine.mdrename to .claude/skills/papermorph/references/engine.mdindex 972b635..ebf0557 100644--- a/.claude/skills/animebook/references/engine.md+++ b/.claude/skills/papermorph/references/engine.md@@ -67,7 +67,7 @@ quiz(position, [{ id: 'c-mean', prompt: ['Find the mean of ', $m('7, 3, 9'), '.'Space play/pause, ←/→ previous/next beat (Shift+←/→ during a question), Home restart, C captions, F full screen, ? help. `seek(i, play)` rebuilds and jumps; `start(i, play)` begins a beat from the current picture. While audio plays, the beat clock follows `audio.currentTime`. `?beat=N&t=S` in the URL opens a frozen frame for review. The finish card's Enter opens `CHAPTER.next`, R replays.-Progress uses `animebook:progress:<book-path>`; the cover template reads the same key. Books served in different folders have separate saved places and completion lists.+Progress uses the stable legacy key `animebook:progress:<book-path>` (keep it when renaming the project so existing readers retain their progress); the cover template reads the same key. Books served in different folders have separate saved places and completion lists.Keep `<link rel="expect" href="#bar" blocking="render">` in every chapter's head; without it Chromium may paint before the player exists and cancel the page transition from the contents page.diff --git a/.claude/skills/animebook/references/review.md b/.claude/skills/papermorph/references/review.mdsimilarity index 100%rename from .claude/skills/animebook/references/review.mdrename to .claude/skills/papermorph/references/review.mddiff --git a/.claude/skills/animebook/references/site.md b/.claude/skills/papermorph/references/site.mdsimilarity index 100%rename from .claude/skills/animebook/references/site.mdrename to .claude/skills/papermorph/references/site.mddiff --git a/.claude/skills/animebook/scripts/check_blank.py b/.claude/skills/papermorph/scripts/check_blank.pysimilarity index 100%rename from .claude/skills/animebook/scripts/check_blank.pyrename to .claude/skills/papermorph/scripts/check_blank.pydiff --git a/.claude/skills/animebook/scripts/outline.py b/.claude/skills/papermorph/scripts/outline.pysimilarity index 100%rename from .claude/skills/animebook/scripts/outline.pyrename to .claude/skills/papermorph/scripts/outline.pydiff --git a/.claude/skills/animebook/scripts/shot.py b/.claude/skills/papermorph/scripts/shot.pysimilarity index 100%rename from .claude/skills/animebook/scripts/shot.pyrename to .claude/skills/papermorph/scripts/shot.pydiff --git a/.claude/skills/animebook/scripts/split_pages.py b/.claude/skills/papermorph/scripts/split_pages.pysimilarity index 100%rename from .claude/skills/animebook/scripts/split_pages.pyrename to .claude/skills/papermorph/scripts/split_pages.pydiff --git a/.claude/skills/animebook/scripts/tts.py b/.claude/skills/papermorph/scripts/tts.pysimilarity index 100%rename from .claude/skills/animebook/scripts/tts.pyrename to .claude/skills/papermorph/scripts/tts.pydiff --git a/CLAUDE.md b/CLAUDE.mdindex 4e2347b..b0ac718 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,6 +1,6 @@-# Agent 工作指南+# Papermorph Agent 工作指南-项目根目录:`/Users/a1212/Projects/AnimeBook`。+项目名称为 **Papermorph**,Skill 位于 `.claude/skills/papermorph/`。本地项目根目录仍为 `/Users/a1212/Projects/AnimeBook`。先阅读 [`plan.md`](plan.md),了解详细目标、已确认要求、候选编排和待定事项。本文件提供目录地图、素材说明和执行约定,避免重复维护完整计划。## 当前方向@@ -18,7 +18,7 @@```textAnimeBook/-├── CLAUDE.md # Agent 工作指南与目录地图+├── CLAUDE.md # Papermorph Agent 工作指南与目录地图├── plan.md # 详细项目计划├── README.md # PDF 按章节导出图片的使用说明├── sections.json # 分组名称、章节与单元信息、PDF 页码范围@@ -60,7 +60,7 @@ AnimeBook/├── content/chNN/ # 每章英文讲稿 narration.en.json([[mark]] 标记动画触发词)及 tts 缓存├── books/math-notebook/ # 第二本:BOOK.md、chapters.md、章节分镜与 sections.json;PDF 和 pages/ 为本地参考,不入 Git├── content/math-notebook/ # 第二本前三章讲稿与语音时间点-├── .claude/skills/animebook/ # 从 PDF 到互动动画书的流程(英文):拆书、规划、初始化、试点、逐章制作、轻量交付检查、目录与发布;+├── .claude/skills/papermorph/ # 从 PDF 到互动动画书的流程(英文):拆书、规划、初始化、试点、逐章制作、轻量交付检查、目录与发布;│ # scripts/(outline、split_pages、tts、shot、check_blank)、assets/(引擎与模板)、references/├── tools/│ ├── e2e_chNN.py # 当前数学书的浏览器端到端检查;播放器或判题变化时运行相关检查@@ -109,7 +109,7 @@ SVG 将 PNG 以 data URL 嵌入,单个文件自包含;仍然是位图,放## 现有工具-制作工具在技能 `.claude/skills/animebook/scripts/` 里(下面用 `$SKILL` 指技能根目录)。查看章节分组、按章导出书页与文字层:+制作工具在技能 `.claude/skills/papermorph/scripts/` 里(下面用 `$SKILL` 指技能根目录)。查看章节分组、按章导出书页与文字层:```shuv run --with pymupdf $SKILL/scripts/split_pages.py *.pdf --listdiff --git a/README.md b/README.mdindex b35f434..e417aaa 100644--- a/README.md+++ b/README.md@@ -1,21 +1,21 @@-# AnimeBook+# Papermorph把一本书(PDF)做成带动画、语音和互动练习的网页书。网站在 `site/`,首页书架目前收录:- *Elementary Algebra*:68 章,保留原有 `site/chNN/` 路径。- *Elementary Mathematics*:已完成前三章,入口在 `site/math-notebook/`;全书规划为 63 章,后续制作因 API 成本暂停。-在线书架:[math.diamonddoge.org](https://math.diamonddoge.org/)。Cloudflare Pages 项目为 `animebook`,生产分支为 `main`;直接发布静态文件,无构建步骤:+在线书架:[math.diamonddoge.org](https://math.diamonddoge.org/)。Cloudflare Pages 项目仍为 `animebook`,生产分支为 `main`;直接发布静态文件,无构建步骤:```shnpx wrangler pages deploy site --project-name animebook --branch main```-完整制作流程、脚本、引擎与模板都在技能 `.claude/skills/animebook/`(英文,从 `SKILL.md` 读起)。本书的计划与进度见 `plan.md`,目录地图与约定见 `CLAUDE.md`。+完整制作流程、脚本、引擎与模板都在技能 `.claude/skills/papermorph/`(英文,从 `SKILL.md` 读起)。本书的计划与进度见 `plan.md`,目录地图与约定见 `CLAUDE.md`。第二本书从 Book2 合并,使用独立引擎和学习进度;约定与进度见 `books/math-notebook/BOOK.md` 和 `chapters.md`,讲稿在 `content/math-notebook/`,检查脚本在 `tools/math-notebook/`。原始 PDF 和提取书页仅供本地制作,不进入 Git 或部署目录。-常用命令(`SKILL=.claude/skills/animebook`):+常用命令(`SKILL=.claude/skills/papermorph`):```shuv run --with pymupdf $SKILL/scripts/outline.py book.pdf # 看 PDF 书签,生成 sections.jsondiff --git a/books/math-notebook/BOOK.md b/books/math-notebook/BOOK.mdindex 593888b..c7361b8 100644--- a/books/math-notebook/BOOK.md+++ b/books/math-notebook/BOOK.md@@ -31,6 +31,6 @@ Read this compact current state for chapter work. The chapter map/status lives i## Current decisions- Pilot chapter 1 approved by the user (2026-10-03). Its look, pacing, question mix and side-notes layout are the model for later chapters; `site/math-notebook/ch01/index.html` is the reference implementation.- Layout used in ch01: number map on the left (engine `RINGS`), notes column at x ≥ 1290; number line −4…4 with `AXIS.u = 160`.-- Local preview: `python3 -m http.server 8765 -d site` (AnimeBook preview; use port 8793 if 8765 is occupied).+- Local preview: `python3 -m http.server 8765 -d site` (Papermorph preview; use port 8793 if 8765 is occupied).- Tests: `tools/math-notebook/smoke_chNN.py` (keyboard runs through quick checks; ch01–ch03).- Registering: `python3 tools/math-notebook/register.py N minutes` (UNITS, previous CHAPTER.next, chapters.md row).diff --git a/books/math-notebook/WORKER.md b/books/math-notebook/WORKER.mdindex e9f1efe..b40a8f0 100644--- a/books/math-notebook/WORKER.md+++ b/books/math-notebook/WORKER.md@@ -3,7 +3,7 @@You make ONE chapter of the animated book, end to end, then report back in a few lines. The coordinator registers it.## Paths (repo root `/Users/a1212/Projects/AnimeBook`)-- Skill: `SKILL=/Users/a1212/Projects/AnimeBook/.claude/skills/animebook` — read `$SKILL/SKILL.md` (Chapter loop), then only the references you need: `references/authoring.md` (storyboard, narration, questions), `references/engine.md` (API), `references/review.md` (delivery pass).+- Skill: `SKILL=/Users/a1212/Projects/AnimeBook/.claude/skills/papermorph` — read `$SKILL/SKILL.md` (Chapter loop), then only the references you need: `references/authoring.md` (storyboard, narration, questions), `references/engine.md` (API), `references/review.md` (delivery pass).- Book state: `books/math-notebook/BOOK.md` (conventions + helper index — follow it), `books/math-notebook/chapters.md` (your row).- Source text: `books/math-notebook/pages/chNN/text.md` (already extracted). Render page images when diagrams/fractions are lost in the text: `uv run --with pymupdf $SKILL/scripts/split_pages.py books/math-notebook/book.pdf --sections books/math-notebook/sections.json --out books/math-notebook/pages --only chNN`. Look only at the pages you need.- Write: `books/math-notebook/chapters/chNN.md` (storyboard, errata, verified answers — same shape as `chapters/ch01.md`), `content/math-notebook/chNN/narration.en.json`, `site/math-notebook/chNN/index.html`, audio via `uv run --with edge-tts $SKILL/scripts/tts.py content/math-notebook/chNN/narration.en.json site/math-notebook/chNN/audio/en`.diff --git a/plan.md b/plan.mdindex 9a8f838..2076268 100644--- a/plan.md+++ b/plan.md@@ -1,9 +1,11 @@-# AnimeBook 项目计划+# Papermorph 项目计划> 状态:三层照片书架、Elementary Algebra(68 章)与 Elementary Mathematics(前三章)已部署到 Cloudflare Pages(`https://math.diamonddoge.org/`),待用户审阅。2026-10-03 最近一次发布提交为 `0a5deea`(书架改版、书名与参考书致谢),生产部署 ID 为 `1efcd8ad-e14c-4ca0-9f17-c5f1e801aa16`,部署地址为 `https://1efcd8ad.animebook-0a3.pages.dev/`。线上书架、封面、目录、章节跳转、进度与免责声明检查通过;82 个线上文件与本地一致,包含全部 71 章页面及抽查音频。此前发布为 `851cc01` / `b68ed3b9-0ae3-4ebb-966b-bf836c4d5f86`。下一阶段继续系统检查与打磨动画;开场留白已在引擎层处理(见 6.1)。> 本文供后续参与项目的 agents 阅读和执行。明确标注的“候选”“建议”“待定”不等于已经获得用户确认。> 当前阶段重点审阅全书与书架,检查动画编排;未确认的 Skill 封装和新书制作范围继续讨论。+> 2026-10-03:项目名称确定为 **Papermorph**,核心制作 Skill 改名为 `papermorph`,目录位于 `.claude/skills/papermorph/`;首页、书本入口与项目文档同步使用新名称。本地工作区路径、Cloudflare Pages 项目与域名沿用现有配置,浏览器进度键保持兼容。+> 2026-10-03:按用户要求,将 Book2 的第二本书(现名 *Elementary Mathematics*)合并到本项目;现有三章、动画、MP3、讲稿、分镜、章节规划、原始参考资料和检查脚本已迁入,首页书架增加入口。第二本保留独立引擎与学习进度,第一本原有路径保持兼容。合并内容已随上述部署上线;第二本后续章节因 API 成本暂停。## 1. 项目目标@@ -70,7 +72,7 @@- `book_pages/ch01/` 至 `book_pages/ch68/`:68 章的书页图片。单元标题页并入该单元的第一章。- 其他分组:封面、前言、目录、索引、末尾推荐页。- `sections.json`:章节标题、单元归属和 PDF 页码边界。-- 拆书工具已并入技能:`.claude/skills/animebook/scripts/outline.py`(由 PDF 书签生成 `sections.json`)与 `split_pages.py`(按章导出书页图片和文字层 `text.md`)。+- 拆书工具已并入技能:`.claude/skills/papermorph/scripts/outline.py`(由 PDF 书签生成 `sections.json`)与 `split_pages.py`(按章导出书页图片和文字层 `text.md`)。- `README.md`:上述工具的使用说明。现有 Python 环境服务于 PDF 处理,不代表已经选定网站技术栈。@@ -469,7 +471,7 @@最终 Skill 开源分享的方向已确认,不以盈利为目标。封装重点是让其他使用者也能制作有教学价值的动画课程;具体许可证和发布方式尚未确定。-技能第一版位于 `.claude/skills/animebook/`(英文),已按用户确认的 review 方向整理:入门→拆书→章节规划→初始化→试点章→逐章制作→交付。每章读参考内容、写分镜与讲稿、生成语音、实现画面,做一次简短检查(加载、留白、重叠、裁切、文字密度、颜色一致性),局部修正明确问题后登记并交付;整体风格、节奏和教学效果由用户审阅。播放器、题型或判题逻辑变化时运行相关测试,普通新章沿用交付检查。共享 helper 按需要实现,另章复用时共享。代码/SVG 是默认素材方式,可按用户要求调整。+技能第一版位于 `.claude/skills/papermorph/`(英文),已按用户确认的 review 方向整理:入门→拆书→章节规划→初始化→试点章→逐章制作→交付。每章读参考内容、写分镜与讲稿、生成语音、实现画面,做一次简短检查(加载、留白、重叠、裁切、文字密度、颜色一致性),局部修正明确问题后登记并交付;整体风格、节奏和教学效果由用户审阅。播放器、题型或判题逻辑变化时运行相关测试,普通新章沿用交付检查。共享 helper 按需要实现,另章复用时共享。代码/SVG 是默认素材方式,可按用户要求调整。新书页面位于 `site/<书名>/`,制作资料在 `books/<书名>/`,讲稿和可选测试分别在 `content/<书名>/`、`tools/<书名>/`;引擎副本和浏览器进度按书隔离。当前数学书保持原路径。`BOOK.md` 只记录当前约定与 helper 索引,章节表和各章记录分开按需读取;有 subagent 能力时顺序制作,每次传短任务与必要路径。无书签 PDF 可先用 `split_pages.py --pages` 查看目录;截图默认仅开场与结束,中间帧按需增加。下一步由用户用第二本书检验制作质量、返工与实际模型费用。diff --git a/site/index.html b/site/index.htmlindex 8ee02f9..c157a11 100644--- a/site/index.html+++ b/site/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>AnimeBook — The animated bookshelf</title>+<title>Papermorph — The animated bookshelf</title><meta name="description" content="A little library of books brought to life. Watch animated lessons, explore the ideas, and try them yourself."><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%231d2b27'/%3E%3Ctext x='32' y='45' text-anchor='middle' font-size='48' fill='%23f0b45a'%3E∞%3C/text%3E%3C/svg%3E"><link rel="stylesheet" href="lib/bookshelf.css">@@ -189,7 +189,7 @@ main#contents { padding-bottom: 80px; }<body class="shelved"><main id="shelf" aria-labelledby="shelf-title"><header class="shelf-top">- <h1 id="shelf-title"><a class="shelf-brand" href="#"><span aria-hidden="true">∞</span> AnimeBook</a></h1>+ <h1 id="shelf-title"><a class="shelf-brand" href="#"><span aria-hidden="true">∞</span> Papermorph</a></h1><p>Animated books · A growing collection</p></header><figure class="photo-shelf" aria-label="Three shelves: STEM, picture books for children, and curious books">@@ -225,7 +225,7 @@ main#contents { padding-bottom: 80px; }<dialog class="shelf-about" id="shelf-about" aria-labelledby="shelf-about-title"><form method="dialog"><button class="about-close" aria-label="Close">×</button></form><p class="about-kicker">A note from the bookshelf</p>- <h2 id="shelf-about-title">About AnimeBook</h2>+ <h2 id="shelf-about-title">About Papermorph</h2><p>An independent, noncommercial educational project. Not affiliated with the authors or publishers of the reference books. Book titles and original materials belong to their respective owners.</p><p>Lessons may contain errors; corrections are welcome. Reading progress stays in your browser. Books on the future shelves are previews, not available lessons.</p><p>The public GitHub repository will collect the source and Skills. It is coming soon.</p>@@ -345,7 +345,7 @@ function show(animate) {const apply = () => {document.body.classList.toggle('shelved', shelf);document.body.classList.toggle('open', open);- document.title = shelf ? 'AnimeBook — The animated bookshelf' : 'Elementary Algebra — AnimeBook';+ document.title = shelf ? 'Papermorph — The animated bookshelf' : 'Elementary Algebra — Papermorph';document.body.classList.toggle('stagger', animate && open);const here = open ? document.getElementById(location.hash.slice(1)) : null;document.querySelectorAll('.here').forEach(e => e.classList.remove('here'));diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.jsindex 4c00823..f532fa3 100644--- a/site/lib/bookshelf.js+++ b/site/lib/bookshelf.js@@ -30,7 +30,7 @@const link = document.createElement('a');link.className = drawer.className;link.href = githubURL;- link.setAttribute('aria-label', 'AnimeBook on GitHub: source and Skills');+ link.setAttribute('aria-label', 'Papermorph on GitHub: source and Skills');const label = document.createElement('span');label.className = 'github-status';label.textContent = 'Source & Skills ↗';diff --git a/site/lib/engine.js b/site/lib/engine.jsindex 681ed5e..1fc1e17 100644--- a/site/lib/engine.js+++ b/site/lib/engine.js@@ -1,4 +1,4 @@-// AnimeBook lesson engine: stage, drawing, timeline, questions, player.+// Papermorph lesson engine: stage, drawing, timeline, questions, player.// A chapter page loads this file, defines CHAPTER and BEATS, then calls boot().'use strict';document.body.insertAdjacentHTML('afterbegin', `<div id="frame">diff --git a/site/math-notebook/index.html b/site/math-notebook/index.htmlindex 0420f8d..be0bd17 100644--- a/site/math-notebook/index.html+++ b/site/math-notebook/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Elementary Mathematics — AnimeBook</title>+<title>Elementary Mathematics — Papermorph</title><meta name="description" content="Animated middle-school mathematics, with narrated lessons, interactive quick checks, and chapter practice."><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%231d2b27'/%3E%3Ctext x='32' y='45' text-anchor='middle' font-size='48' fill='%23f0b45a'%3E∞%3C/text%3E%3C/svg%3E"><script src="unit-art.js"></script>diff --git a/site/math-notebook/lib/engine.js b/site/math-notebook/lib/engine.jsindex f54b0c4..a7cf863 100644--- a/site/math-notebook/lib/engine.js+++ b/site/math-notebook/lib/engine.js@@ -1,4 +1,4 @@-// AnimeBook lesson engine: stage, drawing, timeline, questions, player.+// Papermorph lesson engine: stage, drawing, timeline, questions, player.// A chapter page loads this file, defines CHAPTER and BEATS, then calls boot().'use strict';document.body.insertAdjacentHTML('afterbegin', `<div id="frame">