Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

fix(site): the review's content fixes in the textbooks and films

yzr7060bac3edd1
diff --git a/site/elementary-algebra/ch01/index.html b/site/elementary-algebra/ch01/index.html
index e20c203..195cdf1 100644
--- a/site/elementary-algebra/ch01/index.html
+++ b/site/elementary-algebra/ch01/index.html
@@ -221,7 +221,7 @@ const BEATS = [
for (const e of [S.axR, S.axL, S.arR, S.arL]) tw(e, { c_stroke: COL.real, 'a_stroke-width': 4 }, m('fill', .4), 1.2);
row(5, m('def'));
}],
- ['q4', 'Quick check', () => { hide(S.panel, 0, .4); }, { ask: done => quiz(TOPR, [{
+ ['q4', 'Quick check', () => { hide(S.panel, 0, .4); hide(S.list, 0, .4); }, { ask: done => quiz({ x: 40, y: 30, w: 760, cls: 'side', maxH: 840 }, [{ // tall for five rows and their answers; on the left, where the list was, so the effects on the positive half stay in view
id: 'c-ratirr', prompt: ['Is each number rational or irrational?'],
build: grid([
{ parts: ['0.25'], ans: ['rat'], why: ['0.25 = ', $m(F(1, 4)), ', a fraction of integers.'], fx: () => popDotFx('rat', .25) },
@@ -324,7 +324,7 @@ const BEATS = [
hide(S.panel, 0, .4);
[...S.chips, ...S.samples].forEach(e => hide(e, 0, .4));
}, { ask: done => quiz(SORT_SCREEN, [{ id: 'p-sort', prompt: ['Drag each number into its smallest ring. Simplify first.'],
- build: sorter(SORT, i => [1362 + (i % 2) * 128, 250 + Math.floor(i / 2) * 100]) }], done, 'Chapter practice 1 of 3') }],
+ build: sorter(SORT, i => [1362 + (i % 2) * 128, 290 + Math.floor(i / 2) * 90]) }], done, 'Chapter practice 1 of 3') }],
['final2', 'Chapter practice', () => { tw(S.venn, { o: 0 }, 0, .6); }, { ask: done => quiz(SCREEN, [{
id: 'p-fam', prompt: ['Choose every family each number belongs to.'], build: grid(FAMQ, FAM_COLS) }], done, 'Chapter practice 2 of 3') }],
['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
diff --git a/site/elementary-algebra/ch02/index.html b/site/elementary-algebra/ch02/index.html
index dfb3910..a71d7a5 100644
--- a/site/elementary-algebra/ch02/index.html
+++ b/site/elementary-algebra/ch02/index.html
@@ -150,7 +150,7 @@ const BEATS = [
show(M(p, [F(1, 4)], { x: 200 + d2.w + 4, y: 640, size: 52, fill: COL.bad, anchor: 'start', o: 0 }), m('d2b'));
show(T(p, 'Commutative works only for + and ×.', { x: 200, y: 780, size: 30, fill: PC, weight: 600, o: 0 }), m('rule'));
}],
- ['q1', 'Quick check', () => {}, { ask: done => quiz(TOPR, [{
+ ['q1', 'Quick check', () => {}, { ask: done => quiz({ ...TOPR, maxH: 810 }, [{ // tall enough for four rows and their answers
id: 'c-order', prompt: ['True or false? Each statement swaps the order.'],
build: grid([
{ parts: [$m('4 + 9 = 9 + 4')], ans: ['t'], why: 'Addition is commutative, so the order does not matter.' },
diff --git a/site/elementary-algebra/ch06/index.html b/site/elementary-algebra/ch06/index.html
index 5693bcf..2c70150 100644
--- a/site/elementary-algebra/ch06/index.html
+++ b/site/elementary-algebra/ch06/index.html
@@ -21,6 +21,13 @@ const showAll = (els, t0, step = 0) => els.forEach((e, i) => show(e, t0 + i * st
const row = (p, items, y = 230, size = 64, x = 800) => tokens(p, items, { x, y, size, anchor: 'middle', o: 0 });
const caption = (p, str, t0, y = 150, fill = COL.dim, size = 30, x = 800) => show(T(p, str, { x, y, size, fill, weight: 600, anchor: 'middle', o: 0 }), t0);
const line = (p, str, x, y, t0, fill = COL.chalk, size = 44, anchor = 'start') => { const e = M(p, [str], { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+// A side card's grid keeps its labels in 170 px; '7 × (−2) × (−2)' needs about 210.
+const wideLabels = build => (body, api) => {
+ const q = build(body, api);
+ body.querySelectorAll('.grid .row').forEach(r => { r.style.gridTemplateColumns = '230px minmax(0, 1fr) 34px'; });
+ body.querySelectorAll('.grid .why').forEach(w => { w.style.paddingLeft = '246px'; });
+ return q;
+};
// A big arrow that a negative sign flips around. Pointing right = positive, left = negative.
function signArrow(p, x, y, len = 220) {
const g = G(p, { x, y, o: 0 }), inner = G(g);
@@ -105,14 +112,14 @@ const BEATS = [
const p = panel(0);
S.qa = signArrow(p, 440, 420, 300);
show(S.qa, .2);
- }, { ask: done => quiz(TOPR, [{
+ }, { ask: done => quiz({ ...TOPR, x: 880, w: 704, maxH: 810 }, [{ // wide and tall: long products, four rows and their answers
id: 'c-sign', prompt: ['Is each product positive or negative?'],
- build: grid([
+ build: wideLabels(grid([
{ parts: ['(−4) × 6'], ans: ['n'], why: 'One negative sign: negative.', fx: () => fx(S.qa.inner, { r: 180 }, 0, .5, back) },
{ parts: ['(−3) × (−5)'], ans: ['p'], why: 'Two negative signs: positive.', fx: () => fx(S.qa.inner, { r: 360 }, 0, .5, back) },
{ parts: ['(−1)(−2)(−3)'], ans: ['n'], why: 'Three negative signs: negative.', fx: () => fx(S.qa.inner, { r: 540 }, 0, .5, back) },
{ parts: ['7 × (−2) × (−2)'], ans: ['p'], why: 'Two negative signs: positive.', fx: () => fx(S.qa.inner, { r: 720 }, 0, .5, back) },
- ], [['p', 'Positive', POS], ['n', 'Negative', NEG]], { multi: false }),
+ ], [['p', 'Positive', POS], ['n', 'Negative', NEG]], { multi: false })),
}], done) }],
['divide', 'Dividing', (m) => {
const p = panel(0);
diff --git a/site/elementary-algebra/ch16/index.html b/site/elementary-algebra/ch16/index.html
index 6c953e9..91e5686 100644
--- a/site/elementary-algebra/ch16/index.html
+++ b/site/elementary-algebra/ch16/index.html
@@ -114,7 +114,9 @@ const BEATS = [
c.add(20.4 * 3, CP, m('y2c'), '+$20.40');
mline(p, ['$1040'], 500, 770, m('y2s', 1), IN, 40);
mline(p, ['$1040.40'], 1100, 770, m('y2c', 2), CP, 40);
- caption(p, 'compound interest earns interest on interest', m('gap'), 845, COL.task, 30, 800);
+ // between the columns, clear of the optional captions at the bottom of the frame
+ caption(p, 'compound interest earns', m('gap'), 580, COL.task);
+ caption(p, 'interest on interest', m('gap'), 622, COL.task);
show(T(p, 'interest blocks drawn larger to be visible', { x: 800, y: 460, size: 20, fill: COL.faint, anchor: 'middle', o: 0 }), m('y1'));
}],
['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz(BAND, [{
@@ -149,7 +151,7 @@ const MARIO = [
{ parts: ['rate as a decimal: R = ', { box: '0.0325' }], why: '3.25 ÷ 100 = 0.0325.' },
{ parts: ['interest after 5 years: $', { box: '243.75' }], why: '1500 × 0.0325 × 5 = 243.75.' },
{ parts: ['balance after 5 years: $', { box: '1743.75' }], why: '1500 + 243.75 = 1743.75.' },
- { parts: ['a $1200 loan at 5.4% for 1.5 years: repay $', { box: '1297.2' }], why: '1200 × 0.054 × 1.5 = 97.20, and 1200 + 97.20 = 1297.20.' },
+ { parts: ['a $1200 loan at 5.4% for 1.5 years: repay $', { box: '1297.20' }], why: '1200 × 0.054 × 1.5 = 97.20, and 1200 + 97.20 = 1297.20.' },
];
const BACK = [
{ parts: ['$5000 at 8.5%: extra interest for 3 years instead of 2: $', { box: '425' }], why: 'One extra year: 5000 × 0.085 = 425.' },
diff --git a/site/elementary-algebra/ch21/index.html b/site/elementary-algebra/ch21/index.html
index be97c97..7acf21a 100644
--- a/site/elementary-algebra/ch21/index.html
+++ b/site/elementary-algebra/ch21/index.html
@@ -140,7 +140,7 @@ const BEATS = [
mline(p, ['9x', E(2), ' − 4x + ', F(5, 2), ' + 10x', E(3), ' → 10x', E(3), ' + 9x', E(2), ' − 4x + ', F(5, 2)], 800, 560, m('move', 3), COL.good, 44);
caption(p, 'each term keeps its sign: −4x is still subtracted', m('sign'), 680, COL.task);
}],
- ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz(BAND, [{
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 250, y: 260, w: 1100, cls: 'side' }, [{ // a band squeezes the prompt beside three long choices
id: 'c-std', prompt: ['Which is ', $m('3.2x − 0.8x', E(3), ' + 5'), ' in standard form?'],
build: choice([[$m('0.8x', E(3), ' + 3.2x + 5')], [$m('−0.8x', E(3), ' + 3.2x + 5')], [$m('5 + 3.2x − 0.8x', E(3))]], 1, 'The x³ term goes first, and it keeps its minus sign.',
['The x³ term lost its minus sign.', null, 'That is ascending order. Standard form starts with the highest exponent.']),
diff --git a/site/elementary-algebra/ch31/index.html b/site/elementary-algebra/ch31/index.html
index 0655eee..b74d3c4 100644
--- a/site/elementary-algebra/ch31/index.html
+++ b/site/elementary-algebra/ch31/index.html
@@ -86,7 +86,7 @@ const BEATS = [
side(p, ['counterclockwise from top right'], 250, .2, COL.dim, 28);
side(p, ['(−2, 0): on an axis, no quadrant'], 400, m('axis'), COL.int, 30);
}],
- ['q2', 'Quick check', () => { S.P.layer = panel(0); }, { ask: done => quiz(RIGHT, [{
+ ['q2', 'Quick check', () => { S.P.layer = panel(0); }, { ask: done => quiz({ x: 1060, y: 360, w: 520, cls: 'side', maxH: 520 }, [{ // wider and higher than RIGHT: the answer line fits without scrolling
id: 'c-quad', prompt: ['Which quadrant holds ', $m('(1, −2)'), '?'],
build: choice([['I'], ['II'], ['III'], ['IV']], 3, 'x is positive and y is negative: quadrant IV.',
['Quadrant I needs y positive too.', 'Quadrant II has x negative.', 'Quadrant III has both negative.', null],
diff --git a/site/elementary-algebra/ch38/index.html b/site/elementary-algebra/ch38/index.html
index af9f1b3..565afd6 100644
--- a/site/elementary-algebra/ch38/index.html
+++ b/site/elementary-algebra/ch38/index.html
@@ -23,6 +23,14 @@ const note = (p, str, y, t0, fill = COL.dim, x = 1000) => show(T(p, str, { x, y,
function makePlane(t0) { S.pg = G(scene); S.P = plane(S.pg, { cx: 520, cy: 450, u: 40, x0: -8, x1: 8, y0: -8, y1: 8, t0 }); return S.P; }
function stage() { const p = panel(0), P = S.P; P.layer = p; S.qp = p; return [p, P]; }
const now = (e, to) => tw(e, to, 0, .01);
+// pickPoint's cursor starts at the origin; when the origin is itself a right answer, start it at (x, y) instead,
+// so pressing Enter straight away is not a free answer
+const cursorAt = (build, x, y) => (body, api) => {
+ const q = build(body, api);
+ for (let i = 0; i < Math.abs(x); i++) q.key({ key: x > 0 ? 'ArrowRight' : 'ArrowLeft' });
+ for (let i = 0; i < Math.abs(y); i++) q.key({ key: y > 0 ? 'ArrowUp' : 'ArrowDown' });
+ return q;
+};
function system(p, a, b, x, y, t0, size = 38, gap = 60) {
const g = G(p, { o: 0 }), y1 = y - size * .85, y2 = y + gap + size * .3, ym = (y1 + y2) / 2;
path(g, `M${x + 14} ${y1}Q${x} ${y1} ${x} ${y1 + 14}V${ym - 10}Q${x} ${ym} ${x - 12} ${ym}Q${x} ${ym} ${x} ${ym + 10}V${y2 - 14}Q${x} ${y2} ${x + 14} ${y2}`, { stroke: COL.dim, 'stroke-width': 3 });
@@ -79,9 +87,9 @@ const BEATS = [
P.half(-1, -1, -3, L1, .5); P.half(-1, 1, -3, L2, .6);
}, { ask: done => quiz({ x: 1000, y: 280, w: 580, cls: 'side' }, [{
id: 'c-both', prompt: ['Pick any point that is a solution of both inequalities.'],
- build: pickPoint(S.P, [0, 0], (x, y) => `(${num(x)}, ${num(y)}) is in both shaded regions.`,
+ build: cursorAt(pickPoint(S.P, [0, 0], (x, y) => `(${num(x)}, ${num(y)}) is in both shaded regions.`,
(x, y) => y <= -x + 3 ? 'That point satisfies y ≤ −x + 3 only. It must be in both shaded regions.' : y >= x - 3 ? 'That point satisfies y ≥ x − 3 only. It must be in both shaded regions.' : 'That point satisfies neither inequality.',
- () => S.P.region([[-1, -1, -3], [-1, 1, -3]], OVERLAP, 0, { run: fx, into: S.qp, o: .5 }), (x, y) => y <= -x + 3 && y >= x - 3),
+ () => S.P.region([[-1, -1, -3], [-1, 1, -3]], OVERLAP, 0, { run: fx, into: S.qp, o: .5 }), (x, y) => y <= -x + 3 && y >= x - 3), 5, 3),
}], done) }],
['mixed', 'Solid and dashed', (m) => {
const [p, P] = stage();
diff --git a/site/elementary-algebra/ch42/index.html b/site/elementary-algebra/ch42/index.html
index 3f8f541..7664011 100644
--- a/site/elementary-algebra/ch42/index.html
+++ b/site/elementary-algebra/ch42/index.html
@@ -174,7 +174,7 @@ const BEATS = [
show(hit, m('ev'));
mline(p, ['P(heads and 6) = ', F(1, 12)], 1120, 420, m('one'), COL.good, 40, 'start');
}],
- ['q2', 'Quick check', () => {}, { ask: done => quiz({ x: 1090, y: 500, w: 470, cls: 'side' }, [{
+ ['q2', 'Quick check', () => {}, { ask: done => quiz({ x: 1040, y: 465, w: 530, cls: 'side' }, [{ // wide and high enough that the answer and Continue stay above the controls
id: 'c-tree', prompt: ['What is the probability of tails and an even number?'],
build: blanks([{ parts: ['P = ', { box: '1/4' }], why: 'T2, T4 and T6: 3 of the 12 outcomes, and 3/12 = 1/4.', hint: 'Count the outcomes that start with T and end in 2, 4 or 6.',
fx: () => { const L = S.q || qlayer(); S.leaves.filter(l => l.side === 'T' && l.n % 2 === 0).forEach((l, i) => fx(put(mk('rect', { x: TREE.l2 + 90, y: l.y - 24, width: 90, height: 44, rx: 12, fill: 'none', stroke: COL.good, 'stroke-width': 3.5 }, L), { o: 0 }), { o: 1 }, i * .2, .3)); } }]),
diff --git a/site/elementary-algebra/ch53/index.html b/site/elementary-algebra/ch53/index.html
index 2944de0..8a50c50 100644
--- a/site/elementary-algebra/ch53/index.html
+++ b/site/elementary-algebra/ch53/index.html
@@ -136,7 +136,7 @@ const BEATS = [
{ parts: ['3fm − gm + 6fn − 2gn = (3f − g)(m + ', { box: '2' }, 'n)'], why: 'm(3f − g) + 2n(3f − g).', hint: 'Factor m from the first pair and 2n from the second.' },
{ parts: ['10a', E(2), ' + 14a − 15ab − 21b = (5a + ', { box: '7' }, ')(2a − ', { box: '3' }, 'b)'], why: '2a(5a + 7) − 3b(5a + 7).', hint: 'Factor 2a from the first pair and −3b from the second.' },
{ parts: ['2m + 7am − 6n − 21a\u200Bn = (2 + ', { box: '7' }, 'a)(m − ', { box: '3' }, 'n)'], why: 'm(2 + 7a) − 3n(2 + 7a).', hint: 'Factor −3n from the second pair.' },
- { parts: ['x', E(2), ' + 3x + 2x + 6 = (x + ', { box: '3' }, ')(x + ', { box: '2' }, ')'], why: 'x(x + 3) + 2(x + 3).', hint: 'Factor x from the first pair and 2 from the second.' },
+ { parts: ['x', E(2), ' + 3x + 2x + 6 = (x + ', { box: '3' }, ')(x + ', { box: '2' }, ')'], test: ([a, b]) => (a === 3 && b === 2) || (a === 2 && b === 3), why: 'x(x + 3) + 2(x + 3).', hint: 'Factor x from the first pair and 2 from the second.' },
]),
}], done, 'Chapter practice 1 of 3') }],
['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
diff --git a/site/elementary-algebra/ch68/index.html b/site/elementary-algebra/ch68/index.html
index 839428f..9e9a9da 100644
--- a/site/elementary-algebra/ch68/index.html
+++ b/site/elementary-algebra/ch68/index.html
@@ -65,14 +65,14 @@ const BEATS = [
}],
['count', 'How many solutions?', (m) => {
const p = panel(0);
- [[x => -.6 * x * x + 2.5, 'two', 'two', HIT], [x => .5 * (x + 0) ** 2, 'one', 'one', VTX], [x => .4 * x * x + 1.2, 'none', 'no real solution', COL.bad]].forEach(([f, k, lab, c], i) => {
+ [[x => -.6 * x * x + 2.5, 'two', 'two', HIT], [x => 2 / 3 * (x + 2) ** 2, 'one', 'one', VTX], [x => x * x - 3 * x + 4, 'none', 'no real solution', COL.bad]].forEach(([f, k, lab, c], i) => {
const P = plane(p, { cx: 300 + i * 500, cy: 460, u: 44, x0: -4, x1: 4, y0: -4, y1: 5, t0: m(k), labels: false });
P.layer = p;
xGlow(p, P, m(k, .2));
P.fn(f, -4, 4, PAR, m(k, .4));
if (i === 0) [-Math.sqrt(2.5 / .6), Math.sqrt(2.5 / .6)].forEach(r => P.dot(r, 0, ROOT, m(k, 1.4)));
- if (i === 1) P.dot(0, 0, ROOT, m(k, 1.4));
- text(p, lab, 300 + i * 500, 800, m(k, 1.4), { size: 32, fill: c, anchor: 'middle', weight: 700 });
+ if (i === 1) P.dot(-2, 0, ROOT, m(k, 1.4));
+ text(p, lab, 300 + i * 500, 700, m(k, 1.4), { size: 32, fill: c, anchor: 'middle', weight: 700 });
});
mline(p, ['y = ', F(2, 3), '(x + 2)', E(2)], 800, 150, m('one', .5), VTX, 36);
mline(p, ['y = x', E(2), ' − 3x + 4'], 1300, 150, m('none', .5), COL.bad, 36);
diff --git a/site/joke-collection/ch07/scene6.js b/site/joke-collection/ch07/scene6.js
index fceab5b..64d10cc 100644
--- a/site/joke-collection/ch07/scene6.js
+++ b/site/joke-collection/ch07/scene6.js
@@ -31,7 +31,7 @@ function scene6(p, D) {
/* --- Pedro: ¡Vamos, mi casa! (pointing at the farmhouse); crosses to the barn; paints; steps back proud --- */
const walkHome = span(q, 1.2, 3.2), walkBarn = span(q, N6.s07, N6.sp7 - .1);
- const px = 560 + 200 * walkHome + 240 * walkBarn - 60 * span(q, N6.cue2 + .5, N6.cue2 + 1.2);
+ const px = 560 + 200 * walkHome + 240 * walkBarn + 30 * span(q, N6.cue2 + .5, N6.cue2 + 1.2); // steps back from the sign, clear of Yui
const pedro = { x: px, y: BK.GROUND, s: .92, look: 0, eyeX: 0, mouth: 'grin', headR: 2,
armR: 24, armL: 24, brow: 0, shut: b(q, 1.6, 5.2, 9.0, 14.6) };
if (q < N6.y3) Object.assign(pedro, { mouth: lips(q, 'scene6', PRE6, 'p5') !== 'X' ? lips(q, 'scene6', PRE6, 'p5') : 'grin',
@@ -49,7 +49,7 @@ function scene6(p, D) {
}
if (q >= N6.cue2) { // steps back to admire it, arms wide
const back = span(q, N6.cue2 + .5, N6.cue2 + 1.1);
- Object.assign(pedro, { mouth: 'grin', armR: 50, armL: 50, headR: 4, eyeY: -.3, look: 0, eyeX: 0,
+ Object.assign(pedro, { mouth: 'grin', armR: 50, armL: 6, headR: 4, eyeY: -.3, look: 0, eyeX: 0,
bob: -2 * back });
}
diff --git a/site/madness/index.html b/site/madness/index.html
index 7d25395..adb428f 100644
--- a/site/madness/index.html
+++ b/site/madness/index.html
@@ -54,7 +54,7 @@
<section class="credits">
<h2>Sources and credits</h2>
<p>Narration written from Michel Foucault, <i>Madness and Civilization</i> (1961; English translation by Richard Howard, 1965); quotations are his and those of Pascal and Dostoevsky as he cites them. Voices by ElevenLabs v4; music and pictures are public-domain or CC0 works from Wikimedia Commons, listed below. The line drawings of Foucault, the Fool in each era, the tea party and the props were made with an image model (gpt-image via OpenRouter), the chained Fool animated with Kling 3.0. The shorts’ engravings of the Fool on the river and in the ward were made with an image model too. Map data from Natural Earth (public domain). Type: Oswald and EB Garamond (SIL Open Font License, <code>lib/fonts/</code>).</p>
- <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3ALa_Nef_des_fous_-_J%C3%A9r%C3%B4me_Bosch_-_Mus%C3%A9e_du_Louvre_Peintures_RF_2218.jpg">La Nef des fous - Jérôme Bosch - Musée du Louvre Peintures RF 2218.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AShip_of_Fools_WDL8973.pdf">Ship of Fools WDL8973.pdf (page 5)</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANarrenschiff_%281549%29.jpg">Narrenschiff (1549).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeper_with_bell_-_Pontifical_%28c.1400%29%2C_f.127_-_BL_Lansdowne_MS_451.jpg">Leper with bell - Pontifical (c.1400), f.127 - BL Lansdowne MS 451.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeprozenhuis_in_Haarlem_Gezichten_bij_Haarlem_%28serietitel%29%2C_RP-P-1879-A-3470.jpg">Leprozenhuis in Haarlem Gezichten bij Haarlem (serietitel), RP-P-1879-A-3470.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARhenus_Fluviorum_Europae_celeberrimus_cum_Mosa_Mosella%2C_et_reliquis_in_illum_se_exonerantibus_fluminibus_%28Nicolaas_Visscher%29.jpg">Rhenus Fluviorum Europae celeberrimus cum Mosa Mosella, et reliquis in illum se exonerantibus fluminibus (Nicolaas Visscher).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3A%22Off%2C_off%2C_you_lendings%E2%80%93Come_unbutton_here%22_%28Shakespeare%2C_King_Lear%2C_Act_3%2C_Scene_4%29_MET_49J_149R3.jpg">&quot;Off, off, you lendings–Come unbutton here&quot; (Shakespeare, King Lear, Act 3, Scene 4) MET 49J 149R3.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABook%2C_print%2C_title-page_%28BM_1949%2C0411.4992%29.jpg">Book, print, title-page (BM 1949,0411.4992).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APortrait_of_Louis_XIV_of_France_in_Coronation_Robes_%28by_Hyacinthe_Rigaud%29_-_Louvre_Museum.jpg">Portrait of Louis XIV of France in Coronation Robes (by Hyacinthe Rigaud) - Louvre Museum.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AL%27Hospital_de_la_Salpestriere_hors_la_Porte_St._Bernart%2C_G.22845%282%29.jpg">L&#x27;Hospital de la Salpestriere hors la Porte St. Bernart, G.22845(2).jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACallot%2C_Les_Gueux%2C_Le_Mendiant_au_couvet.jpg">Callot, Les Gueux, Le Mendiant au couvet.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2802%29_-_Le_joueur_de_vielle.jpg">Jacques Callot - Les Gueux (02) - Le joueur de vielle.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2813%29_-_Le_malingreux.jpg">Jacques Callot - Les Gueux (13) - Le malingreux.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2816%29_-_La_mendiante_aux_b%C3%A9quilles.jpg">Jacques Callot - Les Gueux (16) - La mendiante aux béquilles.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABlaise_Pascal_Versailles.JPG">Blaise Pascal Versailles.JPG</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVasily_Perov_-_%D0%9F%D0%BE%D1%80%D1%82%D1%80%D0%B5%D1%82_%D0%A4.%D0%9C.%D0%94%D0%BE%D1%81%D1%82%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE_-_Google_Art_Project.jpg">Vasily Perov - Портрет Ф.М.Достоевского - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Norris_-_An_Insane_American_%281815%29.jpg">William Norris - An Insane American (1815).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Rake%27s_Progress%2C_Plate_8_MET_DP827030.jpg">A Rake&#x27;s Progress, Plate 8 MET DP827030.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_%C3%A0_la_Salp%C3%AAtri%C3%A8re_.jpg">Philippe Pinel à la Salpêtrière .jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEngraving_of_the_original_Retreat_near_York_instituted_1792.jpg">Engraving of the original Retreat near York instituted 1792.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_La_casa_de_locos_-_Google_Art_Project.jpg">Francisco de Goya - La casa de locos - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche1882.jpg">Nietzsche1882.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVan_Gogh_-_Starry_Night_-_Google_Art_Project.jpg">Van Gogh - Starry Night - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ATorino_e_suoi_dintorni_9.jpg">Torino e suoi dintorni 9.jpg</a> · Public domain</li></ul>
+ <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3ALa_Nef_des_fous_-_J%C3%A9r%C3%B4me_Bosch_-_Mus%C3%A9e_du_Louvre_Peintures_RF_2218.jpg">La Nef des fous - Jérôme Bosch - Musée du Louvre Peintures RF 2218.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AShip_of_Fools_WDL8973.pdf">Ship of Fools WDL8973.pdf (pages 5 and 6)</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANarrenschiff_%281549%29.jpg">Narrenschiff (1549).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeper_with_bell_-_Pontifical_%28c.1400%29%2C_f.127_-_BL_Lansdowne_MS_451.jpg">Leper with bell - Pontifical (c.1400), f.127 - BL Lansdowne MS 451.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeprozenhuis_in_Haarlem_Gezichten_bij_Haarlem_%28serietitel%29%2C_RP-P-1879-A-3470.jpg">Leprozenhuis in Haarlem Gezichten bij Haarlem (serietitel), RP-P-1879-A-3470.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARhenus_Fluviorum_Europae_celeberrimus_cum_Mosa_Mosella%2C_et_reliquis_in_illum_se_exonerantibus_fluminibus_%28Nicolaas_Visscher%29.jpg">Rhenus Fluviorum Europae celeberrimus cum Mosa Mosella, et reliquis in illum se exonerantibus fluminibus (Nicolaas Visscher).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3A%22Off%2C_off%2C_you_lendings%E2%80%93Come_unbutton_here%22_%28Shakespeare%2C_King_Lear%2C_Act_3%2C_Scene_4%29_MET_49J_149R3.jpg">&quot;Off, off, you lendings–Come unbutton here&quot; (Shakespeare, King Lear, Act 3, Scene 4) MET 49J 149R3.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABook%2C_print%2C_title-page_%28BM_1949%2C0411.4992%29.jpg">Book, print, title-page (BM 1949,0411.4992).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APortrait_of_Louis_XIV_of_France_in_Coronation_Robes_%28by_Hyacinthe_Rigaud%29_-_Louvre_Museum.jpg">Portrait of Louis XIV of France in Coronation Robes (by Hyacinthe Rigaud) - Louvre Museum.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AL%27Hospital_de_la_Salpestriere_hors_la_Porte_St._Bernart%2C_G.22845%282%29.jpg">L&#x27;Hospital de la Salpestriere hors la Porte St. Bernart, G.22845(2).jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACallot%2C_Les_Gueux%2C_Le_Mendiant_au_couvet.jpg">Callot, Les Gueux, Le Mendiant au couvet.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2802%29_-_Le_joueur_de_vielle.jpg">Jacques Callot - Les Gueux (02) - Le joueur de vielle.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2813%29_-_Le_malingreux.jpg">Jacques Callot - Les Gueux (13) - Le malingreux.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2816%29_-_La_mendiante_aux_b%C3%A9quilles.jpg">Jacques Callot - Les Gueux (16) - La mendiante aux béquilles.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABlaise_Pascal_Versailles.JPG">Blaise Pascal Versailles.JPG</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVasily_Perov_-_%D0%9F%D0%BE%D1%80%D1%82%D1%80%D0%B5%D1%82_%D0%A4.%D0%9C.%D0%94%D0%BE%D1%81%D1%82%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE_-_Google_Art_Project.jpg">Vasily Perov - Портрет Ф.М.Достоевского - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Norris_-_An_Insane_American_%281815%29.jpg">William Norris - An Insane American (1815).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Rake%27s_Progress%2C_Plate_8_MET_DP827030.jpg">A Rake&#x27;s Progress, Plate 8 MET DP827030.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_%C3%A0_la_Salp%C3%AAtri%C3%A8re_.jpg">Philippe Pinel à la Salpêtrière .jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEngraving_of_the_original_Retreat_near_York_instituted_1792.jpg">Engraving of the original Retreat near York instituted 1792.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_La_casa_de_locos_-_Google_Art_Project.jpg">Francisco de Goya - La casa de locos - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche1882.jpg">Nietzsche1882.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVan_Gogh_-_Starry_Night_-_Google_Art_Project.jpg">Van Gogh - Starry Night - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ATorino_e_suoi_dintorni_9.jpg">Torino e suoi dintorni 9.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Dyce_-_King_Lear_and_the_Fool_in_the_Storm.jpg">William Dyce - King Lear and the Fool in the Storm.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFolly_Steps_Down_from_the_Pulpit%2C_marginal_drawing_by_Hans_Holbein_the_Younger.jpg">Folly Steps Down from the Pulpit, marginal drawing by Hans Holbein the Younger.jpg</a> · Public domain</li></ul>
<h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3A20091104_Awadagin_Pratt_-_Bach%27s_Passacaglia_and_Fugue_in_C_minor%2C_BWV_582.ogg">20091104 Awadagin Pratt - Bach&#x27;s Passacaglia and Fugue in C minor, BWV 582.ogg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AHandel%27s_Water_Music_-_16._Sarabande_-_Chamber_Orchestra_-_United_States_Marine_Band.opus">Handel&#x27;s Water Music - 16. Sarabande - Chamber Orchestra - United States Marine Band.opus</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_String_Quartet_No._15_in_D_minor%2C_K421_-_II._Andante_%28Musopen_String_Quartet%29.flac">Mozart - String Quartet No. 15 in D minor, K421 - II. Andante (Musopen String Quartet).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_Symphony_No._40_in_G_minor%2C_K550_-_II._Andante_%28Musopen_Symphony%29.flac">Mozart - Symphony No. 40 in G minor, K550 - II. Andante (Musopen Symphony).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ASatie_Gymnopedie_No_1_performed_by_Michael_Laucke.flac">Satie Gymnopedie No 1 performed by Michael Laucke.flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Modena_Chamber_Orchestra_-_Vivaldi%27s_Summer%2C_RV_315_-_III._Presto.ogg">The Modena Chamber Orchestra - Vivaldi&#x27;s Summer, RV 315 - III. Presto.ogg</a> · PDM-owner</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVolte_-_Stellar_Brass_-_United_States_Air_Force_Band_of_the_Rockies.mp3">Volte - Stellar Brass - United States Air Force Band of the Rockies.mp3</a> · Public domain</li></ul>
</section>
diff --git a/site/physics-notebook/ch13/index.html b/site/physics-notebook/ch13/index.html
index 6d18210..2149d63 100644
--- a/site/physics-notebook/ch13/index.html
+++ b/site/physics-notebook/ch13/index.html
@@ -573,10 +573,10 @@ const BEATS = [
}],
['q3', 'Quick check', () => {}, { ask: done => quiz({ x: 940, y: 150, w: 620, cls: 'side' }, [{
id: 'c-factors', prompt: ['Which two things decide an object\'s gravitational potential energy?'],
- build: choice([['mass and height'], ['mass and velocity'], ['height and colour']], 0,
+ build: choice([['mass and velocity'], ['height and colour'], ['mass and height']], 2,
'More mass or more height means more stored energy.',
- [null, 'Mass and velocity decide kinetic energy, the energy of motion. Stored energy from gravity depends on height.',
- 'Colour makes no difference. Think of the two books: what was different about them?']),
+ ['Mass and velocity decide kinetic energy, the energy of motion. Stored energy from gravity depends on height.', 'Colour makes no difference. Think of the two books: what was different about them?',
+ null]),
}], done) }],
['kinetic', 'Kinetic energies', (m, D) => {
const p = panel(0);
@@ -685,7 +685,7 @@ const BEATS = [
if (form === 'kinetic') speedLines(p, 320, y + 60, 3, 60);
else hand(p, 'z z z', 470, y + 10, { size: 34, fill: COL.dim });
}
- }, { ask: done => quiz({ x: 650, y: 80, w: 900, cls: 'side', maxH: 760 }, [{
+ }, { ask: done => quiz({ x: 650, y: 40, w: 900, cls: 'side', maxH: 830 }, [{
id: 'c-sort', prompt: ['Is each form moving energy (kinetic) or stored energy (potential)?'],
build: grid([['Thermal energy', 'k', 'Thermal energy is molecules vibrating: motion.'], ['Elastic energy', 'p', 'Elastic energy is stored in a stretch or squeeze.'],
['Sound energy', 'k', 'Sound is molecules bumping into each other: motion.'], ['Chemical energy', 'p', 'Chemical energy is stored in the bonds of atoms.'],
@@ -722,32 +722,33 @@ const PRACTICE = [
['The energy of an object because of its motion', 'k', 'Kinetic energy is the energy of motion.']].map(([t, a, why]) => ({ parts: [t], ans: [a], why })),
[['c', 'conservation'], ['p', 'potential'], ['k', 'kinetic']], { multi: false, text: true }) },
{ id: 'p-cow', prompt: ['A cow digests grass. The chemical energy stored in the grass becomes…'],
- build: choice([['thermal and kinetic energy'], ['nuclear energy'], ['nothing: the energy is used up']], 0,
+ build: choice([['nuclear energy'], ['thermal and kinetic energy'], ['nothing: the energy is used up']], 1,
'The cow\'s body releases the stored chemical energy as heat (thermal) and motion (kinetic).',
- [null, 'Nuclear energy is stored in the nuclei of atoms; digestion rearranges chemical bonds.', 'Energy is never destroyed; it changes form.']) },
+ ['Nuclear energy is stored in the nuclei of atoms; digestion rearranges chemical bonds.', null, 'Energy is never destroyed; it changes form.']) },
{ id: 'p-chem', prompt: ['What is chemical energy?'],
- build: choice([['energy stored in the bonds between atoms'], ['energy of flowing electrons'], ['energy stored in an object\'s height']], 0,
+ build: choice([['energy of flowing electrons'], ['energy stored in an object\'s height'], ['energy stored in the bonds between atoms']], 2,
'Chemical energy is stored in chemical bonds, as in food and fuel.',
- [null, 'That is electric energy.', 'That is gravitational potential energy.']) },
+ ['That is electric energy.', 'That is gravitational potential energy.', null]) },
{ id: 'p-shelf', prompt: ['Books on the same bookcase. Which has the most potential energy?'],
- build: choice([['a 2 kg book on the top shelf'], ['a 1 kg book on the top shelf'], ['a 2 kg book on the bottom shelf']], 0,
+ build: choice([['a 1 kg book on the top shelf'], ['a 2 kg book on the top shelf'], ['a 2 kg book on the bottom shelf']], 1,
'It has both more mass and more height.',
- [null, 'Same height as the 2 kg book on the top shelf, but less mass.', 'Same mass as the 2 kg book on the top shelf, but much less height.']) },
+ ['Same height as the 2 kg book on the top shelf, but less mass.', null, 'Same mass as the 2 kg book on the top shelf, but much less height.']) },
{ id: 'p-ke', prompt: ['A tennis ball and a bowling ball roll at the same speed. Which has more kinetic energy?'],
build: choice([['the bowling ball'], ['the tennis ball'], ['they have the same, because the speed is the same']], 0,
'At the same speed, more mass means more kinetic energy.',
[null, 'The tennis ball has less mass, so less kinetic energy at the same speed.', 'Speed is only half of it: kinetic energy also grows with mass.']) },
{ id: 'p-change', prompt: ['Energy is constantly ______ from one form to another.'],
- build: choice([['changing'], ['being destroyed'], ['being created']], 0,
+ build: choice([['being destroyed'], ['being created'], ['changing']], 2,
'Energy keeps changing form: light to chemical to motion, and on.',
- [null, 'Energy is never destroyed.', 'Energy is never created.']) },
+ ['Energy is never destroyed.', 'Energy is never created.', null]) },
{ id: 'p-bump', prompt: ['Your bumper car hits your friend\'s car, and hers moves forward. What kind of energy did yours pass to hers?'],
build: choice([['kinetic energy'], ['potential energy'], ['nuclear energy']], 0,
'Energy of motion passed from one car to the other in the collision.',
[null, 'Nothing was lifted or stretched; the energy passed on was motion.', 'Nuclear energy is stored inside atoms; a bump does not release it.']) },
];
-nbBoot();
+// This notebook chapter is a sample in the physics book: Home goes back to that book's contents (its card has no id to aim at).
+nbBoot().then(() => { $('bHome').href = '../../science/#contents'; });
</script>
</body>
</html>
diff --git a/site/physics-notebook/lib/notebook.js b/site/physics-notebook/lib/notebook.js
index c5603a2..6cc73f4 100644
--- a/site/physics-notebook/lib/notebook.js
+++ b/site/physics-notebook/lib/notebook.js
@@ -17,7 +17,7 @@ const HL = { yellow: '#fff06a', pink: '#f7a8c8', green: '#c5e15a', blue: '#8fd3f
// Fonts must be ready before anything is measured or drawn: call nbBoot() instead of boot().
function nbBoot() {
- Promise.all(['40px "Patrick Hand"', '40px "Luckiest Guy"'].map(f => document.fonts.load(f))).finally(boot);
+ return Promise.all(['40px "Patrick Hand"', '40px "Luckiest Guy"'].map(f => document.fonts.load(f))).finally(boot);
}
// Text in the hand font (o: 0 unless shown later).
diff --git a/site/science/ch10/index.html b/site/science/ch10/index.html
index fdd7486..0785127 100644
--- a/site/science/ch10/index.html
+++ b/site/science/ch10/index.html
@@ -263,9 +263,9 @@ const BEATS = [
{ id: 'c-tug', prompt: ['Tug-of-war: you pull with 15 newtons, your brother pulls the other way with 10 newtons. What is the ', h('b', '', 'net force'), '?'],
build: blanks([{ parts: ['net force = 15 − 10 = ', { box: '5' }, ' newtons'], why: 'Opposite directions subtract: 15 − 10 = 5 newtons, toward you.', hint: 'The forces point in opposite directions, so subtract.' }]) },
{ id: 'c-tugdir', prompt: ['Which way does the rope start to move?'],
- build: choice([['toward you'], ['toward your brother'], ['it does not move']], 0,
+ build: choice([['toward your brother'], ['it does not move'], ['toward you']], 2,
'The net force (5 newtons) points toward you, the stronger pull.',
- [null, 'Your brother pulls with less force; the net force points toward you.', 'The forces are unbalanced (15 vs 10), so the rope moves.']) },
+ ['Your brother pulls with less force; the net force points toward you.', 'The forces are unbalanced (15 vs 10), so the rope moves.', null]) },
{ id: 'c-bal', prompt: ['Two teams each pull with 20 newtons in opposite directions. These forces are…'],
build: choice([['balanced: the net force is 0'], ['unbalanced: the net force is 40 newtons']], 0,
'Equal and opposite forces cancel: the net force is 0, so nothing changes.',
@@ -400,13 +400,13 @@ const BEATS = [
put(ball, { x }); put(ball._spin, { r: x / R * 180 / Math.PI }); arrowAt(vA, x + R + 8, Y - R, v * .35, 0, 24); fr.set(x - R - 8, Y - 18, v > 0 ? 90 : 0, 180, 'friction'); }, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-inertia', prompt: ['A bowling ball and a soccer ball are the same size. Which has more ', h('b', '', 'inertia'), '?'],
- build: choice([['the bowling ball'], ['the soccer ball'], ['they have the same inertia']], 0,
+ build: choice([['the soccer ball'], ['the bowling ball'], ['they have the same inertia']], 1,
'The bowling ball has much more mass, so it resists changes in motion more.',
- [null, 'The soccer ball is lighter: less mass, less inertia.', 'Inertia depends on mass, not size.']) },
+ ['The soccer ball is lighter: less mass, less inertia.', null, 'Inertia depends on mass, not size.']) },
{ id: 'c-friction', prompt: ['A ball rolling on grass slows down and stops. Why?'],
- build: choice([['friction pushes against its motion'], ['it runs out of inertia'], ['no force acts on it']], 0,
+ build: choice([['it runs out of inertia'], ['no force acts on it'], ['friction pushes against its motion']], 2,
'Friction from the grass and air is a force against the motion: an unbalanced force that slows it down.',
- [null, 'Inertia is not used up; the ball would keep rolling without friction.', 'With no force at all, it would keep rolling forever (first law).']) },
+ ['Inertia is not used up; the ball would keep rolling without friction.', 'With no force at all, it would keep rolling forever (first law).', null]) },
{ id: 'c-mom', prompt: ['A 2 kilogram ball rolls at 3 meters per second. What is its ', h('b', '', 'momentum'), '?'],
build: blanks([{ parts: ['momentum = 2 × 3 = ', { box: '6' }, ' kilogram meters per second'], why: 'mass × velocity = 2 × 3 = 6.', hint: 'Momentum = mass × velocity.' }]) },
], done) }],
@@ -678,13 +678,13 @@ const BEATS = [
{ id: 'c-wall', prompt: ['You push on a wall with 30 newtons. How hard does the wall push back on you?'],
build: blanks([{ parts: ['the wall pushes back with ', { box: '30' }, ' newtons'], why: 'Action and reaction are equal in size and opposite in direction.', hint: 'Third law: equal and opposite.' }]) },
{ id: 'c-jump', prompt: ['When you jump, you push down on Earth and Earth pushes up on you with the same force. Why doesn’t Earth move noticeably?'],
- build: choice([['its huge mass gives it a tiny acceleration'], ['it pushes back with a smaller force'], ['forces only act on people']], 0,
+ build: choice([['it pushes back with a smaller force'], ['its huge mass gives it a tiny acceleration'], ['forces only act on people']], 1,
'Same force, enormous mass: a = F ÷ m is far too small to notice.',
- [null, 'The two forces are equal; the difference is the mass.', 'Earth feels the force too; it just barely accelerates.']) },
+ ['The two forces are equal; the difference is the mass.', null, 'Earth feels the force too; it just barely accelerates.']) },
{ id: 'c-pair', prompt: ['A swimmer pushes backward on the pool wall. What pushes the swimmer forward?'],
- build: choice([['the wall'], ['the swimmer’s own push'], ['nothing pushes the swimmer']], 0,
+ build: choice([['the swimmer’s own push'], ['nothing pushes the swimmer'], ['the wall']], 2,
'The wall pushes back on the swimmer: an action-reaction pair.',
- [null, 'Your own push acts on the wall, not on you. The wall’s push acts on you.', 'Something must push the swimmer to speed her up: the wall does.']) },
+ ['Your own push acts on the wall, not on you. The wall’s push acts on you.', 'Something must push the swimmer to speed her up: the wall does.', null]) },
], done) }],
['wrap4', 'Summary · Third law', (m, D) => {
summary(panel(0), m, [
@@ -696,16 +696,16 @@ const BEATS = [
/* ---------- chapter practice and finish ---------- */
['final1', 'Chapter practice: force and the first law', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-bal', prompt: ['What is the difference between ', h('b', '', 'balanced'), ' and ', h('b', '', 'unbalanced'), ' forces?'],
- build: choice([['Balanced forces cancel (net force 0); unbalanced forces leave a net force that changes motion.'], ['Balanced forces are always bigger than unbalanced ones.'], ['Unbalanced forces cancel; balanced forces change motion.']], 0,
+ build: choice([['Balanced forces are always bigger than unbalanced ones.'], ['Balanced forces cancel (net force 0); unbalanced forces leave a net force that changes motion.'], ['Unbalanced forces cancel; balanced forces change motion.']], 1,
'Balanced: the net force is zero, nothing changes. Unbalanced: there is a net force in one direction.',
- [null, 'It is not about size: it is whether the forces cancel.', 'It is the other way around.']) },
+ ['It is not about size: it is whether the forces cancel.', null, 'It is the other way around.']) },
{ id: 'p-first', prompt: ['What is ', h('b', '', 'Newton’s first law'), '?'],
build: choice([['An object at rest stays at rest and an object in motion stays in motion, unless a net force acts on it.'], ['Acceleration equals net force divided by mass.'], ['For every action there is an equal and opposite reaction.']], 0,
'That is the law of inertia.', [null, 'That is the second law.', 'That is the third law.']) },
{ id: 'p-unit', prompt: ['What is the unit of force, and what is one unit equal to?'],
- build: choice([['the newton: 1 N = 1 kg × 1 m/s²'], ['the newton: 1 N = 1 kg × 1 m/s'], ['the kilogram: 1 kg = 1 N × 1 m/s²']], 0,
+ build: choice([['the newton: 1 N = 1 kg × 1 m/s'], ['the newton: 1 N = 1 kg × 1 m/s²'], ['the kilogram: 1 kg = 1 N × 1 m/s²']], 1,
'One newton gives a 1 kilogram mass an acceleration of 1 meter per second squared.',
- [null, 'Close: it is meters per second squared, an acceleration.', 'Force is measured in newtons; the kilogram measures mass.']) },
+ ['Close: it is meters per second squared, an acceleration.', null, 'Force is measured in newtons; the kilogram measures mass.']) },
{ id: 'p-net3', prompt: ['Forces on a box: 6 newtons right, 4 newtons right, and 3 newtons left. What is the net force?'],
build: blanks([{ parts: ['net force = 6 + 4 − 3 = ', { box: '7' }, ' newtons, to the right'], why: 'Same direction adds (6 + 4 = 10); the opposite force subtracts (10 − 3 = 7).', hint: 'Add the forces to the right, then subtract the one to the left.' }]) },
]), done, 'Chapter practice, set 1 of 2') }],
@@ -713,11 +713,11 @@ const BEATS = [
{ id: 'p-second', prompt: ['What is ', h('b', '', 'Newton’s second law'), '?'],
build: choice([['The acceleration of an object equals the net force on it divided by its mass.'], ['Objects keep their motion unless a net force acts.'], ['Forces act in pairs.']], 0,
'a = net force ÷ mass, or net force = mass × acceleration.', [null, 'That is the first law.', 'That is the third law.']) },
- { id: 'p-car', prompt: ['A 2,000 kilogram car accelerates at 3 meters per second squared. What force does the engine apply? (Type the number without a comma.)'],
- build: blanks([{ parts: ['net force = 2000 × 3 = ', { box: '6000' }, ' newtons'], why: 'net force = mass × acceleration = 2,000 × 3 = 6,000 newtons.', hint: 'net force = mass × acceleration. Type 6000.' }]) },
+ { id: 'p-car', prompt: ['A 2,000 kilogram car accelerates at 3 meters per second squared. What force does the engine apply?'],
+ build: blanks([{ parts: ['net force = 2000 × 3 = ', { box: '6000' }, ' newtons'], why: 'net force = mass × acceleration = 2,000 × 3 = 6,000 newtons.', hint: 'net force = mass × acceleration.' }]) },
{ id: 'p-third', prompt: ['What is ', h('b', '', 'Newton’s third law'), '?'],
- build: choice([['For every action, there is an equal and opposite reaction.'], ['More mass means more inertia.'], ['Momentum equals mass times velocity.']], 0,
- 'Forces act in pairs: equal in size, opposite in direction.', [null, 'That is about inertia (first law).', 'That defines momentum.']) },
+ build: choice([['More mass means more inertia.'], ['Momentum equals mass times velocity.'], ['For every action, there is an equal and opposite reaction.']], 2,
+ 'Forces act in pairs: equal in size, opposite in direction.', ['That is about inertia (first law).', 'That defines momentum.', null]) },
{ id: 'p-mom', prompt: ['A 0.5 kilogram ball moves at 8 meters per second. What is its momentum?'],
build: blanks([{ parts: ['momentum = 0.5 × 8 = ', { box: '4' }, ' kilogram meters per second'], why: 'mass × velocity = 0.5 × 8 = 4.', hint: 'momentum = mass × velocity.' }]) },
]), done, 'Chapter practice, set 2 of 2') }],
diff --git a/site/science/ch11/index.html b/site/science/ch11/index.html
index 377c466..a295e8c 100644
--- a/site/science/ch11/index.html
+++ b/site/science/ch11/index.html
@@ -390,15 +390,15 @@ const BEATS = [
phLabel(p, 'on the Moon', { x: 400, y: 120, size: 40, fill: COL.dim, weight: 600 });
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-dist', prompt: ['The pull of gravity between two objects gets ', h('b', '', 'weaker'), ' when…'],
- build: choice([['they move farther apart'], ['their masses get bigger'], ['they move closer together']], 0,
+ build: choice([['their masses get bigger'], ['they move farther apart'], ['they move closer together']], 1,
'More distance, weaker gravity.',
- [null, 'More mass makes gravity stronger, not weaker.', 'Closer objects pull on each other more strongly.']) },
+ ['More mass makes gravity stronger, not weaker.', null, 'Closer objects pull on each other more strongly.']) },
{ id: 'c-mass', prompt: ['An astronaut has a mass of 60 kilograms on Earth. What is her ', h('b', '', 'mass'), ' on the Moon?'],
build: blanks([{ parts: ['mass on the Moon = ', { box: '60' }, ' kilograms'], why: 'Mass doesn’t depend on where you are. Her weight on the Moon is about one-sixth, but her mass is still 60 kilograms.', hint: 'Mass stays the same everywhere; weight changes.' }]) },
{ id: 'c-top', prompt: ['You throw a ball straight up. At the very top, it stops for an instant. Is gravity still pulling on it?'],
- build: choice([['yes, gravity pulls it down the whole time'], ['no, gravity is zero at the top'], ['only once it starts falling again']], 0,
+ build: choice([['no, gravity is zero at the top'], ['only once it starts falling again'], ['yes, gravity pulls it down the whole time']], 2,
'Gravity never switches off: that steady pull is what turned the ball around.',
- [null, 'If gravity were zero there, the ball would just stay up.', 'Gravity also slowed it on the way up.']) },
+ ['If gravity were zero there, the ball would just stay up.', 'Gravity also slowed it on the way up.', null]) },
], done) }],
['wrap1', 'Summary · Gravity', (m, D) => {
summary(panel(0), m, [
@@ -602,9 +602,9 @@ const BEATS = [
'Rougher surfaces have more friction, so the puck slows down sooner.',
[null, 'Its mass doesn’t change; the surface does.', 'Gravity acts on the puck everywhere.']) },
{ id: 'c-static', prompt: ['To get a heavy box moving, you push harder than you need to keep it sliding. Which friction is ', h('b', '', 'stronger'), '?'],
- build: choice([['static friction'], ['sliding friction'], ['they are always equal']], 0,
+ build: choice([['sliding friction'], ['static friction'], ['they are always equal']], 1,
'Static friction holds a still box more strongly than sliding friction resists a moving one.',
- [null, 'Once it slides, the friction is weaker: that’s why it gets easier.', 'Starting is harder than keeping it going, so they differ.']) },
+ ['Once it slides, the friction is weaker: that’s why it gets easier.', null, 'Starting is harder than keeping it going, so they differ.']) },
{ id: 'c-term', prompt: ['A skydiver falls at ', h('b', '', 'terminal velocity'), '. What is the net force on her?'],
build: choice([['zero: air resistance equals gravity'], ['downward, so she keeps speeding up'], ['upward, so she slows down']], 0,
'Balanced forces: no net force, so her speed stays the same.',
@@ -776,15 +776,15 @@ const BEATS = [
clockRun(t => put(B, { x: 1040 + 3 * Math.sin(t * 20) }), D); // north faces north: held apart, trembling
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-poles', prompt: ['You push the ', h('b', '', 'north'), ' pole of one magnet toward the ', h('b', '', 'north'), ' pole of another. What happens?'],
- build: choice([['they push each other away'], ['they pull together'], ['nothing happens']], 0,
- 'Like poles repel.', [null, 'Only opposite poles (north and south) attract.', 'Magnets push or pull each other even without touching.']) },
+ build: choice([['they pull together'], ['nothing happens'], ['they push each other away']], 2,
+ 'Like poles repel.', ['Only opposite poles (north and south) attract.', 'Magnets push or pull each other even without touching.', null]) },
{ id: 'c-charge', prompt: ['Two balloons both have a ', h('b', '', 'negative'), ' charge. What do they do?'],
build: choice([['push apart'], ['pull together']], 0,
'Like charges repel.', [null, 'Opposite charges attract; these are both negative.']) },
{ id: 'c-emag', prompt: ['How can you make an ', h('b', '', 'electromagnet'), '?'],
- build: choice([['wrap a wire carrying a current around an iron core'], ['rub an iron nail on your hair'], ['cool a magnet in water']], 0,
+ build: choice([['rub an iron nail on your hair'], ['wrap a wire carrying a current around an iron core'], ['cool a magnet in water']], 1,
'A current in a coil around iron makes a magnet you can switch on and off.',
- [null, 'Rubbing gives things an electric charge; it doesn’t make an electromagnet.', 'An electromagnet needs a current.']) },
+ ['Rubbing gives things an electric charge; it doesn’t make an electromagnet.', null, 'An electromagnet needs a current.']) },
], done) }],
['wrap3', 'Summary · Magnetic and electric forces', (m, D) => {
summary(panel(0), m, [
@@ -916,13 +916,13 @@ const BEATS = [
clockRun(t => { w.at(t); put(duck, { x: 1150, y: 330 + 70 + 5 * Math.sin(t * 2.6) }); }, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-cent', prompt: ['You whirl a ball on a string. Which way does the ', h('b', '', 'centripetal force'), ' on the ball point?'],
- build: choice([['toward the center of the circle'], ['away from the center'], ['the way the ball is moving']], 0,
+ build: choice([['away from the center'], ['the way the ball is moving'], ['toward the center of the circle']], 2,
'The string pulls the ball inward, toward the center.',
- [null, 'Let go and the ball flies off straight, not outward: nothing pulls it outward.', 'That is the velocity; the force points to the center.']) },
+ ['Let go and the ball flies off straight, not outward: nothing pulls it outward.', 'That is the velocity; the force points to the center.', null]) },
{ id: 'c-boat', prompt: ['A toy boat pushes aside 4 newtons of water. What is the ', h('b', '', 'buoyant force'), ' on it?'],
build: blanks([{ parts: ['buoyant force = ', { box: '4' }, ' newtons'], why: 'Archimedes’ principle: the buoyant force equals the weight of the water pushed aside.', hint: 'Buoyant force = weight of the fluid pushed aside.' }]) },
{ id: 'c-dense', prompt: ['An object is ', h('b', '', 'denser'), ' than water. In water, it…'],
- build: choice([['sinks'], ['floats']], 0, 'Denser than the fluid: it sinks.', [null, 'Only objects less dense than the fluid float.']) },
+ build: choice([['floats'], ['sinks']], 1, 'Denser than the fluid: it sinks.', ['Only objects less dense than the fluid float.', null]) },
], done) }],
['wrap4', 'Summary · Circles and floating', (m, D) => {
summary(panel(0), m, [
@@ -936,25 +936,25 @@ const BEATS = [
{ id: 'p-grav', prompt: ['What is the force that attracts masses together?'],
build: choice([['gravity'], ['friction'], ['the buoyant force']], 0, 'Gravity is the attraction between all things with mass.', [null, 'Friction opposes motion between touching surfaces.', 'The buoyant force pushes up on things in a fluid.']) },
{ id: 'p-bowl', prompt: ['Why does a bowling ball have more gravity than a soccer ball?'],
- build: choice([['it has more mass, and more mass means a stronger pull'], ['it is rounder'], ['it is closer to the ground']], 0,
- 'As mass increases, so does the force of gravity.', [null, 'Shape doesn’t set gravity; mass does.', 'Both sit on the same ground; the difference is mass.']) },
+ build: choice([['it is rounder'], ['it is closer to the ground'], ['it has more mass, and more mass means a stronger pull']], 2,
+ 'As mass increases, so does the force of gravity.', ['Shape doesn’t set gravity; mass does.', 'Both sit on the same ground; the difference is mass.', null]) },
{ id: 'p-dist', prompt: ['The force of gravity decreases as the ___ between masses increases.'],
build: choice([['distance'], ['mass'], ['speed']], 0, 'Farther apart, weaker gravity.', [null, 'More mass makes gravity stronger.', 'Speed doesn’t change the pull of gravity.']) },
{ id: 'p-cart', prompt: ['When you push a shopping cart, the friction that opposes its motion is mainly ___ friction.'],
- build: choice([['rolling'], ['static'], ['sliding']], 0, 'The cart rolls on wheels: rolling friction.', [null, 'Static friction acts only while it is still.', 'Its wheels roll; nothing slides.']) },
+ build: choice([['static'], ['sliding'], ['rolling']], 2, 'The cart rolls on wheels: rolling friction.', ['Static friction acts only while it is still.', 'Its wheels roll; nothing slides.', null]) },
{ id: 'p-feather', prompt: ['Why does a feather drift back and forth as it falls?'],
- build: choice([['air resistance pushes up against its fall'], ['gravity doesn’t act on feathers'], ['it has no mass']], 0,
- 'A feather has a big surface for its tiny weight, so air resistance nearly balances gravity.', [null, 'Gravity pulls on everything with mass, feathers too.', 'It has a little mass; that’s why it does fall.']) },
+ build: choice([['gravity doesn’t act on feathers'], ['air resistance pushes up against its fall'], ['it has no mass']], 1,
+ 'A feather has a big surface for its tiny weight, so air resistance nearly balances gravity.', ['Gravity pulls on everything with mass, feathers too.', null, 'It has a little mass; that’s why it does fall.']) },
]), done, 'Chapter practice, set 1 of 2') }],
['final2', 'Chapter practice: more forces', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-term', prompt: ['When air resistance equals the force of gravity, a falling object…'],
build: choice([['reaches terminal velocity: it falls at a steady speed'], ['stops in midair'], ['speeds up faster']], 0,
'Balanced forces, no net force: a steady speed called terminal velocity.', [null, 'Balanced forces keep its speed the same; they don’t stop it.', 'With no net force it can’t speed up.']) },
{ id: 'p-like', prompt: ['In magnetic and electric forces, likes ___ and opposites attract.'],
- build: choice([['repel'], ['attract']], 0, 'Like poles and like charges repel.', [null, 'Opposites attract; likes push each other away.']) },
+ build: choice([['attract'], ['repel']], 1, 'Like poles and like charges repel.', ['Opposites attract; likes push each other away.', null]) },
{ id: 'p-cent', prompt: ['What is ', h('b', '', 'centripetal force'), '?'],
- build: choice([['the force that keeps an object moving in a circle; it points toward the center'], ['a force that pushes objects away from the center'], ['the upward push of a fluid']], 0,
- 'Centripetal force always points toward the center of the circular path.', [null, 'It points inward, toward the center.', 'That is the buoyant force.']) },
+ build: choice([['a force that pushes objects away from the center'], ['the upward push of a fluid'], ['the force that keeps an object moving in a circle; it points toward the center']], 2,
+ 'Centripetal force always points toward the center of the circular path.', ['It points inward, toward the center.', 'That is the buoyant force.', null]) },
{ id: 'p-boat', prompt: ['What is the name of the upward force that water exerts on a boat?'],
build: choice([['the buoyant force'], ['centripetal force'], ['friction']], 0, 'Buoyancy: the upward push of a fluid.', [null, 'That keeps things moving in circles.', 'Friction opposes motion; it doesn’t hold boats up.']) },
{ id: 'p-dog', prompt: ['A dog swimming in a lake pushes aside 10 pounds of water. What is the buoyant force on the dog?'],
diff --git a/site/science/ch12/index.html b/site/science/ch12/index.html
index 668faf1..c4c2118 100644
--- a/site/science/ch12/index.html
+++ b/site/science/ch12/index.html
@@ -358,9 +358,9 @@ const BEATS = [
{ id: 'c-shelf', prompt: ['You lift a 15 newton bag 2 meters onto a shelf. How much work do you do?'],
build: blanks([{ parts: ['work = 15 N × 2 m = ', { box: '30' }, ' J'], why: 'Work = force × distance: 15 × 2 = 30 joules.', hint: 'Multiply the force by the distance it moves.' }]) },
{ id: 'c-hall', prompt: ['You carry a basket along a level hall. How much work does your upward push do on it?'],
- build: choice([['none: the basket moves sideways, not up'], ['a lot: the basket is heavy'], ['it depends on how fast you walk']], 0,
+ build: choice([['a lot: the basket is heavy'], ['none: the basket moves sideways, not up'], ['it depends on how fast you walk']], 1,
'Your push is up but the basket moves sideways, so that push does no work on it.',
- [null, 'Heavy or not, it doesn’t move the way you push.', 'Speed changes power, not this: the push and the motion point different ways.']) },
+ ['Heavy or not, it doesn’t move the way you push.', null, 'Speed changes power, not this: the push and the motion point different ways.']) },
{ id: 'c-power', prompt: ['A machine does 60 joules of work in 3 seconds. What is its power?'],
build: blanks([{ parts: ['power = 60 J ÷ 3 s = ', { box: '20' }, ' W'], why: 'Power = work ÷ time: 60 ÷ 3 = 20 watts.', hint: 'Divide the work by the time.' }]) },
], done) }],
@@ -511,15 +511,15 @@ const BEATS = [
clockRun(t => { put(ax, { y: 500 - 30 * Math.abs(Math.sin(t * 1.6)) }); }, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-ramp', prompt: ['Two ramps reach the same truck bed. Which one needs ', h('b', '', 'less force'), ' to push a crate up?'],
- build: choice([['the longer ramp'], ['the shorter ramp'], ['they need the same force']], 0,
+ build: choice([['the shorter ramp'], ['they need the same force'], ['the longer ramp']], 2,
'The longer ramp spreads the same work over more distance, so it needs less force.',
- [null, 'The shorter ramp is steeper: it needs more force.', 'The work is the same; the force is not.']) },
+ ['The shorter ramp is steeper: it needs more force.', 'The work is the same; the force is not.', null]) },
{ id: 'c-axe', prompt: ['An axe blade is which simple machine?'],
build: choice([['a wedge'], ['a screw'], ['a lever']], 0, 'The blade is a wedge: a moving inclined plane.',
[null, 'A screw is an inclined plane wrapped around a post.', 'A lever turns on a fulcrum.']) },
{ id: 'c-screw', prompt: ['A screw is…'],
- build: choice([['an inclined plane wrapped around a post'], ['a wheel with a rope around it'], ['a bar that turns on a fixed point']], 0,
- 'Unwrap a screw’s thread and you get a ramp.', [null, 'That is a pulley.', 'That is a lever.']) },
+ build: choice([['a wheel with a rope around it'], ['an inclined plane wrapped around a post'], ['a bar that turns on a fixed point']], 1,
+ 'Unwrap a screw’s thread and you get a ramp.', ['That is a pulley.', null, 'That is a lever.']) },
], done) }],
['wrap2', 'Summary · Simple machines', (m, D) => {
summary(panel(0), m, [
@@ -655,9 +655,9 @@ const BEATS = [
{ parts: ['your arm lifting a weight'], ans: ['3'], why: 'Your muscle pulls between the elbow (the fulcrum) and the weight: third class.' },
], [['1', '1st class', null, '1'], ['2', '2nd class', null, '2'], ['3', '3rd class', null, '3']], { multi: false, text: true }) },
{ id: 'c-flag', prompt: ['You pull a rope down to raise a flag up a flagpole. What does the pulley at the top do?'],
- build: choice([['it changes the direction of your force'], ['it halves your force'], ['it makes the flag lighter']], 0,
+ build: choice([['it halves your force'], ['it makes the flag lighter'], ['it changes the direction of your force']], 2,
'One fixed pulley turns your downward pull into an upward pull on the flag.',
- [null, 'A single fixed pulley doesn’t change the size of the force.', 'The flag weighs the same; only the direction changes.']) },
+ ['A single fixed pulley doesn’t change the size of the force.', 'The flag weighs the same; only the direction changes.', null]) },
{ id: 'c-faucet', prompt: ['You turn a faucet’s big handle. The small stem inside turns with…'],
build: choice([['a bigger force than your hand'], ['a smaller force than your hand'], ['the same force']], 0,
'Your hand moves far around the big wheel; the small axle moves a little, with a bigger force.',
@@ -730,13 +730,13 @@ const BEATS = [
clockRun(t => {}, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-eff', prompt: ['You do 500 J of work on each ramp. Ramp A loses 100 J as heat; ramp B loses 200 J. Which is more efficient?'],
- build: choice([['ramp A'], ['ramp B'], ['they are the same']], 0,
+ build: choice([['ramp B'], ['they are the same'], ['ramp A']], 2,
'A turns 400 J of your 500 J into useful work; B only 300 J. Less heat, more efficient.',
- [null, 'B loses more to heat, so less of your work is useful.', 'The heat lost is different, so the efficiency is too.']) },
+ ['B loses more to heat, so less of your work is useful.', 'The heat lost is different, so the efficiency is too.', null]) },
{ id: 'c-can', prompt: ['A can opener uses levers, a wheel and axle, and a wedge. It is…'],
- build: choice([['a compound machine'], ['a simple machine'], ['not a machine']], 0,
+ build: choice([['a simple machine'], ['a compound machine'], ['not a machine']], 1,
'Several simple machines working together: a compound machine.',
- [null, 'A simple machine works with one motion; this combines three.', 'It makes work easier, so it is a machine.']) },
+ ['A simple machine works with one motion; this combines three.', null, 'It makes work easier, so it is a machine.']) },
{ id: 'c-pct', prompt: ['A pulley gets 300 J of useful work out of 400 J you put in. How efficient is it?'],
build: blanks([{ parts: ['efficiency = 300 J ÷ 400 J = ', { box: '75' }, ' %'], why: '300 ÷ 400 = 0.75, which is 75%.', hint: 'Divide useful work by the work you do.' }]) },
], done) }],
@@ -760,9 +760,9 @@ const BEATS = [
{ id: 'p-book', prompt: ['A 10 N book falls 0.5 m. How much work does the earth’s downward pull do on it?'],
build: blanks([{ parts: ['work = 10 N × 0.5 m = ', { box: '5' }, ' J'], why: 'Force times distance: 10 × 0.5 = 5 J.', hint: 'Multiply the force by the distance.' }]) },
{ id: 'p-simple', prompt: ['Which of these is ', h('b', '', 'not'), ' a simple machine?'],
- build: choice([['a motor'], ['a lever'], ['a pulley'], ['a wedge']], 0,
+ build: choice([['a lever'], ['a pulley'], ['a wedge'], ['a motor']], 3,
'A motor is made of many parts; the other three are simple machines.',
- [null, 'A lever is one of the six simple machines.', 'A pulley is a simple machine.', 'A wedge is a simple machine.']) },
+ ['A lever is one of the six simple machines.', 'A pulley is a simple machine.', 'A wedge is a simple machine.', null]) },
{ id: 'p-lever', prompt: ['A wheelbarrow carries its load between the wheel and your hands. What class of lever is it?'],
build: choice([['second class'], ['first class'], ['third class']], 0,
'The load is between the fulcrum (the wheel) and the effort: second class.',
@@ -770,19 +770,19 @@ const BEATS = [
]), done, 'Chapter practice, set 1 of 2') }],
['final2', 'Chapter practice: machines and power', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-ful', prompt: ['What is the point a lever turns on called?'],
- build: choice([['the fulcrum'], ['the axle'], ['the load']], 0, 'A lever pivots on its fulcrum.',
- [null, 'An axle belongs to a wheel and axle.', 'The load is what the lever moves.']) },
+ build: choice([['the axle'], ['the fulcrum'], ['the load']], 1, 'A lever pivots on its fulcrum.',
+ ['An axle belongs to a wheel and axle.', null, 'The load is what the lever moves.']) },
{ id: 'p-ramp', prompt: ['How does a ramp make lifting a crate easier?'],
build: choice([['you push with less force over a longer distance'], ['it lowers the work you do to zero'], ['it makes the crate lighter']], 0,
'Same work, less force, more distance.',
[null, 'The work stays about the same.', 'The crate weighs the same.']) },
{ id: 'p-wheel', prompt: ['A wheel and axle can…'],
- build: choice([['multiply force, or multiply distance'], ['only change direction'], ['create energy']], 0,
+ build: choice([['only change direction'], ['create energy'], ['multiply force, or multiply distance']], 2,
'Turn the wheel to get force at the axle, or turn the axle to get distance at the wheel.',
- [null, 'Changing direction is what one fixed pulley does.', 'No machine creates energy.']) },
+ ['Changing direction is what one fixed pulley does.', 'No machine creates energy.', null]) },
{ id: 'p-pulley', prompt: ['A pulley is…'],
- build: choice([['a wheel with a rope around it'], ['a plank on a fulcrum'], ['a slope with a groove']], 0, 'A pulley is a grooved wheel with a rope.',
- [null, 'That is a lever.', 'That is closer to a screw, an inclined plane wrapped around.']) },
+ build: choice([['a plank on a fulcrum'], ['a wheel with a rope around it'], ['a slope with a groove']], 1, 'A pulley is a grooved wheel with a rope.',
+ ['That is a lever.', null, 'That is closer to a screw, an inclined plane wrapped around.']) },
{ id: 'p-power', prompt: ['You do 120 J of work in 4 s. What is your power?'],
build: blanks([{ parts: ['power = 120 J ÷ 4 s = ', { box: '30' }, ' W'], why: 'Power is work divided by time: 120 ÷ 4 = 30 W.', hint: 'Divide the work by the time.' }]) },
]), done, 'Chapter practice, set 2 of 2') }],
diff --git a/site/science/ch13/index.html b/site/science/ch13/index.html
index fa94f1b..0909cad 100644
--- a/site/science/ch13/index.html
+++ b/site/science/ch13/index.html
@@ -427,13 +427,13 @@ const BEATS = [
clockRun(t => { put(sun._rays, { r: t * 8 }); }, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-law', prompt: ['Which sentence is the law of conservation of energy?'],
- build: choice([['Energy is never created or destroyed; it only changes form.'], ['Energy gets used up when things move.'], ['Eating creates new energy in your body.']], 0,
+ build: choice([['Energy gets used up when things move.'], ['Energy is never created or destroyed; it only changes form.'], ['Eating creates new energy in your body.']], 1,
'The amount of energy stays the same; it only changes form or moves to something else.',
- [null, 'It isn’t used up: it changes into other forms, such as heat.', 'Food stores chemical energy that came from sunlight; eating moves it into you.']) },
+ ['It isn’t used up: it changes into other forms, such as heat.', null, 'Food stores chemical energy that came from sunlight; eating moves it into you.']) },
{ id: 'c-golf', prompt: ['A swinging club hits a golf ball. Where does the ball’s energy come from?'],
- build: choice([['the moving club'], ['the ground under the ball'], ['nowhere: it appears at the hit']], 0,
+ build: choice([['the ground under the ball'], ['nowhere: it appears at the hit'], ['the moving club']], 2,
'The club’s energy passes into the ball when they hit.',
- [null, 'The ball sat still on the ground; the club gave it its energy.', 'Energy is never created: it moved from the club into the ball.']) },
+ ['The ball sat still on the ground; the club gave it its energy.', 'Energy is never created: it moved from the club into the ball.', null]) },
{ id: 'c-leaf', prompt: ['A plant’s leaves take in sunlight. The plant stores that energy as…'],
build: choice([['chemical energy'], ['sound energy'], ['nuclear energy']], 0,
'It is stored as chemical energy in the food the plant makes.',
@@ -531,9 +531,9 @@ const BEATS = [
clockRun(t => {}, D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-half', prompt: ['A pen falls from your hand. Halfway down, its energy is…'],
- build: choice([['half potential, half kinetic'], ['all potential'], ['all kinetic']], 0,
+ build: choice([['all potential'], ['half potential, half kinetic'], ['all kinetic']], 1,
'It has fallen half its height: half the potential energy has become kinetic.',
- [null, 'It is moving, so some energy is already kinetic.', 'It is still above the floor, so some energy is still potential.']) },
+ ['It is moving, so some energy is already kinetic.', null, 'It is still above the floor, so some energy is still potential.']) },
{ id: 'c-top', prompt: ['A ball rolls up a hill and stops for a moment at the top of its path. There, its energy is…'],
build: choice([['all potential'], ['all kinetic'], ['gone']], 0,
'It isn’t moving, so it has no kinetic energy: it is all stored in its height.',
@@ -647,9 +647,9 @@ const BEATS = [
clockRun(t => put(cf.flame, { s: 1 + .06 * Math.sin(t * 9) }), D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-ke', prompt: ['A tennis ball and a bowling ball move at the same speed. Which has more kinetic energy?'],
- build: choice([['the bowling ball'], ['the tennis ball'], ['they have the same']], 0,
+ build: choice([['the tennis ball'], ['they have the same'], ['the bowling ball']], 2,
'Same speed, more mass: more kinetic energy.',
- [null, 'The tennis ball has less mass, so less kinetic energy at the same speed.', 'Kinetic energy depends on mass too, not only speed.']) },
+ ['The tennis ball has less mass, so less kinetic energy at the same speed.', 'Kinetic energy depends on mass too, not only speed.', null]) },
{ id: 'c-sort', prompt: ['Is each one moving energy or stored energy?'],
build: grid([
{ parts: ['sound'], ans: ['m'], why: 'Molecules bumping into each other: moving.' },
@@ -678,13 +678,13 @@ const BEATS = [
{ parts: ['kinetic energy'], ans: ['c'], why: 'Kinetic energy is the energy of motion.' },
], [['a', 'stored energy', POT, 'a'], ['b', 'never created or destroyed', WORK, 'b'], ['c', 'the energy of motion', KIN, 'c']], { multi: false, text: true }) },
{ id: 'p-cow', prompt: ['When a cow digests grass, the chemical energy stored in it is released as thermal and kinetic ______.'],
- build: choice([['energy'], ['matter'], ['gravity']], 0,
+ build: choice([['matter'], ['energy'], ['gravity']], 1,
'Digestion releases the grass’s chemical energy as heat and motion: thermal and kinetic energy.',
- [null, 'The grass’s matter stays matter; what changes form is its energy.', 'Gravity is a force, not something released by digestion.']) },
+ ['The grass’s matter stays matter; what changes form is its energy.', null, 'Gravity is a force, not something released by digestion.']) },
{ id: 'p-chem', prompt: ['What is chemical energy?'],
- build: choice([['energy stored in the bonds between atoms'], ['energy stored in an object’s height'], ['the flow of electrons']], 0,
+ build: choice([['energy stored in an object’s height'], ['the flow of electrons'], ['energy stored in the bonds between atoms']], 2,
'Chemical energy is stored in the bonds that hold atoms together, as in food and fuel.',
- [null, 'That is gravitational potential energy.', 'That is electric energy.']) },
+ ['That is gravitational potential energy.', 'That is electric energy.', null]) },
{ id: 'p-pe', prompt: ['Which two things decide how much potential energy a book on a shelf has?'],
build: choice([['its mass and its height'], ['its color and its height'], ['its speed and its temperature']], 0,
'More mass or more height: more potential energy.',
@@ -692,17 +692,17 @@ const BEATS = [
]), done, 'Chapter practice, set 1 of 2') }],
['final2', 'Chapter practice: energy changes form', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-change', prompt: ['Energy is constantly ________ from one form to another.'],
- build: choice([['changing'], ['disappearing'], ['being created']], 0,
+ build: choice([['disappearing'], ['being created'], ['changing']], 2,
'Energy keeps changing form, and the amount stays the same.',
- [null, 'Energy never disappears: it changes form.', 'Energy is never created: it only changes form.']) },
+ ['Energy never disappears: it changes form.', 'Energy is never created: it only changes form.', null]) },
{ id: 'p-bump', prompt: ['Your bumper car hits your friend’s, and hers moves forward. What kind of energy passed to her car?'],
- build: choice([['kinetic energy'], ['potential energy'], ['nuclear energy']], 0,
+ build: choice([['potential energy'], ['kinetic energy'], ['nuclear energy']], 1,
'The energy of motion passed from your car to hers in the collision.',
- [null, 'Potential energy is stored; this energy was moving with your car.', 'Nuclear energy is stored in the nucleus of atoms.']) },
+ ['Potential energy is stored; this energy was moving with your car.', null, 'Nuclear energy is stored in the nucleus of atoms.']) },
{ id: 'p-fall', prompt: ['As a book falls from a high shelf, its potential energy turns into…'],
- build: choice([['kinetic energy'], ['chemical energy'], ['elastic energy']], 0,
+ build: choice([['chemical energy'], ['elastic energy'], ['kinetic energy']], 2,
'Falling, it loses height and gains speed: potential becomes kinetic.',
- [null, 'Chemical energy is stored in bonds; falling doesn’t make it.', 'Elastic energy is stored by stretching or squeezing.']) },
+ ['Chemical energy is stored in bonds; falling doesn’t make it.', 'Elastic energy is stored by stretching or squeezing.', null]) },
{ id: 'p-ke', prompt: ['Which has the most kinetic energy?'],
build: choice([['a bowling ball rolling fast'], ['a bowling ball rolling slowly'], ['a tennis ball rolling slowly']], 0,
'The most mass and the most speed: the most kinetic energy.',
diff --git a/site/science/ch14/index.html b/site/science/ch14/index.html
index 27169ab..cb31117 100644
--- a/site/science/ch14/index.html
+++ b/site/science/ch14/index.html
@@ -294,9 +294,9 @@ const BEATS = [
'Faster molecules, higher temperature: temperature is about their motion.',
[null, 'Potential energy is stored energy; temperature is about motion.', 'Chemical energy is stored in bonds; temperature is about how fast molecules move.']) },
{ id: 'c-therm', prompt: ['A thermometer’s liquid rises when it is heated, because the liquid…'],
- build: choice([['expands'], ['evaporates'], ['gets heavier']], 0,
+ build: choice([['evaporates'], ['expands'], ['gets heavier']], 1,
'Its molecules speed up and spread apart, so it takes up more room and climbs the tube.',
- [null, 'It stays in the tube as a liquid; it expands.', 'Its mass doesn’t change; it takes up more room.']) },
+ ['It stays in the tube as a liquid; it expands.', null, 'Its mass doesn’t change; it takes up more room.']) },
{ id: 'c-ctok', prompt: ['Water freezes at 0 °C. What is that in kelvin?'],
build: blanks([{ parts: ['0 °C = ', { box: '273.15' }, ' K'], test: ([v]) => Math.abs(v - 273.15) < .01 || v === 273,
why: 'Add 273.15 to the Celsius temperature: 0 + 273.15 = 273.15 K.', hint: 'To get kelvin from Celsius, add 273.15.' }]) },
@@ -409,17 +409,17 @@ const BEATS = [
[[1120, 470, 70, 'cup'], [1340, 470, 190, 'bathtub']].forEach(([x, y, w, s]) => { mk('rect', { x: x - w / 2, y: y - 70, width: w, height: 70, fill: WATER, opacity: .55 }, p); path(p, `M${x - w / 2} ${y - 90}V${y}H${x + w / 2}V${y - 90}`, { stroke: ENAMEL, 'stroke-width': 8, fill: 'none' }); phLabel(p, s, { x, y: y + 40, size: 26, fill: COL.dim }); });
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-tub', prompt: ['A cup and a bathtub of water are both at 40 °C. Which has more thermal energy?'],
- build: choice([['the bathtub'], ['the cup'], ['they have the same']], 0,
+ build: choice([['the cup'], ['they have the same'], ['the bathtub']], 2,
'More molecules, more total energy: the bathtub.',
- [null, 'Same temperature, but the cup has far fewer molecules.', 'Their temperatures match, but thermal energy is a total: the bathtub has far more molecules.']) },
+ ['Same temperature, but the cup has far fewer molecules.', 'Their temperatures match, but thermal energy is a total: the bathtub has far more molecules.', null]) },
{ id: 'c-dir', prompt: ['You hold an ice cube. Which way does heat flow?'],
- build: choice([['from your hand to the ice'], ['from the ice to your hand'], ['neither way']], 0,
+ build: choice([['from the ice to your hand'], ['from your hand to the ice'], ['neither way']], 1,
'Heat goes from warmer to cooler, so energy leaves your hand and melts the ice.',
- [null, 'Heat goes from warmer to cooler; your hand is the warmer one.', 'They are at different temperatures, so heat flows until they match.']) },
+ ['Heat goes from warmer to cooler; your hand is the warmer one.', null, 'They are at different temperatures, so heat flows until they match.']) },
{ id: 'c-heatdef', prompt: ['Heat is…'],
- build: choice([['thermal energy moving from warmer to cooler'], ['the average kinetic energy of molecules'], ['the total number of molecules']], 0,
+ build: choice([['the average kinetic energy of molecules'], ['the total number of molecules'], ['thermal energy moving from warmer to cooler']], 2,
'Heat is thermal energy on the move, from a warmer thing to a cooler one.',
- [null, 'That is temperature.', 'Counting molecules isn’t heat; heat is energy moving.']) },
+ ['That is temperature.', 'Counting molecules isn’t heat; heat is energy moving.', null]) },
], done) }],
['wrap2', 'Summary · Thermal energy and heat', (m, D) => {
summary(panel(0), m, [
@@ -567,23 +567,23 @@ const BEATS = [
/* ---------- chapter practice and finish ---------- */
['final1', 'Chapter practice: temperature and heat', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-tt', prompt: ['Which statement is correct?'],
- build: choice([['Temperature is the average kinetic energy of the molecules; thermal energy is the total energy of all of them.'],
- ['Temperature is the total energy of all the molecules; thermal energy is their average kinetic energy.'],
- ['Temperature and thermal energy are the same thing.']], 0,
+ build: choice([['Temperature is the total energy of all the molecules; thermal energy is their average kinetic energy.'],
+ ['Temperature and thermal energy are the same thing.'],
+ ['Temperature is the average kinetic energy of the molecules; thermal energy is the total energy of all of them.']], 2,
'Temperature is an average; thermal energy is a total.',
- [null, 'Swapped: temperature is the average, thermal energy the total.', 'A bathtub and a cup at the same temperature hold very different amounts of thermal energy.']) },
+ ['Swapped: temperature is the average, thermal energy the total.', 'A bathtub and a cup at the same temperature hold very different amounts of thermal energy.', null]) },
{ id: 'p-juice', prompt: ['A large and a small glass of juice are both at room temperature. Which has more thermal energy?'],
- build: choice([['the large glass'], ['the small glass'], ['they have the same']], 0,
+ build: choice([['the small glass'], ['the large glass'], ['they have the same']], 1,
'More molecules, more thermal energy: more kinetic and potential energy in total.',
- [null, 'The small glass has fewer molecules, so less in total.', 'Same temperature, but the large glass has more molecules.']) },
+ ['The small glass has fewer molecules, so less in total.', null, 'Same temperature, but the large glass has more molecules.']) },
{ id: 'p-conv', prompt: ['______ is the transfer of heat through the movement of a fluid, such as water or air.'],
build: choice([['Convection'], ['Conduction'], ['Radiation']], 0,
'Convection: the fluid itself moves and carries the heat.',
[null, 'Conduction needs direct contact; nothing flows.', 'Radiation travels as electromagnetic rays, with no fluid needed.']) },
{ id: 'p-micro', prompt: ['What kind of heat transfer happens in a microwave oven?'],
- build: choice([['radiation'], ['conduction'], ['convection']], 0,
+ build: choice([['conduction'], ['convection'], ['radiation']], 2,
'Microwaves are electromagnetic waves: radiation.',
- [null, 'Nothing hot touches the food; the oven sends electromagnetic waves.', 'The air doesn’t carry it; microwaves are electromagnetic waves.']) },
+ ['Nothing hot touches the food; the oven sends electromagnetic waves.', 'The air doesn’t carry it; microwaves are electromagnetic waves.', null]) },
]), done, 'Chapter practice, set 1 of 2') }],
['final2', 'Chapter practice: how heat moves', () => { PRACTICE = panel(0); }, { ask: done => quiz(SCREEN, withPics([
{ id: 'p-pop', prompt: ['You lick a Popsicle.'],
@@ -597,9 +597,9 @@ const BEATS = [
{ parts: ['25 °C = ', { box: '298.15' }, ' K'], why: '25 + 273.15 = 298.15 K.', hint: 'Add 273.15 to 25.' },
]) },
{ id: 'p-flow', prompt: ['Heat always moves from a ______ object to a ______ object.'],
- build: choice([['warmer, cooler'], ['cooler, warmer'], ['bigger, smaller']], 0,
+ build: choice([['cooler, warmer'], ['warmer, cooler'], ['bigger, smaller']], 1,
'From warmer to cooler, until the temperatures match.',
- [null, 'Backwards: heat never flows from cooler to warmer on its own.', 'Size doesn’t decide it; temperature does.']) },
+ ['Backwards: heat never flows from cooler to warmer on its own.', null, 'Size doesn’t decide it; temperature does.']) },
{ id: 'p-exp', prompt: ['What happens to most objects?'],
build: grid([
{ parts: ['When an object heats up, it'], ans: ['e'], why: 'Its molecules speed up and spread apart: it expands.' },
diff --git a/site/science/ch17/index.html b/site/science/ch17/index.html
index efdaf03..c868f27 100644
--- a/site/science/ch17/index.html
+++ b/site/science/ch17/index.html
@@ -476,13 +476,13 @@ const BEATS = [
clockRun(t => f.set(t, { a: 6.5 * t, el: 100 * t }), D);
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-turb', prompt: ['What does the generator add to a spinning turbine?'],
- build: choice([['it turns the rotation into electricity'], ['it spins the turbine'], ['it burns the fuel']], 0,
+ build: choice([['it spins the turbine'], ['it burns the fuel'], ['it turns the rotation into electricity']], 2,
'The turbine turns; the generator turns that rotation into electricity.',
- [null, 'Steam, water or wind spins the turbine.', 'Burning happens at the boiler.']) },
+ ['Steam, water or wind spins the turbine.', 'Burning happens at the boiler.', null]) },
{ id: 'c-fossil', prompt: ['In a coal power plant, what boils the water?'],
- build: choice([['thermal energy released by burning the coal'], ['the generator'], ['the turbine']], 0,
+ build: choice([['the generator'], ['thermal energy released by burning the coal'], ['the turbine']], 1,
'Chemical energy becomes heat, and the heat boils the water.',
- [null, 'The generator makes electricity.', 'The turbine is pushed by the steam.']) },
+ ['The generator makes electricity.', null, 'The turbine is pushed by the steam.']) },
{ id: 'c-nuc', prompt: ['What is a problem with nuclear power?'],
build: choice([['it leaves toxic waste that is hard to store'], ['it gives off lots of smoke'], ['it burns fossil fuels']], 0,
'Nuclear waste is very toxic and hard to store safely.',
@@ -702,9 +702,9 @@ const BEATS = [
{ parts: ['uranium'], ans: ['n'], why: 'Uranium is mined and cannot be replaced.' },
], [['r', 'renewable', COL.good, 'r'], ['n', 'nonrenewable', COL.task, 'n']], { multi: false, text: true }) },
{ id: 'c-chain', prompt: ['In a hydroelectric dam, the energy changes in which order?'],
- build: choice([['potential energy of high water, then kinetic energy of moving water, then electrical energy'], ['electrical, then kinetic, then potential'], ['kinetic, then potential, then heat']], 0,
+ build: choice([['electrical, then kinetic, then potential'], ['kinetic, then potential, then heat'], ['potential energy of high water, then kinetic energy of moving water, then electrical energy']], 2,
'Stored high water falls, speeds up, and spins the turbine and generator.',
- [null, 'That is backwards.', 'The stored high water comes first.']) },
+ ['That is backwards.', 'The stored high water comes first.', null]) },
{ id: 'c-hydro', prompt: ['Click the water that has the most gravitational potential energy.'],
build: pickEls(S.q2, 0,
'The lake is held high up behind the dam.',
@@ -902,9 +902,9 @@ const BEATS = [
];
}, { ask: done => quiz(Q_CARD, [
{ id: 'c-solar', prompt: ['Which collector turns sunlight directly into electricity?'],
- build: choice([['a photovoltaic collector'], ['a thermal collector'], ['neither']], 0,
+ build: choice([['a thermal collector'], ['a photovoltaic collector'], ['neither']], 1,
'Photovoltaic panels make electricity with no turbine.',
- [null, 'Thermal collectors heat water first.', 'Panels do it, with no turbine.']) },
+ ['Thermal collectors heat water first.', null, 'Panels do it, with no turbine.']) },
{ id: 'c-geo', prompt: ['Click the part that sends cooled water back underground.'],
build: pickEls(S.q3, 0,
'The injection well returns the water to the hot rock.',
@@ -945,9 +945,9 @@ const BEATS = [
{ parts: ['they make toxic nuclear waste'], ans: ['n'], why: 'That is nuclear power.' },
], [['y', 'yes', COL.good, 'y'], ['n', 'no', COL.bad, 'n']], { multi: false, text: true }) },
{ id: 'p-nuc', prompt: ['What is a problem with using nuclear power?'],
- build: choice([['its waste is very toxic and hard to dispose of and store'], ['its smoke pollutes the air'], ['its fuel is oil']], 0,
+ build: choice([['its smoke pollutes the air'], ['its fuel is oil'], ['its waste is very toxic and hard to dispose of and store']], 2,
'Nuclear waste is very toxic, and storing it safely is hard.',
- [null, 'It gives off very little air pollution.', 'Its fuel is uranium, not oil.']) },
+ ['It gives off very little air pollution.', 'Its fuel is uranium, not oil.', null]) },
{ id: 'p-turb', prompt: ['What is a turbine?'],
build: choice([['a battery that stores energy'], ['a propeller-like piece that turns a metal shaft in a generator'], ['a wire that carries current']], 1,
'Water, steam or wind push its blades, and it turns the shaft.',
diff --git a/site/science/ch19/index.html b/site/science/ch19/index.html
index 0a79a69..cc96413 100644
--- a/site/science/ch19/index.html
+++ b/site/science/ch19/index.html
@@ -825,9 +825,9 @@ const BEATS = [
pen(p, 'this week: the moon is here', { x: 600, y: 300, size: 30, anchor: 'middle', o: 1 });
}, { ask: done => quiz({ x: 880, y: 140, w: 680, cls: 'side' }, [{
id: 'c-tide', prompt: ['Sun, Earth and moon are lined up like this (a full moon). What kind of tides will we get?'],
- build: choice([['Spring tides: extra high and extra low'], ['Neap tides: smaller than usual'], ['No tides at all']], 0,
+ build: choice([['Neap tides: smaller than usual'], ['Spring tides: extra high and extra low'], ['No tides at all']], 1,
'Lined up, the sun and moon pull along the same line, so their effects add up, at full moon as well as at new moon.',
- [null, 'Neap tides come at first and last quarter, when the pulls are at right angles.', 'The moon still pulls on the oceans, so there are always tides.']),
+ ['Neap tides come at first and last quarter, when the pulls are at right angles.', null, 'The moon still pulls on the oceans, so there are always tides.']),
}], done) }],
['wrap', 'Summary', (m, D) => {
const p = panel(0); spaceBg(p, { seed: 60, o: .7 });
@@ -854,15 +854,15 @@ const BEATS = [
/* ---------- practice ---------- */
const FINAL1 = [
{ id: 'p-axis', prompt: ['What is the imaginary line through the North and South Poles that Earth spins around?'],
- build: choice([['its axis'], ['the equator'], ['its orbit'], ['magnetic north']], 0, 'Earth rotates around its axis, once about every 24 hours.',
- [null, 'The equator runs around the middle of Earth, halfway between the poles.', 'The orbit is the path Earth follows around the sun.', 'Magnetic north is where a compass points, not a line Earth spins around.']) },
+ build: choice([['the equator'], ['its orbit'], ['its axis'], ['magnetic north']], 2, 'Earth rotates around its axis, once about every 24 hours.',
+ ['The equator runs around the middle of Earth, halfway between the poles.', 'The orbit is the path Earth follows around the sun.', null, 'Magnetic north is where a compass points, not a line Earth spins around.']) },
{ id: 'p-year', prompt: ['What motion does Earth complete once every year?'],
- build: choice([['one revolution around the sun'], ['one rotation on its axis'], ['one wobble of its tilt']], 0, 'One trip around the sun takes 365¼ days: a year.',
- [null, 'One rotation takes about a day, not a year.', "Earth's axis doesn't wobble from season to season; it keeps pointing the same way."]) },
+ build: choice([['one rotation on its axis'], ['one revolution around the sun'], ['one wobble of its tilt']], 1, 'One trip around the sun takes 365¼ days: a year.',
+ ['One rotation takes about a day, not a year.', null, "Earth's axis doesn't wobble from season to season; it keeps pointing the same way."]) },
{ id: 'p-summer', prompt: ['Why is it summer in the northern hemisphere in June?'],
- build: choice([['The north leans toward the sun, so sunlight is higher and days are longer.'], ['Earth is closest to the sun in June.'], ['The sun gives off more light in June.']], 0,
+ build: choice([['Earth is closest to the sun in June.'], ['The sun gives off more light in June.'], ['The north leans toward the sun, so sunlight is higher and days are longer.']], 2,
'Higher, more direct sunlight for more hours a day warms the north.',
- [null, 'Earth is actually farthest from the sun in early July, and closest in January.', 'The sun shines about the same all year; what changes is how the light reaches us.']) },
+ ['Earth is actually farthest from the sun in early July, and closest in January.', 'The sun shines about the same all year; what changes is how the light reaches us.', null]) },
{ id: 'p-tilt', prompt: ['If Earth were tilted more than 23.44°, how would the seasons change?'],
build: choice([['They would be more extreme.'], ['They would be milder.'], ['They would stay the same.']], 0,
'Summer sunlight would be even more direct and days even longer; winters would be darker and colder.',
@@ -877,21 +877,21 @@ const FINAL1 = [
];
const FINAL2 = [
{ id: 'p-spin', prompt: ['The moon takes 27.3 days to orbit Earth. How long does it take to spin once on its axis?'],
- build: choice([['27.3 days'], ['1 day'], ['29.5 days'], ["It doesn't spin."]], 0, 'The same time as one orbit, which is why one face always points at us.',
- [null, 'That is how long Earth takes to spin, not the moon.', '29.5 days is the cycle of phases, not one spin.', 'If it never spun, we would see all of its sides as it orbited.']) },
+ build: choice([['1 day'], ['29.5 days'], ["It doesn't spin."], ['27.3 days']], 3, 'The same time as one orbit, which is why one face always points at us.',
+ ['That is how long Earth takes to spin, not the moon.', '29.5 days is the cycle of phases, not one spin.', 'If it never spun, we would see all of its sides as it orbited.', null]) },
{ id: 'p-wax', prompt: ['Each night the lit part of the moon looks bigger. The moon is …'],
- build: choice([['waxing'], ['waning'], ['in a lunar eclipse']], 0, 'Waxing means growing: from new moon to full.',
- [null, 'Waning means shrinking, from full back to new.', 'An eclipse lasts a few hours, not night after night.']) },
+ build: choice([['waning'], ['in a lunar eclipse'], ['waxing']], 2, 'Waxing means growing: from new moon to full.',
+ ['Waning means shrinking, from full back to new.', 'An eclipse lasts a few hours, not night after night.', null]) },
{ id: 'p-solar', prompt: ['During a solar eclipse, where is the moon?'],
- build: choice([['between the sun and Earth'], ["in Earth's shadow"], ['at right angles to the sun']], 0, 'The moon blocks the sun and its shadow falls on Earth.',
- [null, "That is a lunar eclipse: Earth's shadow on the moon.", 'At right angles we see a quarter moon, not an eclipse.']) },
+ build: choice([["in Earth's shadow"], ['between the sun and Earth'], ['at right angles to the sun']], 1, 'The moon blocks the sun and its shadow falls on Earth.',
+ ["That is a lunar eclipse: Earth's shadow on the moon.", null, 'At right angles we see a quarter moon, not an eclipse.']) },
{ id: 'p-tides', prompt: ['How does the moon affect the water on Earth?'],
build: choice([["Its gravity pulls the oceans into two bulges, making high and low tides."], ['Its light warms the water so it rises.'], ['It only affects lakes, not oceans.']], 0,
'One bulge faces the moon, the other is on the far side; Earth turns under both.',
[null, "Moonlight is only reflected sunlight and far too weak; it's gravity that raises the tides.", 'Gravity pulls on all water, but the effect is easiest to see on the huge oceans.']) },
{ id: 'p-count', prompt: ['How many high tides do most beaches get each day?'],
- build: choice([['2'], ['1'], ['4']], 0, 'Earth turns under two bulges a day: two highs and two lows.',
- [null, 'There are two bulges, one facing the moon and one on the far side.', 'Four is the total of highs and lows together: two of each.']) },
+ build: choice([['1'], ['4'], ['2']], 2, 'Earth turns under two bulges a day: two highs and two lows.',
+ ['There are two bulges, one facing the moon and one on the far side.', 'Four is the total of highs and lows together: two of each.', null]) },
];
document.fonts.load('30px "Patrick Hand"').then(boot);
</script>
diff --git a/site/science/index.html b/site/science/index.html
index 858731d..1cadf9c 100644
--- a/site/science/index.html
+++ b/site/science/index.html
@@ -45,7 +45,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Motion <i>&amp;</i> Forces</strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Physics</i></strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/shooting-an-elephant/ch01/index.html b/site/shooting-an-elephant/ch01/index.html
index 29fb9a2..6cb7c15 100644
--- a/site/shooting-an-elephant/ch01/index.html
+++ b/site/shooting-an-elephant/ch01/index.html
@@ -373,7 +373,7 @@ function scope(p, fill, { small = false } = {}) {
const LIVE = {};
function fireAsk(n, next, { small = false, head } = {}) {
return done => {
- const i = P.i, stage = document.getElementById('stage');
+ const i = P.i, gen = P.gen, stage = document.getElementById('stage'); // gen: this start of the beat (a replay is another)
let fired = 0, ox = 0, oy = 0, tx = 0, ty = 0, alive = true;
const hint = mk('text', { x: 800, y: 870, 'text-anchor': 'middle', 'font-family': SER, 'font-style': 'italic', 'font-size': 34, fill: CREAM, opacity: 0 }, stage);
hint.textContent = n > 1 ? `click to fire · ${n} shots` : 'click to fire';
@@ -396,7 +396,7 @@ function fireAsk(n, next, { small = false, head } = {}) {
tx = (room[0][0] + room[0][1]) / 2 - mx * (room[0][1] - room[0][0]) / 2; ty = (room[1][0] + room[1][1]) / 2 - my * (room[1][1] - room[1][0]) / 2;
};
const fire = () => {
- if (!alive || P.i !== i || !P.waiting) return;
+ if (!alive || P.gen !== gen || !P.waiting) return;
fired++;
const a = new Audio(shotSnd); a.volume = Math.min(1, +($('volume')?.value ?? 1)); a.play().catch(() => {});
flash.animate([{ opacity: .8 }, { opacity: 0 }], { duration: 260, easing: 'ease-out' });
@@ -411,14 +411,14 @@ function fireAsk(n, next, { small = false, head } = {}) {
}
}
if (window.CURRENT_SCOPE) window.CURRENT_SCOPE.animate([{ transform: `translate(${ox}px,${oy - 40}px)` }, { transform: `translate(${ox}px,${oy}px)` }], { duration: 220 });
- if (fired >= n) { LIVE[next] = true; cleanup(); setTimeout(() => { if (P.i === i) done(); }, small ? 250 : 500); }
+ if (fired >= n) { LIVE[next] = true; cleanup(); setTimeout(() => { if (P.gen === gen) done(); }, small ? 250 : 500); }
};
- const key = e => { if ((e.key === ' ' || e.key === 'Enter') && P.waiting && P.i === i) { e.preventDefault(); e.stopPropagation(); fire(); } };
+ const key = e => { if ((e.key === ' ' || e.key === 'Enter') && P.waiting && P.gen === gen) { e.preventDefault(); e.stopPropagation(); fire(); } };
const cleanup = () => { alive = false; stage.style.cursor = ''; stage.removeEventListener('click', fire); removeEventListener('pointermove', move); removeEventListener('keydown', key, true); hint.remove(); setTimeout(() => flash.remove(), 400); };
stage.addEventListener('click', fire); addEventListener('pointermove', move); addEventListener('keydown', key, true);
const tick = () => {
if (!alive) return;
- if (P.i !== i) { cleanup(); return; } // a seek away
+ if (P.gen !== gen) { cleanup(); return; } // a seek away, or the beat replayed
stage.style.cursor = P.waiting ? 'none' : ''; // while he aims, the cross-hairs are the cursor
if (P.waiting) {
hint.setAttribute('opacity', .9);