An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat: redesign bookshelf and credit source books
yzr0a5deeae0cfa
diff --git a/3.png b/3.pngnew file mode 100644index 0000000..f8d7cc6Binary files /dev/null and b/3.png differdiff --git a/CLAUDE.md b/CLAUDE.mdindex 87bb446..4e2347b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -5,7 +5,7 @@## 当前方向-- 网站已收录两本书:第一本 68 章;第二本 Math Notebook 的前三章从 Book2 合并。第二本的约定与进度在 `books/math-notebook/`,后续章节因 API 成本暂停,需用户授权后再制作。+- 网站已收录两本书:Elementary Algebra(第一本,68 章);Elementary Mathematics(第二本,前三章从 Book2 合并)。第二本的约定与进度在 `books/math-notebook/`,后续章节因 API 成本暂停,需用户授权后再制作。- 以参考书为基础重新创作数学动画练习册,先做第一章实验。- 成品是尽量轻量、自包含的静态站点,无应用后端和数据库。- 数学教学动画是核心。用户已验证纯 JS 动画的可行性,允许实现 agent 自行处理动画细节;技术栈尚未选定。@@ -67,7 +67,8 @@ AnimeBook/│ └── math-notebook/ # 第二本:smoke_ch01–ch03.py 与 register.py├── site/ # 可部署的静态站点(只部署此目录)│ ├── index.html # 书架、书封与章节目录(同一页,hash 切换;章节数据在 UNITS;localStorage 记进度)-│ ├── lib/ # 共用引擎 engine.js / engine.css;书架数据与样式 bookshelf.js / bookshelf.css;目录页单元小图 unit-art.js+│ ├── assets/bookshelf.png # 用户提供的 3.png 原图副本,三层照片书架,仅用于网站+│ ├── lib/ # 共用引擎 engine.js / engine.css;书架点击区域样式、继续阅读与 GitHub 配置在 bookshelf.*;目录页单元小图 unit-art.js│ ├── chNN/ # ch01–ch68 每章一个目录:index.html(本章步骤与题目)、audio/en/(MP3 与 timings.js)│ └── math-notebook/ # 第二本:封面与目录、独立 lib/ 引擎、unit-art.js、ch01–ch03 与现有 MP3├── .git/ # 本地 Git 仓库,尚未配置远程diff --git a/README.md b/README.mdindex b5ecef3..2699d60 100644--- a/README.md+++ b/README.md@@ -2,8 +2,8 @@把一本书(PDF)做成带动画、语音和互动练习的网页书。网站在 `site/`,首页书架目前收录:-- *Pre-Algebra & Algebra*:68 章,保留原有 `site/chNN/` 路径。-- *Ace Math & the Big Fat Notebook*:已完成前三章,入口在 `site/math-notebook/`;全书规划为 63 章,后续制作因 API 成本暂停。+- *Elementary Algebra*:68 章,保留原有 `site/chNN/` 路径。+- *Elementary Mathematics*:已完成前三章,入口在 `site/math-notebook/`;全书规划为 63 章,后续制作因 API 成本暂停。完整制作流程、脚本、引擎与模板都在技能 `.claude/skills/animebook/`(英文,从 `SKILL.md` 读起)。本书的计划与进度见 `plan.md`,目录地图与约定见 `CLAUDE.md`。diff --git a/books/math-notebook/BOOK.md b/books/math-notebook/BOOK.mdindex b24ee24..593888b 100644--- a/books/math-notebook/BOOK.md+++ b/books/math-notebook/BOOK.md@@ -1,8 +1,9 @@-# Everything You Need to Ace Math in One Big Fat Notebook — book plan+# Elementary Mathematics — book planRead this compact current state for chapter work. The chapter map/status lives in `chapters.md`; storyboards, errata and feedback live in `chapters/chNN.md`.## Intake+- Display name: Elementary Mathematics (user, 2026-10-03). Inspired by [Everything You Need to Ace Math in One Big Fat Notebook](https://www.hachettebookgroup.com/titles/workman-publishing/everything-you-need-to-ace-math-in-one-big-fat-notebook/9780761160960/?lens=workman-publishing-company); this credit is displayed on the book cover.- Readers: middle schoolers (11–14) · Tone: light, upbeat, notebook-style (warm, a little funny, never childish) · Narration language: English · Guide character: default infinity guide · Publish to: local preview only for now.- Slug: `math-notebook` · Primary language code: `en` · Asset approach: code/SVG only.- Source: `book.pdf` · Page map: `sections.json` · 530 pages, 63 chapters in 6 units.diff --git a/books/math-notebook/WORKER.md b/books/math-notebook/WORKER.mdindex ba31d00..e9f1efe 100644--- a/books/math-notebook/WORKER.md+++ b/books/math-notebook/WORKER.md@@ -1,4 +1,4 @@-# Chapter worker brief (math-notebook)+# Chapter worker brief (Elementary Mathematics; slug `math-notebook`)You make ONE chapter of the animated book, end to end, then report back in a few lines. The coordinator registers it.diff --git a/plan.md b/plan.mdindex 1ba57b0..9c45028 100644--- a/plan.md+++ b/plan.md@@ -20,16 +20,24 @@先以第一章验证完整教学体验,形成可复用的制作方法,再逐步扩展到其他章节。用户曾在大学线性代数内容上验证过 agent 制作纯 JavaScript 动画的能力,当时没有加入语音。用户认可 agent 自行处理动画的能力;本项目应围绕清楚的教学编排发挥这种能力,不预先要求复杂的动画框架。-### 1.1 书架首版(2026-10-02)+### 1.1 书架(2026-10-03 更新)-首页为公开书架,点击书封、标题或文字入口先进入书本身的封面页,再通过封面页打开目录,继续进入章节动画;不要跳过书封页。首版展示已有数学书,书架入口使用轻巧的下划线文字与箭头,不使用大块实底按钮。保留章节深链接和浏览器内的学习进度,继续阅读可直接到上次章节;从书封、目录可回到书架。网站不设登录、支付或访客在线创作系统,制作能力后续通过开源 Skill 分享。+首页为公开书架,点击书封先进入书本身的封面页,再通过封面页打开目录,继续进入章节动画。用户觉得封面到目录多一次跳转,但明确暂时保留。保留章节深链接和浏览器内的学习进度,继续阅读可直接到上次章节;从书封、目录可回到书架。网站不设登录、支付或访客在线创作系统,制作能力后续通过开源 Skill 分享。++用户要求参考 Dynamicland 的照片书架,改成三层:第一层 STEM(目前为 Math);第二层给小孩看的绘本;第三层更有趣的书。用户提供根目录 `3.png`(1086×1448),网站使用原图副本 `site/assets/bookshelf.png`。用户明确纠正适配含义:书架横向铺满浏览器,保留原图比例向下浏览,点击区域和标签同步缩放;顶部品牌融入书柜的上沿,底部信息融入抽屉木纹,不留独立黑色页眉页脚。详细声明由底部 About & disclaimer 打开。桌面优先,不做单独的手机设计。顶层前两本分别接现有的 Elementary Algebra 与 Elementary Mathematics,标签写实际课程名称和可用章节数;物理书及后两层为 Coming soon,仅作展示。用户要求移除了额外添加的 PICTURE BOOKS / CURIOUS BOOKS 小标签。图中下两层的书不代表已有课程。++每层 Skill 纸张入口的方案已被用户取消;底部 GitHub 将来统一承载源码和 Skills。仓库尚未上线,当前仅显示 Coming soon,不设置假链接;以后在 `site/lib/bookshelf.js` 的 `githubURL` 填入仓库地址。底部保留独立教育项目、非原书作者或出版社关联、内容纠错与浏览器保存进度的简短说明。这次首页视觉属于网站实现,不进入制作 Skill;Skill 当前仍含有书架说明,但用户要求先检查,尚未修改。目录页每个单元的标题区是一条“黑板带”(用户 2026-10-03 指出目录页太单调):右侧是该单元数学内容的粉笔线条小图,用单元颜色绘制,背后一层同色柔光;单元第一次滚动进入视野时逐笔画出,之后保留一个与内容相关的小循环动作(如交换律中 a、b 互换,数轴上跳点,饼图填充,天平摆动,坐标线上走点,转盘转动,函数机器进出,面积格依次亮起,平方差缺角闪现,√2 对角线重画,根点脉动,抛物线伸缩)。全部由代码绘制,不使用外部图片;图画在 `site/lib/unit-art.js`,样式与动作在 `site/index.html`;系统设置减少动态时只显示静态完成图。-书架样式与数据在 `site/lib/bookshelf.css` 和 `site/lib/bookshelf.js`,第一本数学书的章节和单元数量由现有目录自动读取。入口不带 hash 时展示书架,`#book` 展示第一本书封面,`#contents` / `#chNN` 展示其目录;原有章节链接和引擎路径保持兼容。第二本位于 `site/math-notebook/`,书架列出当前可用的 3 章、1 个单元;63 章、6 个单元的全书规划仅在制作资料中记录,不显示未制作的章节入口。新书增加独立目录及书架条目,不展示未制作的占位作品。+书架的照片与入口在 `site/index.html`,点击区域样式在 `site/lib/bookshelf.css`,继续阅读与未来 GitHub 链接配置在 `site/lib/bookshelf.js`。入口不带 hash 时展示书架,`#book` 展示第一本书封面,`#contents` / `#chNN` 展示其目录;原有章节链接和引擎路径保持兼容。第二本位于 `site/math-notebook/`,书架标出当前可用的 3 章;63 章、6 个单元的全书规划仅在制作资料中记录,不显示未制作的章节入口。## 2. 已确定的要求+2026-10-03 用户确定两本作品名称:第一本(已完成 68 章)为 **Elementary Algebra**,第二本(目前更新到第 3 章)为 **Elementary Mathematics**。书架、封面、目录及章节浏览器标题统一使用这些名称;参考教材的原始名称保留在来源记录中,已有 URL、目录 slug 和学习进度键保持兼容。++两本书的书封中转页标注 Inspired by 并链接出版社页面:Elementary Algebra → [Everything You Need to Ace Pre-Algebra and Algebra 1 in One Big Fat Notebook](https://www.hachettebookgroup.com/titles/workman-publishing/everything-you-need-to-ace-pre-algebra-and-algebra-1-in-one-big-fat-notebook/9781523504381/?lens=workman-publishing-company);Elementary Mathematics → [Everything You Need to Ace Math in One Big Fat Notebook](https://www.hachettebookgroup.com/titles/workman-publishing/everything-you-need-to-ace-math-in-one-big-fat-notebook/9780761160960/?lens=workman-publishing-company)。+| 项目 | 决定 || --- | --- || 内容层级 | 书 → 单元 → 章节 → 小节 |diff --git a/site/assets/bookshelf.png b/site/assets/bookshelf.pngnew file mode 100644index 0000000..f8d7cc6Binary files /dev/null and b/site/assets/bookshelf.png differdiff --git a/site/ch01/index.html b/site/ch01/index.htmlindex ad40a8a..08a4814 100644--- a/site/ch01/index.html+++ b/site/ch01/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Types of Numbers</title>+<title>Types of Numbers — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch02/index.html b/site/ch02/index.htmlindex b2147d8..dfb3910 100644--- a/site/ch02/index.html+++ b/site/ch02/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Algebraic Properties</title>+<title>Algebraic Properties — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch03/index.html b/site/ch03/index.htmlindex 39c824f..a3a888a 100644--- a/site/ch03/index.html+++ b/site/ch03/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Order of Operations</title>+<title>Order of Operations — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch04/index.html b/site/ch04/index.htmlindex 93aeaa3..abe6d09 100644--- a/site/ch04/index.html+++ b/site/ch04/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Adding Positive and Negative Numbers</title>+<title>Adding Positive and Negative Numbers — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch05/index.html b/site/ch05/index.htmlindex 9263e15..48e8852 100644--- a/site/ch05/index.html+++ b/site/ch05/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Subtracting Positive and Negative Numbers</title>+<title>Subtracting Positive and Negative Numbers — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch06/index.html b/site/ch06/index.htmlindex ef4c2cf..e91a591 100644--- a/site/ch06/index.html+++ b/site/ch06/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Positive and Negative Numbers</title>+<title>Multiplying and Dividing Positive and Negative Numbers — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch07/index.html b/site/ch07/index.htmlindex fb4c218..54a502f 100644--- a/site/ch07/index.html+++ b/site/ch07/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Fractions</title>+<title>Multiplying and Dividing Fractions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch08/index.html b/site/ch08/index.htmlindex a0daba1..4ca4f17 100644--- a/site/ch08/index.html+++ b/site/ch08/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Adding and Subtracting Fractions</title>+<title>Adding and Subtracting Fractions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch09/index.html b/site/ch09/index.htmlindex ff9a2f5..26cd14c 100644--- a/site/ch09/index.html+++ b/site/ch09/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Adding and Subtracting Decimals</title>+<title>Adding and Subtracting Decimals — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch10/index.html b/site/ch10/index.htmlindex b555dd1..3455595 100644--- a/site/ch10/index.html+++ b/site/ch10/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Decimals</title>+<title>Multiplying and Dividing Decimals — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch11/index.html b/site/ch11/index.htmlindex e53a928..40d6a9b 100644--- a/site/ch11/index.html+++ b/site/ch11/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Ratio</title>+<title>Ratio — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch12/index.html b/site/ch12/index.htmlindex d006808..f83ce60 100644--- a/site/ch12/index.html+++ b/site/ch12/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Unit Rate</title>+<title>Unit Rate — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch13/index.html b/site/ch13/index.htmlindex 4851ab6..6f7a6fb 100644--- a/site/ch13/index.html+++ b/site/ch13/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Proportion</title>+<title>Proportion — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch14/index.html b/site/ch14/index.htmlindex 08842da..a061617 100644--- a/site/ch14/index.html+++ b/site/ch14/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Percent</title>+<title>Percent — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch15/index.html b/site/ch15/index.htmlindex ba86b68..8cbd341 100644--- a/site/ch15/index.html+++ b/site/ch15/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Percent Applications</title>+<title>Percent Applications — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch16/index.html b/site/ch16/index.htmlindex 2af596c..0312a66 100644--- a/site/ch16/index.html+++ b/site/ch16/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Simple Interest</title>+<title>Simple Interest — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch17/index.html b/site/ch17/index.htmlindex ede6c20..beb5385 100644--- a/site/ch17/index.html+++ b/site/ch17/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Percent Rate of Change</title>+<title>Percent Rate of Change — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch18/index.html b/site/ch18/index.htmlindex f0c27f3..875c828 100644--- a/site/ch18/index.html+++ b/site/ch18/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Tables and Ratios</title>+<title>Tables and Ratios — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch19/index.html b/site/ch19/index.htmlindex 9709a4a..51c80d4 100644--- a/site/ch19/index.html+++ b/site/ch19/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Exponents</title>+<title>Exponents — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch20/index.html b/site/ch20/index.htmlindex 02dcd23..7137cff 100644--- a/site/ch20/index.html+++ b/site/ch20/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Scientific Notation</title>+<title>Scientific Notation — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch21/index.html b/site/ch21/index.htmlindex c0180b5..be97c97 100644--- a/site/ch21/index.html+++ b/site/ch21/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Expressions</title>+<title>Expressions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch22/index.html b/site/ch22/index.htmlindex 1e9b765..0b00d32 100644--- a/site/ch22/index.html+++ b/site/ch22/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Evaluating Algebraic Expressions</title>+<title>Evaluating Algebraic Expressions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch23/index.html b/site/ch23/index.htmlindex 05cb7ef..8d646c2 100644--- a/site/ch23/index.html+++ b/site/ch23/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Combining Like Terms</title>+<title>Combining Like Terms — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch24/index.html b/site/ch24/index.htmlindex 5a33639..99dd98c 100644--- a/site/ch24/index.html+++ b/site/ch24/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Introduction to Equations</title>+<title>Introduction to Equations — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch25/index.html b/site/ch25/index.htmlindex ed5d1ad..401312c 100644--- a/site/ch25/index.html+++ b/site/ch25/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving One-Variable Equations</title>+<title>Solving One-Variable Equations — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch26/index.html b/site/ch26/index.htmlindex 6268132..a547058 100644--- a/site/ch26/index.html+++ b/site/ch26/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving One-Variable Inequalities</title>+<title>Solving One-Variable Inequalities — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch27/index.html b/site/ch27/index.htmlindex 0b39b3f..7431577 100644--- a/site/ch27/index.html+++ b/site/ch27/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Compound Inequalities</title>+<title>Solving Compound Inequalities — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch28/index.html b/site/ch28/index.htmlindex db4b44a..3406150 100644--- a/site/ch28/index.html+++ b/site/ch28/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Rewriting Formulas</title>+<title>Rewriting Formulas — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch29/index.html b/site/ch29/index.htmlindex d18f85c..e6d2a3e 100644--- a/site/ch29/index.html+++ b/site/ch29/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Systems by Substitution</title>+<title>Solving Systems by Substitution — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch30/index.html b/site/ch30/index.htmlindex 5069b9d..2758665 100644--- a/site/ch30/index.html+++ b/site/ch30/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Systems by Elimination</title>+<title>Solving Systems by Elimination — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch31/index.html b/site/ch31/index.htmlindex b677ebc..b82a982 100644--- a/site/ch31/index.html+++ b/site/ch31/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Points and Lines</title>+<title>Points and Lines — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch32/index.html b/site/ch32/index.htmlindex f13f918..12cdad8 100644--- a/site/ch32/index.html+++ b/site/ch32/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Graphing a Line From a Table</title>+<title>Graphing a Line From a Table — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch33/index.html b/site/ch33/index.htmlindex 1521662..d215cd0 100644--- a/site/ch33/index.html+++ b/site/ch33/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Slope</title>+<title>Slope — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch34/index.html b/site/ch34/index.htmlindex ef5badc..ff4306b 100644--- a/site/ch34/index.html+++ b/site/ch34/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Slope-Intercept Form</title>+<title>Slope-Intercept Form — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch35/index.html b/site/ch35/index.htmlindex 0650bd5..ee2e5d0 100644--- a/site/ch35/index.html+++ b/site/ch35/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Point-Slope Form</title>+<title>Point-Slope Form — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch36/index.html b/site/ch36/index.htmlindex 5a624db..5d1006e 100644--- a/site/ch36/index.html+++ b/site/ch36/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Systems by Graphing</title>+<title>Systems by Graphing — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch37/index.html b/site/ch37/index.htmlindex 920a67e..8091035 100644--- a/site/ch37/index.html+++ b/site/ch37/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Linear Inequalities</title>+<title>Linear Inequalities — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch38/index.html b/site/ch38/index.htmlindex e123e9e..792bdf2 100644--- a/site/ch38/index.html+++ b/site/ch38/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Systems of Inequalities</title>+<title>Systems of Inequalities — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch39/index.html b/site/ch39/index.htmlindex 0a7e647..13ff733 100644--- a/site/ch39/index.html+++ b/site/ch39/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Introduction to Statistics</title>+<title>Introduction to Statistics — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch40/index.html b/site/ch40/index.htmlindex f6345e8..961e284 100644--- a/site/ch40/index.html+++ b/site/ch40/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Measures of Central Tendency and Variation</title>+<title>Measures of Central Tendency and Variation — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch41/index.html b/site/ch41/index.htmlindex 1a8322f..408fef6 100644--- a/site/ch41/index.html+++ b/site/ch41/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Displaying Data</title>+<title>Displaying Data — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch42/index.html b/site/ch42/index.htmlindex 2b161d8..6c77c03 100644--- a/site/ch42/index.html+++ b/site/ch42/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Probability</title>+<title>Probability — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch43/index.html b/site/ch43/index.htmlindex 5347ea4..4aebde7 100644--- a/site/ch43/index.html+++ b/site/ch43/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Compound Events</title>+<title>Compound Events — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch44/index.html b/site/ch44/index.htmlindex bd13239..db078bb 100644--- a/site/ch44/index.html+++ b/site/ch44/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Permutations and Combinations</title>+<title>Permutations and Combinations — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch45/index.html b/site/ch45/index.htmlindex cfeb889..3030d29 100644--- a/site/ch45/index.html+++ b/site/ch45/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Relations and Functions</title>+<title>Relations and Functions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch46/index.html b/site/ch46/index.htmlindex 5e9ab8e..25788ed 100644--- a/site/ch46/index.html+++ b/site/ch46/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Function Notation</title>+<title>Function Notation — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch47/index.html b/site/ch47/index.htmlindex b5143ee..22818ab 100644--- a/site/ch47/index.html+++ b/site/ch47/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Application of Functions</title>+<title>Application of Functions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch48/index.html b/site/ch48/index.htmlindex c6ebb15..e4fd68f 100644--- a/site/ch48/index.html+++ b/site/ch48/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Adding and Subtracting Polynomials</title>+<title>Adding and Subtracting Polynomials — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch49/index.html b/site/ch49/index.htmlindex 623fee2..f08dd6a 100644--- a/site/ch49/index.html+++ b/site/ch49/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Powers</title>+<title>Multiplying and Dividing Powers — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch50/index.html b/site/ch50/index.htmlindex c7abcea..c50ef6c 100644--- a/site/ch50/index.html+++ b/site/ch50/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Monomials</title>+<title>Multiplying and Dividing Monomials — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch51/index.html b/site/ch51/index.htmlindex 9226857..9c81732 100644--- a/site/ch51/index.html+++ b/site/ch51/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Polynomials</title>+<title>Multiplying and Dividing Polynomials — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch52/index.html b/site/ch52/index.htmlindex 8b2ea48..578b94c 100644--- a/site/ch52/index.html+++ b/site/ch52/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Factoring Polynomials Using GCF</title>+<title>Factoring Polynomials Using GCF — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch53/index.html b/site/ch53/index.htmlindex c24f793..383e27b 100644--- a/site/ch53/index.html+++ b/site/ch53/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Factoring by Grouping</title>+<title>Factoring by Grouping — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch54/index.html b/site/ch54/index.htmlindex 71a90b0..1d8ad3b 100644--- a/site/ch54/index.html+++ b/site/ch54/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Factoring Trinomials When a = 1</title>+<title>Factoring Trinomials When a = 1 — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch55/index.html b/site/ch55/index.htmlindex adb2efe..cc2c3f4 100644--- a/site/ch55/index.html+++ b/site/ch55/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Factoring Trinomials When a ≠ 1</title>+<title>Factoring Trinomials When a ≠ 1 — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch56/index.html b/site/ch56/index.htmlindex 4e1c13f..5d97ffa 100644--- a/site/ch56/index.html+++ b/site/ch56/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Factoring Using Special Formulas</title>+<title>Factoring Using Special Formulas — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch57/index.html b/site/ch57/index.htmlindex b49ade3..ca3f331 100644--- a/site/ch57/index.html+++ b/site/ch57/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Square Roots and Cube Roots</title>+<title>Square Roots and Cube Roots — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch58/index.html b/site/ch58/index.htmlindex 6dd8e20..89d7096 100644--- a/site/ch58/index.html+++ b/site/ch58/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Simplifying Radicals</title>+<title>Simplifying Radicals — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch59/index.html b/site/ch59/index.htmlindex 43df9f9..3a282c3 100644--- a/site/ch59/index.html+++ b/site/ch59/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Adding and Subtracting Radicals</title>+<title>Adding and Subtracting Radicals — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch60/index.html b/site/ch60/index.htmlindex e154f2e..a0cbb11 100644--- a/site/ch60/index.html+++ b/site/ch60/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Multiplying and Dividing Radicals</title>+<title>Multiplying and Dividing Radicals — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch61/index.html b/site/ch61/index.htmlindex 8a9f990..f6cb850 100644--- a/site/ch61/index.html+++ b/site/ch61/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Introduction to Quadratic Equations</title>+<title>Introduction to Quadratic Equations — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch62/index.html b/site/ch62/index.htmlindex c9ecc89..cc41850 100644--- a/site/ch62/index.html+++ b/site/ch62/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Quadratic Equations by Factoring</title>+<title>Solving Quadratic Equations by Factoring — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch63/index.html b/site/ch63/index.htmlindex 10b68ac..c5925de 100644--- a/site/ch63/index.html+++ b/site/ch63/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Quadratic Equations by Taking Square Roots</title>+<title>Solving Quadratic Equations by Taking Square Roots — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch64/index.html b/site/ch64/index.htmlindex d14ce2a..5f971c2 100644--- a/site/ch64/index.html+++ b/site/ch64/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Quadratic Equations by Completing the Square</title>+<title>Solving Quadratic Equations by Completing the Square — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch65/index.html b/site/ch65/index.htmlindex 9eaaa8c..5e527a1 100644--- a/site/ch65/index.html+++ b/site/ch65/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>The Quadratic Formula</title>+<title>The Quadratic Formula — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch66/index.html b/site/ch66/index.htmlindex aecda31..d041354 100644--- a/site/ch66/index.html+++ b/site/ch66/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>The Discriminant and the Number of Solutions</title>+<title>The Discriminant and the Number of Solutions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch67/index.html b/site/ch67/index.htmlindex 63d0c13..4e4faad 100644--- a/site/ch67/index.html+++ b/site/ch67/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Graphing Quadratic Functions</title>+<title>Graphing Quadratic Functions — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/ch68/index.html b/site/ch68/index.htmlindex 06aad75..55c4cd4 100644--- a/site/ch68/index.html+++ b/site/ch68/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Solving Quadratic Equations by Graphing</title>+<title>Solving Quadratic Equations by Graphing — Elementary Algebra</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --></head>diff --git a/site/index.html b/site/index.htmlindex 2bc9aea..8ee02f9 100644--- a/site/index.html+++ b/site/index.html@@ -54,6 +54,9 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.inspiration { max-width: 48em; margin: 22px 0 0; color: var(--dim); font-size: 14px; line-height: 1.6; text-wrap: balance; }+.inspiration a { text-decoration-color: var(--faint); text-underline-offset: 3px; }+.inspiration a:hover { color: var(--chalk); text-decoration-color: currentColor; }/* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;@@ -186,21 +189,47 @@ main#contents { padding-bottom: 80px; }<body class="shelved"><main id="shelf" aria-labelledby="shelf-title"><header class="shelf-top">- <a class="shelf-brand" href="#" aria-label="AnimeBook bookshelf"><span class="brand-mark" aria-hidden="true">∞</span>AnimeBook<span class="brand-dot" aria-hidden="true"></span></a>- <span class="shelf-top-note">A little library, brought to life.</span>+ <h1 id="shelf-title"><a class="shelf-brand" href="#"><span aria-hidden="true">∞</span> AnimeBook</a></h1>+ <p>Animated books · A growing collection</p></header>- <section class="shelf-intro">- <p class="shelf-eyebrow"><span aria-hidden="true"></span>The animated bookshelf</p>- <h1 id="shelf-title">Good books.<br><em>In motion.</em></h1>- <p>Ideas you can see, stories you can step into.<br>Pick a book. Let it come to life.</p>- <svg class="intro-doodle" viewBox="0 0 180 130" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M25 86Q45 67 83 83V28Q48 10 25 26Z M83 83Q118 66 151 85V27Q118 9 83 28 M83 83V103 M18 100Q45 88 77 101 M90 101Q123 87 158 103"/><path class="doodle-line" pathLength="1" d="M37 39Q51 32 68 38 M37 51Q51 44 68 50 M98 37Q115 31 136 38 M99 50Q117 43 136 51"/><path d="M160 10V20 M155 15H165 M11 48V56 M7 52H15"/></g></svg>- </section>- <section class="shelf-collection" aria-labelledby="collection-title">- <div class="collection-heading"><h2 id="collection-title">On the shelf</h2><span id="shelf-count"></span></div>- <div id="shelf-books"></div>- <noscript><p>Open <a href="ch01/">Chapter 1: Types of numbers</a>. JavaScript enables the bookshelf and interactive lessons.</p></noscript>- </section>- <footer class="shelf-footer"><span>Made to be watched. Built to be explored.</span><span>One book at a time.<span class="footer-star" aria-hidden="true">✳</span></span></footer>+ <figure class="photo-shelf" aria-label="Three shelves: STEM, picture books for children, and curious books">+ <img class="shelf-photo" src="assets/bookshelf.png" width="1086" height="1448" alt="A wooden bookshelf. Math and physics books on the top shelf, illustrated children's stories on the middle shelf, and philosophy and history books on the bottom shelf. The lower two shelves are marked Coming Soon, and a GitHub emblem is on the drawer." fetchpriority="high">+ <div id="shelf-books">+ <section class="shelf-tier" aria-labelledby="stem-title">+ <h2 class="visually-hidden" id="stem-title">STEM · Mathematics</h2>+ <a class="book-hotspot algebra-book" data-book="pre-algebra" href="#book" aria-label="Open Elementary Algebra, 68 narrated chapters">+ <span class="book-caption"><strong>Elementary Algebra <span aria-hidden="true">↗</span></strong><small>68 narrated chapters</small></span>+ </a>+ <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 3 narrated chapters">+ <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>3 narrated chapters</small></span>+ </a>+ <span class="physics-pending">Physics · Coming soon</span>+ </section>+ <section class="shelf-tier" aria-labelledby="picture-title">+ <h2 class="visually-hidden" id="picture-title">Picture books for children · Coming soon</h2>+ </section>+ <section class="shelf-tier" aria-labelledby="curious-title">+ <h2 class="visually-hidden" id="curious-title">Curious books · Coming soon</h2>+ </section>+ </div>+ <div class="github-drawer" aria-label="GitHub repository and Skills: coming soon">+ <span class="github-status">Repository & Skills · Coming soon</span>+ </div>+ <noscript><p class="shelf-noscript">Book links work without JavaScript. The animated lessons require JavaScript.</p></noscript>+ </figure>+ <footer class="shelf-footer">+ <span>Made one book at a time.</span>+ <button type="button" id="shelf-about-button">About & disclaimer</button>+ <span>Independent · Noncommercial</span>+ </footer>+ <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>+ <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>+ </dialog></main><section id="cover"><div class="chalk" aria-hidden="true">@@ -214,19 +243,20 @@ main#contents { padding-bottom: 80px; }</div><svg class="mascot draw" id="guide" width="210" height="147"></svg><p class="kicker">An animated workbook</p>- <h1>Pre-Algebra <i>&</i> Algebra</h1>+ <h1>Elementary <i>Algebra</i></h1><p class="lede">Lessons drawn and narrated step by step, quick checks inside the picture, and practice at the end of every chapter.</p><div class="acts"><a class="btn go" href="#contents">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a><a class="btn quiet" id="resume" hidden></a></div><p class="meta" id="meta"></p>+ <p class="inspiration">Inspired by <a href="https://www.hachettebookgroup.com/titles/workman-publishing/everything-you-need-to-ace-pre-algebra-and-algebra-1-in-one-big-fat-notebook/9781523504381/?lens=workman-publishing-company" target="_blank" rel="noopener noreferrer"><i>Everything You Need to Ace Pre-Algebra and Algebra 1 in One Big Fat Notebook</i></a>.</p><a class="back-shelf cover-back" href="#">← Back to the bookshelf</a></section><main id="contents"><header class="top">- <a class="home" href="#book" aria-label="Back to the cover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Pre-Algebra <i>&</i> Algebra</strong></a>+ <a class="home" href="#book" aria-label="Back to the cover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Algebra</i></strong></a><span class="prog" id="prog"></span><a class="back-shelf contents-back" href="#">← Bookshelf</a></header>@@ -260,7 +290,7 @@ const UNITS = [const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];const id = n => 'ch' + String(n).padStart(2, '0');let P = {};-try { P = JSON.parse(localStorage.getItem('progress') || '{}'); } catch {}+try { P = JSON.parse(localStorage.getItem('progress') || '{}') || {}; } catch {}const done = new Set(P.done || []);// Contents.@@ -315,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' : 'Pre-Algebra and Algebra, Animated';+ document.title = shelf ? 'AnimeBook — The animated bookshelf' : 'Elementary Algebra — AnimeBook';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.css b/site/lib/bookshelf.cssindex 5bef791..e3bb4c0 100644--- a/site/lib/bookshelf.css+++ b/site/lib/bookshelf.css@@ -1,99 +1,46 @@-/* The bookshelf lives beside the existing book, using the same chalk palette. */+/* The photographed bookshelf belongs to this website, not the book-making Skill. */body.shelved #cover, body:not(.shelved) #shelf { display: none; }-#shelf { max-width: 1200px; padding: 0 48px; margin: 0 auto; }-.shelf-top { display: flex; justify-content: space-between; align-items: center; min-height: 98px; border-bottom: 1px solid #ece8dc24; gap: 20px; }-.shelf-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.6px; }-.brand-mark { font: 36px/.8 var(--book); color: var(--task); }-.brand-dot { width: 5px; height: 5px; background: var(--task); border-radius: 50%; align-self: flex-end; margin-bottom: 7px; margin-left: -4px; }-.shelf-top-note { font: italic 16px var(--book); color: var(--dim); }-.shelf-intro { padding: 65px 0 47px; position: relative; }-.shelf-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .19em; font-weight: 600; margin: 0 0 21px; }-.shelf-eyebrow span { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px #8fd6b035; }-#shelf-title { font: 400 clamp(52px, 6.4vw, 80px)/1.02 var(--book); letter-spacing: -.045em; margin: 0 0 23px; view-transition-name: none; }-#shelf-title em { color: var(--task); font-weight: 400; }-.shelf-intro > p:last-of-type { color: var(--dim); font-size: 17px; line-height: 1.65; margin: 0; }-.intro-doodle { position: absolute; width: 170px; right: 48px; top: 96px; color: var(--chalk); opacity: .3; rotate: -8deg; }-.doodle-line { stroke-dasharray: 1; animation: shelf-ink 1.6s ease-out .3s backwards; }-.collection-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid #ece8dc24; padding-bottom: 15px; }-.collection-heading h2 { margin: 0; font: 400 24px/1.2 var(--book); }-#shelf-count { font-size: 12px; color: var(--dim); }-.shelf-book { display: grid; grid-template-columns: 43% 1fr; gap: 56px; padding: 51px 0 56px; align-items: center; }-.shelf-book + .shelf-book { border-top: 1px solid #ece8dc24; }-.book-display { position: relative; display: flex; justify-content: center; padding: 10px 20px 31px; perspective: 1100px; }-.book-object { display: block; position: relative; width: 255px; height: 336px; flex-shrink: 0; text-decoration: none; transform-style: preserve-3d; transform: rotateY(-14deg) rotateZ(-3deg); transition: transform .55s var(--ease); }-.book-object:hover, .book-object:focus-visible { transform: rotateY(-24deg) rotateZ(-1deg) translateY(-7px); }-.book-object:focus-visible { outline-offset: 12px; }-.book-front { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 28px 25px 22px; border: 1px solid #8bb39770; border-left: 11px solid #244333; border-radius: 3px 7px 7px 3px; background: linear-gradient(100deg, #1c3329, #345644 50%, #2e4c3c); box-shadow: inset 3px 0 4px #0c241c70, inset -1px 0 2px #92b49330, 17px 20px 24px #09171060; transform: translateZ(12px); overflow: hidden; }-.book-front::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, #ffffe510 48%, transparent 60%); }-.book-pages { position: absolute; left: 8px; top: 3px; width: 100%; height: calc(100% - 6px); background: repeating-linear-gradient(0deg, #d0c9b4 0 1px, #e9e2ce 1px 3px); border-radius: 3px 8px 8px 3px; transform: translateZ(-9px); box-shadow: 14px 18px 25px #08110e70; }-.book-pages::after { content: ''; position: absolute; width: 20px; height: 100%; right: -1px; transform-origin: right center; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #cbc4ad 0 1px, #eee8d4 1px 3px); }-.book-series { color: #c6d7c7; font-size: 8px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }-.book-cover-title { display: flex; flex-direction: column; margin-top: 22px; font: 400 31px/1.17 var(--book); letter-spacing: -.8px; color: #eeeade; }-.book-cover-title i { color: #f2c078; }-.book-picture { margin: 15px -11px 0; flex: 1; display: flex; align-items: center; }-.book-art { width: 100%; height: auto; overflow: visible; }-.book-curve { stroke-dasharray: 1; animation: shelf-ink 2s var(--ease) .5s backwards; }-.curve-point { animation: shelf-point 5s ease-in-out 2.5s infinite; }-.book-cover-bottom { font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: #c6d7c7; padding-top: 8px; border-top: 1px solid #c6d7c74a; }-.shelf-plank { position: absolute; bottom: 14px; left: 0; right: 0; height: 10px; background: linear-gradient(#536052, #303e33); border-radius: 3px; border-top: 1px solid #9ea8925e; box-shadow: 0 16px 24px #07100c55; }-.shelf-plank::before { content: ''; position: absolute; bottom: 10px; left: 6%; right: 6%; height: 28px; background: radial-gradient(ellipse, #07100c6e, transparent 70%); }-.book-category { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--good); }-.category-mark { border: 1px solid #8fd6b040; width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; letter-spacing: 0; border-radius: 50%; }-.book-info h3 { margin: 0 0 14px; font: 400 clamp(29px, 3vw, 38px)/1.15 var(--book); letter-spacing: -.02em; text-wrap: balance; }-.book-title-link { text-decoration: none; }-.book-title-link:hover { color: var(--task); }-.book-description { color: var(--dim); font-size: 16px; line-height: 1.65; max-width: 28em; margin: 0 0 15px; }-.book-facts { color: #c0c9bb; font-size: 11px; margin: 0 0 23px; }-.book-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 6px; font-size: 13px; color: var(--chalk); }-.feature-tick { display: inline-block; color: var(--task); margin-right: 12px; }-.book-actions { display: flex; flex-wrap: wrap; gap: 15px 20px; align-items: center; }-.shelf-open { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid #ece8dc66; color: var(--chalk); font: 500 18px/1.3 var(--book); text-decoration: none; transition: color .25s, border-color .25s; }-.shelf-open:hover { color: var(--task); border-color: var(--task); }-.shelf-open span { font: 400 20px var(--ui); transition: transform .25s var(--ease); }-.shelf-open:hover span { transform: translateX(4px); }-.shelf-continue { font-size: 12px; color: var(--good); text-decoration: none; }-.shelf-continue:hover { text-decoration: underline; }-.shelf-progress { font-size: 11px; color: var(--dim); margin: -10px 0 16px; }-.shelf-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 27px; border-top: 1px solid #ece8dc24; color: var(--dim); font-size: 11px; }-.footer-star { display: inline-block; color: var(--task); margin-left: 12px; }+body.shelved { background: #c4a47e; }+body.shelved::before { display: none; }+#shelf { position: relative; width: 100%; min-height: 100dvh; margin: 0; color: #443526; }+.shelf-top { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; height: 3%; padding: 0 2.6%; }+#shelf-title { margin: 0; font: 600 clamp(14px, 1.35vw, 25px)/1 var(--ui); letter-spacing: -.4px; view-transition-name: none; }+.shelf-brand { text-decoration: none; }+.shelf-brand { display: inline-flex; align-items: center; gap: 6px; color: #352b20; text-shadow: 0 1px #ecd3a54a; }+.shelf-brand > span { font: clamp(21px, 2vw, 36px)/.7 var(--book); color: #3c3021; }+.shelf-top p { margin: 0; color: #493b2d; font: 500 clamp(10px, .9vw, 15px) var(--ui); text-shadow: 0 1px #ecd3a54a; }+.photo-shelf { position: relative; width: 100%; aspect-ratio: 3 / 4; container-type: inline-size; margin: 0; }+.shelf-photo { display: block; width: 100%; height: auto; }+.shelf-tier { display: contents; }+.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }+.book-hotspot { position: absolute; display: block; top: 4.9%; height: 23.3%; text-decoration: none; border-radius: 2px; outline-offset: 4px; }+.algebra-book { left: 10.1%; width: 26.1%; }+.math-book { left: 39.9%; width: 24.5%; }+.book-hotspot:hover { box-shadow: 0 0 0 2px #f7d998b3, 0 0 28px #edc97833; }+#shelf a:focus-visible { outline: 3px solid #f4d786; outline-offset: 5px; }+.book-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; justify-content: center; gap: .35cqw; min-height: 6.45cqw; padding: 1.1cqw 1.2cqw .9cqw; color: #faf7e9; background: linear-gradient(110deg, #263d32f5, #182a23f0); box-shadow: 0 -2px 8px #0003; font: 1.4cqw/1.25 var(--ui); transition: background .2s; }+.math-book .book-caption { background: linear-gradient(110deg, #704732f7, #503721f0); }+.book-caption strong { font-weight: 600; padding-right: 1.5cqw; }+.book-caption strong > span { position: absolute; right: 1.2cqw; top: 1.1cqw; color: #e8c68b; }+.book-caption small { color: #e2dbca; font-size: 1.03cqw; letter-spacing: .03em; }+.resume-label { position: absolute; padding: .46cqw .74cqw; background: #fcf4df; color: #3c4336; box-shadow: 1px 2px 5px #0003; font: 1.03cqw var(--ui); transform: rotate(-3deg); }+.physics-pending { position: absolute; left: 71.4%; top: 25.6%; padding: .46cqw .92cqw; border: 1px solid #edcf73; background: #f1d174; color: #302b1f; font: 1.1cqw var(--ui); transform: rotate(-2deg); box-shadow: 1px 2px 4px #0003; }+.github-drawer { position: absolute; left: 28%; top: 87.5%; width: 47%; height: 11%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .46cqw; }+.github-status { padding: .46cqw 1.1cqw; border: 1px solid #664a294a; background: #f0d5a9c9; color: #43331f; font: 1.1cqw var(--ui); border-radius: 2px; }+.shelf-noscript { position: absolute; bottom: 0; left: 24px; margin: 0; font: 11px var(--ui); color: #352c21; }+.shelf-footer { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; gap: 3%; height: 3%; padding: 0 3%; color: #594129; font: 500 clamp(10px, .85vw, 14px)/1.4 var(--ui); text-shadow: 0 1px #ffe6bd66; }+.shelf-footer button { padding: 2px 0; border: 0; border-bottom: 1px solid #59412966; background: transparent; color: inherit; font: inherit; cursor: pointer; text-shadow: inherit; }+.shelf-footer button:hover { color: #2d2116; border-bottom-color: currentColor; }+.shelf-footer button:focus-visible { outline: 2px solid #594129; outline-offset: 5px; }+.shelf-about { max-width: 580px; padding: 38px 42px; border: 1px solid #a08760; border-radius: 3px; background: #f6efdf; color: #403527; box-shadow: 0 20px 80px #291b1455; }+.shelf-about::backdrop { background: #20180fc4; backdrop-filter: blur(4px); }+.shelf-about h2 { margin: 12px 0 20px; font: 400 32px var(--book); }+.shelf-about p { font: 15px/1.7 var(--ui); }+.shelf-about .about-kicker { margin: 0; color: #826545; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }+.about-close { position: absolute; right: 16px; top: 12px; padding: 0 7px; background: transparent; border: 0; color: #675542; font: 26px var(--ui); cursor: pointer; }+/* These controls belong to the existing book cover and contents. */.back-shelf { color: var(--dim); font: 13px var(--ui); text-decoration: none; white-space: nowrap; }.back-shelf:hover { color: var(--chalk); }.cover-back { position: absolute; top: 24px; left: 24px; }.contents-back { margin-left: 16px; }-@keyframes shelf-ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }-@keyframes shelf-point { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(19px, 9px); } }-@media (max-width: 850px) {- #shelf { padding: 0 28px; }- .shelf-book { gap: 32px; grid-template-columns: 42% 1fr; }- .book-object { width: 224px; height: 302px; }- .book-front { padding: 24px 20px 20px; }- .book-cover-title { font-size: 27px; }- .intro-doodle { right: 8px; }-}-@media (max-width: 600px) {- #shelf { padding: 0 22px; }- .shelf-top { min-height: 74px; }- .shelf-top-note { display: none; }- .shelf-intro { padding: 43px 0 36px; }- #shelf-title { font-size: 59px; }- .shelf-intro > p:last-of-type { font-size: 15px; }- .intro-doodle { width: 104px; top: 101px; right: -8px; opacity: .16; }- .collection-heading h2 { font-size: 21px; }- #shelf-count { font-size: 10px; }- .shelf-book { display: flex; flex-direction: column; gap: 30px; padding: 37px 0 40px; align-items: stretch; }- .book-display { max-width: 350px; width: 100%; margin: 0 auto; }- .book-object { width: 224px; height: 302px; }- .book-info h3 { font-size: 31px; }- .book-description { font-size: 15px; }- .book-facts { font-size: 11px; }- .book-features { margin-bottom: 22px; }- .shelf-footer { flex-direction: column; gap: 9px; font-size: 10px; }- .contents-back { margin-left: 0; font-size: 11px; }- #contents .top { flex-wrap: wrap; gap: 8px 12px; }- #contents .prog { font-size: 12px; }-}-@media (prefers-reduced-motion: reduce) {- .book-object { transition: none; }- .book-object:hover, .book-object:focus-visible { transform: rotateY(-14deg) rotateZ(-3deg); }- .book-curve, .doodle-line, .curve-point { animation: none; }-}+@media (prefers-reduced-motion: reduce) { .book-caption { transition: none; } }diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.jsindex 5b5ed5b..4c00823 100644--- a/site/lib/bookshelf.js+++ b/site/lib/bookshelf.js@@ -1,116 +1,40 @@-/* The public bookshelf. Add real, published books here; no build step required.- * This first book shares index.html with its contents, so its counts and saved- * place come from the rendered chapter cards, never a second chapter list.- * A book in its own folder (site/<slug>/) gives href '<slug>/' and its counts- * (chapters, units) instead of contents.+/* Website-only book navigation. The picture and hotspot positions live in index.html/bookshelf.css.+ * Set githubURL when the public repository is ready; keep it null until then.*/'use strict';(() => {- const books = [{- id: 'pre-algebra', title: 'Pre-Algebra & Algebra', subject: 'Mathematics',- href: '#book', coverTitle: ['Pre-Algebra', '& Algebra'], series: 'An animated workbook',- description: 'From the first number line to the shape of an equation. See the math unfold, one idea at a time.',- contents: '#units',- }, {- id: 'math-notebook', title: 'Ace Math & the Big Fat Notebook', subject: 'Mathematics',- href: 'math-notebook/', coverTitle: ['Ace Math', '& the Big Fat Notebook'], series: 'An animated workbook',- description: 'Explore middle-school math as numbers find their families, cross zero, and reveal their distance along the number line.',- chapters: 3, units: 1,- features: ['3 narrated chapters available', 'Sort numbers and explore the number line', 'Quick checks and chapter practice'],- artwork: `<svg viewBox="0 0 260 175" class="book-art" style="height:90px" aria-hidden="true">- <g fill="none" stroke-width="2" stroke-linecap="round">- <ellipse cx="130" cy="66" rx="96" ry="48" stroke="#bba8ee"/>- <ellipse cx="107" cy="66" rx="68" ry="37" stroke="#e8a0c8"/>- <ellipse cx="91" cy="66" rx="46" ry="27" stroke="#f3c95c"/>- <ellipse cx="80" cy="66" rx="29" ry="17" stroke="#86c9e8"/>- <ellipse cx="73" cy="66" rx="16" ry="9" stroke="#f4a48c"/>- <path d="M27 141H233 M31 137L27 141L31 145 M229 137L233 141L229 145" stroke="#a8c6ba"/>- <path d="M62 136V146 M96 136V146 M130 133V149 M164 136V146 M198 136V146" stroke="#a8c6ba"/>- <path d="M62 125V120H198V125" stroke="#f0b45a"/>- </g>- <circle cx="62" cy="141" r="4" fill="#f4a48c"/>- <circle cx="198" cy="141" r="4" fill="#86c9e8"/>- <g fill="#d3ded5" font-family="Georgia,serif" font-size="13" text-anchor="middle">- <text x="62" y="164">−2</text><text x="130" y="164">0</text><text x="198" y="164">2</text>- </g>- </svg>`,- }];- const el = (tag, cls, text) => {- const node = document.createElement(tag);- if (cls) node.className = cls;- if (text != null) node.textContent = text;- return node;- };- const link = (cls, text, href) => {- const a = el('a', cls, text);- a.href = href;- return a;- };- // Original SVG cover artwork: a graph draws itself as a point traces the curve.- const artwork = `<svg viewBox="0 0 260 175" class="book-art" aria-hidden="true">- <g fill="none" stroke-linecap="round" stroke-linejoin="round">- <path d="M25 140H238 M52 158V20" stroke="#a8c6ba" stroke-width="1" opacity=".45"/>- <path d="M49 80H55 M49 110H55 M105 137V143 M158 137V143 M211 137V143" stroke="#a8c6ba" opacity=".5"/>- <path d="M52 132C88 131 92 51 128 53S185 137 231 32" stroke="#f2c078" stroke-width="3" class="book-curve" pathLength="1"/>- <circle cx="128" cy="53" r="5" fill="#f2c078" stroke="#f2c078" class="curve-point"/>- <path d="M89 81C63 28 178 31 167 80S59 128 89 81C117 39 179 36 182 77S114 123 89 81Z" stroke="#e9eee2" stroke-width="2" opacity=".07"/>- </g>- <text x="180" y="155" fill="#d3ded5" opacity=".6" font-size="17" font-family="Georgia,serif" font-style="italic">f(x)</text>- <text x="24" y="26" fill="#e9eee2" opacity=".6" font-size="22" font-family="Georgia,serif">∞</text>- </svg>`;- const container = document.getElementById('shelf-books');- for (const [index, book] of books.entries()) {- const contents = book.contents && document.querySelector(book.contents);- const chapters = contents ? contents.querySelectorAll('.ch') : { length: book.chapters };- const units = contents ? contents.querySelectorAll('.unit').length : book.units;- const last = contents?.querySelector('.ch.last');- const finished = contents ? contents.querySelectorAll('.ch.done').length : 0;- const row = el('article', 'shelf-book');- row.style.setProperty('--book-index', index);- const display = el('div', 'book-display');- const cover = link('book-object', '', book.href);- cover.setAttribute('aria-label', `Open ${book.title}: ${chapters.length} chapters`);- const pages = el('span', 'book-pages');- pages.setAttribute('aria-hidden', 'true');- cover.append(pages);- const front = el('span', 'book-front');- front.append(el('span', 'book-series', book.series));- const title = el('span', 'book-cover-title');- title.append(el('span', '', book.coverTitle[0]), el('i', '', book.coverTitle[1]));- front.append(title);- const picture = el('span', 'book-picture');- picture.innerHTML = book.artwork || artwork; // each book may bring its own small SVG cover picture- front.append(picture, el('span', 'book-cover-bottom', 'Watch · Explore · Try'));- cover.append(front);- display.append(cover, el('span', 'shelf-plank'));- const info = el('div', 'book-info');- const category = el('p', 'book-category', book.subject);- category.prepend(el('span', 'category-mark', String(index + 1).padStart(2, '0')));- const heading = el('h3', '');- heading.append(link('book-title-link', book.title, book.href));- info.append(category, heading, el('p', 'book-description', book.description));- const facts = el('p', 'book-facts', `${chapters.length} chapters · ${units} units · Narrated lessons`);- info.append(facts);- const features = el('ul', 'book-features');- for (const text of book.features || ['Ideas drawn step by step', 'Quick checks inside the animation', 'Practice you can play with']) {- const li = el('li', '', text);- li.prepend(el('span', 'feature-tick', '↗'));- features.append(li);- }- info.append(features);- const actions = el('div', 'book-actions');- const open = link('shelf-open', 'Explore this book', book.href);- open.append(el('span', '', '→'));- actions.append(open);- if (last) {- const chapter = last.querySelector('b').textContent;- actions.append(link('shelf-continue', `Continue chapter ${chapter} →`, last.getAttribute('href')));- const status = el('p', 'shelf-progress', `${finished} of ${chapters.length} chapters finished`);- info.append(status);- }- info.append(actions);- row.append(display, info);- container.append(row);+ const githubURL = null;+ const about = document.getElementById('shelf-about');+ document.getElementById('shelf-about-button').addEventListener('click', () => about.showModal());+ const books = [+ { id: 'pre-algebra', key: 'progress', chapterBase: '', chapters: 68 },+ { id: 'math-notebook', key: 'animebook:progress:' + new URL('math-notebook/', location.href).pathname,+ chapterBase: 'math-notebook/', chapters: 3 },+ ];+ for (const book of books) {+ const cover = document.querySelector(`[data-book="${book.id}"]`);+ if (!cover) continue;+ let saved;+ try { saved = JSON.parse(localStorage.getItem(book.key) || '{}'); } catch { continue; }+ if (!saved || !Number.isInteger(saved.last) || saved.last < 1 || saved.last > book.chapters) continue;+ const resume = document.createElement('a');+ resume.className = 'resume-label';+ resume.textContent = `Continue · Chapter ${saved.last} →`;+ resume.href = `${book.chapterBase}ch${String(saved.last).padStart(2, '0')}/`;+ resume.style.left = cover.classList.contains('algebra-book') ? '11%' : '40.8%';+ resume.style.top = '5.7%';+ document.getElementById('shelf-books').append(resume);+ }+ if (githubURL) {+ const drawer = document.querySelector('.github-drawer');+ const link = document.createElement('a');+ link.className = drawer.className;+ link.href = githubURL;+ link.setAttribute('aria-label', 'AnimeBook on GitHub: source and Skills');+ const label = document.createElement('span');+ label.className = 'github-status';+ label.textContent = 'Source & Skills ↗';+ link.append(label);+ drawer.replaceWith(link);}- document.getElementById('shelf-count').textContent = `${books.length} ${books.length === 1 ? 'book' : 'books'} · A growing collection`;})();diff --git a/site/math-notebook/ch01/index.html b/site/math-notebook/ch01/index.htmlindex 2aa0ab3..df496ff 100644--- a/site/math-notebook/ch01/index.html+++ b/site/math-notebook/ch01/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Types of Numbers and the Number Line</title>+<title>Types of Numbers and the Number Line — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --><style>diff --git a/site/math-notebook/ch02/index.html b/site/math-notebook/ch02/index.htmlindex b69a913..308e815 100644--- a/site/math-notebook/ch02/index.html+++ b/site/math-notebook/ch02/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Positive and Negative Numbers</title>+<title>Positive and Negative Numbers — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --><style>diff --git a/site/math-notebook/ch03/index.html b/site/math-notebook/ch03/index.htmlindex 9dfb33b..fbe726b 100644--- a/site/math-notebook/ch03/index.html+++ b/site/math-notebook/ch03/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Absolute Value</title>+<title>Absolute Value — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run --><style>diff --git a/site/math-notebook/index.html b/site/math-notebook/index.htmlindex 900dd25..0420f8d 100644--- a/site/math-notebook/index.html+++ b/site/math-notebook/index.html@@ -3,8 +3,8 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>Ace Math — an animated notebook</title>-<meta name="description" content="ONE SENTENCE ABOUT THE BOOK.">+<title>Elementary Mathematics — AnimeBook</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><link rel="expect" href="#ch01" blocking="render">@@ -52,6 +52,9 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.inspiration { max-width: 48em; margin: 22px 0 0; color: var(--dim); font-size: 14px; line-height: 1.6; text-wrap: balance; }+.inspiration a { text-decoration-color: var(--faint); text-underline-offset: 3px; }+.inspiration a:hover { color: var(--chalk); text-decoration-color: currentColor; }/* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;@@ -198,19 +201,20 @@ main#contents { padding-bottom: 80px; }</div><svg class="mascot draw" id="guide" width="210" height="147"></svg><p class="kicker">An animated book</p>- <h1>Ace Math <i>&</i> the Big Fat Notebook</h1>+ <h1>Elementary <i>Mathematics</i></h1><p class="lede">Middle-school math you can watch and try: numbers sort themselves into families, slide along the number line, and wait for you to place the next one.</p><div class="acts"><a class="btn go" href="#contents">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a><a class="btn quiet" id="resume" hidden></a></div><p class="meta" id="meta"></p>+ <p class="inspiration">Inspired by <a href="https://www.hachettebookgroup.com/titles/workman-publishing/everything-you-need-to-ace-math-in-one-big-fat-notebook/9780761160960/?lens=workman-publishing-company" target="_blank" rel="noopener noreferrer"><i>Everything You Need to Ace Math in One Big Fat Notebook</i></a>.</p><a class="back-shelf cover-back" href="../">← Back to the bookshelf</a></section><main id="contents"><header class="top">- <a class="home" href="#book" aria-label="Back to the cover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Ace Math <i>&</i> the Big Fat Notebook</strong></a>+ <a class="home" href="#book" aria-label="Back to the cover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Mathematics</i></strong></a><span class="prog" id="prog"></span><a class="back-shelf contents-back" href="../">← Bookshelf</a></header>