An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat(math): add measurement conversions chapter
yzrdeba1409bbc5
diff --git a/site/index.html b/site/index.htmlindex 777f4b7..a436e0d 100644--- a/site/index.html+++ b/site/index.html@@ -23,8 +23,8 @@<a class="book-hotspot algebra-book" data-book="elementary-algebra" href="elementary-algebra/" aria-label="Open Elementary Algebra, 68 narrated chapters"><span class="book-caption"><strong>Elementary Algebra <span aria-hidden="true">↗</span></strong><small>68 narrated chapters</small></span></a>- <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 17 narrated chapters">- <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>17 narrated chapters</small></span>+ <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 18 narrated chapters">+ <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>18 narrated chapters</small></span></a><span class="physics-pending">Physics · Coming soon</span></section>diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.jsindex 46fbf45..77205ae 100644--- a/site/lib/bookshelf.js+++ b/site/lib/bookshelf.js@@ -17,7 +17,7 @@const books = [{ id: 'elementary-algebra', key: 'progress', chapterBase: 'elementary-algebra/', chapters: 68 },{ id: 'math-notebook', key: 'animebook:progress:' + new URL('math-notebook/', location.href).pathname,- chapterBase: 'math-notebook/', chapters: 17 },+ chapterBase: 'math-notebook/', chapters: 18 },];for (const book of books) {const cover = document.querySelector(`[data-book="${book.id}"]`);diff --git a/site/math-notebook/ch17/index.html b/site/math-notebook/ch17/index.htmlindex a50b734..6f9c5b8 100644--- a/site/math-notebook/ch17/index.html+++ b/site/math-notebook/ch17/index.html@@ -2,7 +2,7 @@<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Proportions — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.band .prompt{font-size:27px}.side .keys{font-size:19px}.screen .blanks .bline{gap:12px}.screen .blanks .box{width:8ch!important}.screen .blanks .why{font-size:22px}.screen .blanks .bline svg tspan{font-style:normal}</style></head><body><script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>'use strict';-const CHAPTER={number:17,title:'Proportions',minutes:12,language:'en'};+const CHAPTER={number:17,title:'Proportions',minutes:12,language:'en', next: '../ch18/' };// Ch16 entrances; blue = output/concentrate, coral = input/water, amber = focus.const prText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};const prMath=(p,s,x,y,t=0,size=52,col=COL.chalk)=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor:'middle',o:0});show(e,t);return e;};diff --git a/site/math-notebook/ch18/audio/en/capacity.mp3 b/site/math-notebook/ch18/audio/en/capacity.mp3new file mode 100644index 0000000..0b5e8d5Binary files /dev/null and b/site/math-notebook/ch18/audio/en/capacity.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/chain.mp3 b/site/math-notebook/ch18/audio/en/chain.mp3new file mode 100644index 0000000..0f917caBinary files /dev/null and b/site/math-notebook/ch18/audio/en/chain.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/chainpints.mp3 b/site/math-notebook/ch18/audio/en/chainpints.mp3new file mode 100644index 0000000..59d3d0eBinary files /dev/null and b/site/math-notebook/ch18/audio/en/chainpints.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/crosscapacity.mp3 b/site/math-notebook/ch18/audio/en/crosscapacity.mp3new file mode 100644index 0000000..8e7b327Binary files /dev/null and b/site/math-notebook/ch18/audio/en/crosscapacity.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/crosslength.mp3 b/site/math-notebook/ch18/audio/en/crosslength.mp3new file mode 100644index 0000000..0df06d6Binary files /dev/null and b/site/math-notebook/ch18/audio/en/crosslength.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/crossmass.mp3 b/site/math-notebook/ch18/audio/en/crossmass.mp3new file mode 100644index 0000000..5fb2f1aBinary files /dev/null and b/site/math-notebook/ch18/audio/en/crossmass.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/final1.mp3 b/site/math-notebook/ch18/audio/en/final1.mp3new file mode 100644index 0000000..0f83759Binary files /dev/null and b/site/math-notebook/ch18/audio/en/final1.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/final2.mp3 b/site/math-notebook/ch18/audio/en/final2.mp3new file mode 100644index 0000000..4d53bbdBinary files /dev/null and b/site/math-notebook/ch18/audio/en/final2.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/final3.mp3 b/site/math-notebook/ch18/audio/en/final3.mp3new file mode 100644index 0000000..7bbbacfBinary files /dev/null and b/site/math-notebook/ch18/audio/en/final3.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/finish.mp3 b/site/math-notebook/ch18/audio/en/finish.mp3new file mode 100644index 0000000..5bd1e7bBinary files /dev/null and b/site/math-notebook/ch18/audio/en/finish.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/intro.mp3 b/site/math-notebook/ch18/audio/en/intro.mp3new file mode 100644index 0000000..8d369e4Binary files /dev/null and b/site/math-notebook/ch18/audio/en/intro.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/larger.mp3 b/site/math-notebook/ch18/audio/en/larger.mp3new file mode 100644index 0000000..2a76033Binary files /dev/null and b/site/math-notebook/ch18/audio/en/larger.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/length.mp3 b/site/math-notebook/ch18/audio/en/length.mp3new file mode 100644index 0000000..694cfbdBinary files /dev/null and b/site/math-notebook/ch18/audio/en/length.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/litres.mp3 b/site/math-notebook/ch18/audio/en/litres.mp3new file mode 100644index 0000000..e1fb03cBinary files /dev/null and b/site/math-notebook/ch18/audio/en/litres.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/metric.mp3 b/site/math-notebook/ch18/audio/en/metric.mp3new file mode 100644index 0000000..784e868Binary files /dev/null and b/site/math-notebook/ch18/audio/en/metric.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/metricchain.mp3 b/site/math-notebook/ch18/audio/en/metricchain.mp3new file mode 100644index 0000000..fa71cf3Binary files /dev/null and b/site/math-notebook/ch18/audio/en/metricchain.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/metricmass.mp3 b/site/math-notebook/ch18/audio/en/metricmass.mp3new file mode 100644index 0000000..b257a7fBinary files /dev/null and b/site/math-notebook/ch18/audio/en/metricmass.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/proportion.mp3 b/site/math-notebook/ch18/audio/en/proportion.mp3new file mode 100644index 0000000..daea1a5Binary files /dev/null and b/site/math-notebook/ch18/audio/en/proportion.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/q1.mp3 b/site/math-notebook/ch18/audio/en/q1.mp3new file mode 100644index 0000000..59374f4Binary files /dev/null and b/site/math-notebook/ch18/audio/en/q1.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/q2.mp3 b/site/math-notebook/ch18/audio/en/q2.mp3new file mode 100644index 0000000..716802bBinary files /dev/null and b/site/math-notebook/ch18/audio/en/q2.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/q3.mp3 b/site/math-notebook/ch18/audio/en/q3.mp3new file mode 100644index 0000000..0a2f93aBinary files /dev/null and b/site/math-notebook/ch18/audio/en/q3.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/timings.js b/site/math-notebook/ch18/audio/en/timings.jsnew file mode 100644index 0000000..a7b4831--- /dev/null+++ b/site/math-notebook/ch18/audio/en/timings.js@@ -0,0 +1,787 @@+window.TIMINGS = {+ "intro": {+ "dur": 19.776,+ "marks": {+ "sub": 7.839+ },+ "cues": [+ [+ 0.104,+ "Chapter eighteen."+ ],+ [+ 1.432,+ "Converting measurements."+ ],+ [+ 3.008,+ "A desk does not grow when we measure it in inches instead of feet."+ ],+ [+ 7.839,+ "The amount stays the same."+ ],+ [+ 9.609,+ "The unit changes, and the number changes to match."+ ],+ [+ 13.021,+ "We will connect familiar units, use proportions, and keep exact conversions separate from rounded ones."+ ]+ ]+ },+ "length": {+ "dur": 25.92,+ "marks": {+ "inches": 4.844,+ "yards": 15.326+ },+ "cues": [+ [+ 0.117,+ "Here is a tape two feet long."+ ],+ [+ 2.409,+ "Each large section measures one foot."+ ],+ [+ 4.844,+ "Split each foot into twelve equal inches."+ ],+ [+ 8.385,+ "There are twenty four smaller units covering exactly the same length."+ ],+ [+ 12.826,+ "Twelve inches equal one foot."+ ],+ [+ 15.326,+ "Three feet equal one yard, and one thousand seven hundred sixty yards equal one mile."+ ],+ [+ 21.393,+ "These are U S customary length units."+ ],+ [+ 23.971,+ "Keep the names with the numbers."+ ]+ ]+ },+ "larger": {+ "dur": 23.4,+ "marks": {+ "feet": 4.284,+ "yard": 8.711+ },+ "cues": [+ [+ 0.104,+ "Now start with thirty six inches."+ ],+ [+ 2.565,+ "The tape stays fixed."+ ],+ [+ 4.284,+ "Group every twelve inches into one foot."+ ],+ [+ 7.161,+ "We get three feet."+ ],+ [+ 8.711,+ "Group those three feet into one yard."+ ],+ [+ 11.615,+ "We get one yard."+ ],+ [+ 12.852,+ "A larger unit needs a smaller count for the same length."+ ],+ [+ 16.615,+ "A smaller unit needs a larger count."+ ],+ [+ 19.453,+ "That is a useful check on your answer, even before you calculate."+ ]+ ]+ },+ "weight": {+ "dur": 28.872,+ "marks": {+ "gather": 5.117,+ "ton": 12.331+ },+ "cues": [+ [+ 0.091,+ "Each counter stands for one ounce of mass."+ ],+ [+ 3.346,+ "There are sixteen counters."+ ],+ [+ 5.117,+ "Gather them into a single pound group."+ ],+ [+ 7.656,+ "Nothing is added or removed."+ ],+ [+ 9.688,+ "Sixteen ounces equal one pound."+ ],+ [+ 12.331,+ "Two thousand pounds equal one U S short ton."+ ],+ [+ 16.302,+ "Other tons have different definitions, so the name matters."+ ],+ [+ 20.026,+ "In everyday speech people often say weight."+ ],+ [+ 23.008,+ "Grams and kilograms are units of mass, and that is the quantity we convert here."+ ]+ ]+ },+ "capacity": {+ "dur": 30.72,+ "marks": {+ "chain": 6.901,+ "different": 21.589+ },+ "cues": [+ [+ 0.091,+ "Capacity tells how much liquid a container holds."+ ],+ [+ 3.698,+ "Here one cup contains eight fluid ounce cells."+ ],+ [+ 6.901,+ "For U S liquid measures, three teaspoons make a tablespoon, and two tablespoons make a fluid ounce."+ ],+ [+ 14.518,+ "Eight fluid ounces make a cup, two cups make a pint, two pints make a quart, and four quarts make a gallon."+ ],+ [+ 21.589,+ "A fluid ounce measures liquid volume."+ ],+ [+ 24.427,+ "An ounce without fluid measures mass."+ ],+ [+ 26.992,+ "Those are different quantities, even though their names sound alike."+ ]+ ]+ },+ "q1": {+ "dur": 7.032,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.12,+ "Choose the inch tape that matches two feet."+ ],+ [+ 3.971,+ "All three choices use the same length scale."+ ]+ ]+ },+ "proportion": {+ "dur": 32.496,+ "marks": {+ "pair": 5.846,+ "ratio": 12.747,+ "solve": 21.523+ },+ "cues": [+ [+ 0.104,+ "How many quarts equal fourteen pints?"+ ],+ [+ 3.021,+ "Each drawn cell stands for one pint."+ ],+ [+ 5.846,+ "Pair the fourteen cells, because two pints make one quart."+ ],+ [+ 9.922,+ "Seven pairs mean seven quarts."+ ],+ [+ 12.747,+ "The proportion keeps quarts above pints on both sides."+ ],+ [+ 16.419,+ "X quarts over fourteen pints equals one quart over two pints."+ ],+ [+ 21.523,+ "Cross products give two times x equals fourteen."+ ],+ [+ 25.482,+ "Divide by two: x equals seven."+ ],+ [+ 28.424,+ "Units in matching positions keep the proportion meaningful."+ ]+ ]+ },+ "chain": {+ "dur": 29.016,+ "marks": {+ "cups": 8.945,+ "step": 23.607+ },+ "cues": [+ [+ 0.104,+ "Convert forty eight fluid ounces to pints."+ ],+ [+ 3.203,+ "Use a route through cups."+ ],+ [+ 4.987,+ "Every small square represents one fluid ounce."+ ],+ [+ 8.945,+ "Gather the original forty eight squares into groups of eight."+ ],+ [+ 13.086,+ "Eight fluid ounces make one cup, so there are six cups."+ ],+ [+ 16.81,+ "The cells keep their size and identity."+ ],+ [+ 19.518,+ "We have reorganized the liquid model, not changed the amount."+ ],+ [+ 23.607,+ "Forty eight divided by eight equals six cups."+ ],+ [+ 27.018,+ "Now we have a familiar next step."+ ]+ ]+ },+ "chainpints": {+ "dur": 27.624,+ "marks": {+ "pints": 4.388,+ "chain": 14.57+ },+ "cues": [+ [+ 0.104,+ "Our six cup groups still contain forty eight fluid ounce cells."+ ],+ [+ 4.388,+ "Pair the cups into pint groups."+ ],+ [+ 6.367,+ "Two cups make one pint, so six cups make three pints."+ ],+ [+ 10.326,+ "Watch the same squares move."+ ],+ [+ 12.122,+ "Their total area stays the same."+ ],+ [+ 14.57,+ "Forty eight fluid ounces, six cups, and three pints all describe the same liquid amount."+ ],+ [+ 20.365,+ "Each step uses a true unit relationship."+ ],+ [+ 23.333,+ "You can also divide forty eight by sixteen fluid ounces per pint."+ ]+ ]+ },+ "q2": {+ "dur": 8.328,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.146,+ "Which pint picture contains the same forty eight fluid ounces?"+ ],+ [+ 5.339,+ "Each small square is one fluid ounce."+ ]+ ]+ },+ "metric": {+ "dur": 33.96,+ "marks": {+ "split": 7.995,+ "metre": 15.13+ },+ "cues": [+ [+ 0.091,+ "Metric units use powers of ten."+ ],+ [+ 2.943,+ "This one centimeter strip is drawn larger so we can see its divisions."+ ],+ [+ 7.995,+ "Split the same centimeter into ten millimeters."+ ],+ [+ 11.771,+ "Ten millimeters equal one centimeter."+ ],+ [+ 15.13,+ "One hundred centimeters equal one meter, and one thousand meters equal one kilometer."+ ],+ [+ 21.146,+ "Do not use the same jump for every prefix."+ ],+ [+ 24.505,+ "Millimeters to centimeters is ten; centimeters to meters is one hundred."+ ],+ [+ 30.326,+ "Let the stated relationship guide the calculation."+ ]+ ]+ },+ "metricmass": {+ "dur": 33.456,+ "marks": {+ "grams": 7.5,+ "milli": 15.378+ },+ "cues": [+ [+ 0.091,+ "Now metric mass."+ ],+ [+ 1.836,+ "These ten blocks each stand for one hundred grams."+ ],+ [+ 5.0,+ "Together they weigh one kilogram."+ ],+ [+ 7.5,+ "Read the same blocks as one thousand grams."+ ],+ [+ 10.82,+ "A smaller unit gives a larger number, but the mass stays fixed."+ ],+ [+ 15.378,+ "One thousand milligrams equal one gram, and one thousand grams equal one kilogram."+ ],+ [+ 21.732,+ "So half a kilogram is five hundred grams."+ ],+ [+ 24.87,+ "Metric length and metric mass have separate unit chains."+ ],+ [+ 28.919,+ "Never turn a length into a mass by changing its label."+ ]+ ]+ },+ "metricchain": {+ "dur": 32.88,+ "marks": {+ "metres": 7.669,+ "centimetres": 15.0,+ "check": 23.216+ },+ "cues": [+ [+ 0.104,+ "How many centimeters equal three kilometers?"+ ],+ [+ 3.789,+ "This tape represents three kilometers throughout."+ ],+ [+ 7.669,+ "First, each kilometer is one thousand meters."+ ],+ [+ 11.484,+ "Three times one thousand gives three thousand meters."+ ],+ [+ 15.0,+ "Next, each meter is one hundred centimeters."+ ],+ [+ 18.711,+ "Three thousand times one hundred gives three hundred thousand centimeters."+ ],+ [+ 23.216,+ "The physical length did not change."+ ],+ [+ 25.638,+ "Only the readout did."+ ],+ [+ 27.07,+ "Keeping units at each step prevents accidentally dropping a factor of one hundred."+ ]+ ]+ },+ "q3": {+ "dur": 7.632,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.146,+ "Which centimeter tape matches three kilometers?"+ ],+ [+ 4.518,+ "All bars use the same physical length scale."+ ]+ ]+ },+ "crosslength": {+ "dur": 36.432,+ "marks": {+ "cm": 4.922,+ "rounded": 25.091+ },+ "cues": [+ [+ 0.104,+ "You can also convert between systems."+ ],+ [+ 2.526,+ "This tape measures three inches."+ ],+ [+ 4.922,+ "One inch is exactly two point five four centimeters."+ ],+ [+ 9.206,+ "The centimeter marks meet the same endpoint at seven point six two centimeters."+ ],+ [+ 14.688,+ "Three times two point five four is seven point six two, exactly."+ ],+ [+ 19.727,+ "One yard equals zero point nine one four four meters, also exactly."+ ],+ [+ 25.091,+ "Other handy facts are rounded: one meter is about three point two eight feet, and one mile is about one point six one kilometers."+ ],+ [+ 33.893,+ "Use the approximately sign for those."+ ]+ ]+ },+ "crossmass": {+ "dur": 39.288,+ "marks": {+ "grams": 3.477,+ "ounce": 20.82+ },+ "cues": [+ [+ 0.104,+ "The sixteen ounce counters still form one pound."+ ],+ [+ 3.477,+ "Read that same mass as approximately four hundred fifty three point five nine two grams."+ ],+ [+ 9.583,+ "Or approximately zero point four five four kilograms."+ ],+ [+ 14.609,+ "The approximation comes from rounding the conversion factor, not from adding or removing anything."+ ],+ [+ 20.82,+ "One ounce is approximately twenty eight point three five zero grams, rounded to three decimal places."+ ],+ [+ 28.62,+ "Keep enough digits for the task, and follow its stated rounding instructions."+ ],+ [+ 33.789,+ "Mass ounces do not convert to fluid ounces without more information about the material."+ ]+ ]+ },+ "crosscapacity": {+ "dur": 35.136,+ "marks": {+ "metric": 2.578,+ "same": 23.229+ },+ "cues": [+ [+ 0.117,+ "Here is one U S liquid pint."+ ],+ [+ 2.578,+ "It is approximately four hundred seventy three point one seven seven milliliters, or approximately zero point four seven three liters with a more rounded factor."+ ],+ [+ 13.633,+ "One U S fluid ounce is about twenty nine point five seven four milliliters, and one U S gallon is about three point seven eight five liters."+ ],+ [+ 23.229,+ "The container and its liquid stay fixed while the label changes."+ ],+ [+ 27.552,+ "These factors apply to U S liquid units."+ ],+ [+ 31.068,+ "A different definition of pint or gallon would need a different factor."+ ]+ ]+ },+ "litres": {+ "dur": 37.8,+ "marks": {+ "divide": 9.01,+ "rounded": 20.625+ },+ "cues": [+ [+ 0.104,+ "How many U S gallons are in nine liters?"+ ],+ [+ 2.695,+ "Use the rounded fact one gallon is approximately three point seven eight five liters."+ ],+ [+ 9.01,+ "Each gallon group occupies three point seven eight five liters of the same strip."+ ],+ [+ 14.44,+ "Divide nine by three point seven eight five."+ ],+ [+ 17.5,+ "Two full groups fit, plus a small part of a third."+ ],+ [+ 20.625,+ "The result is approximately two point three eight gallons, rounded to the nearest hundredth."+ ],+ [+ 27.253,+ "The proportion is one gallon over three point seven eight five liters equals x gallons over nine liters."+ ],+ [+ 34.531,+ "A rounded factor gives an approximate result."+ ]+ ]+ },+ "wrap": {+ "dur": 33.384,+ "marks": {+ "w1": 2.747,+ "w2": 10.026,+ "w3": 15.703,+ "w4": 21.302+ },+ "cues": [+ [+ 0.13,+ "Four habits make conversions reliable."+ ],+ [+ 2.747,+ "Keep the physical quantity fixed: length stays length, mass stays mass, and capacity stays capacity."+ ],+ [+ 10.026,+ "Write units beside the numbers, with matching units in matching ratio positions."+ ],+ [+ 15.703,+ "Build a chain from facts you know, and check whether larger units should give a smaller count."+ ],+ [+ 21.302,+ "Use equals for exact facts and approximately for rounded facts."+ ],+ [+ 26.393,+ "Follow the requested decimal places."+ ],+ [+ 28.841,+ "Now try customary, metric, and mixed system practice."+ ]+ ]+ },+ "final1": {+ "dur": 9.576,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice, set one of three."+ ],+ [+ 2.76,+ "Convert the U S customary units."+ ],+ [+ 5.443,+ "Give exact answers, and keep the unit beside each value."+ ]+ ]+ },+ "final2": {+ "dur": 12.264,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice, set two of three."+ ],+ [+ 2.878,+ "Convert metric and mixed system measurements."+ ],+ [+ 5.885,+ "Use each stated factor, and round only the final answer to the requested decimal places."+ ]+ ]+ },+ "final3": {+ "dur": 13.104,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice, set three of three."+ ],+ [+ 3.086,+ "Solve two multistep problems."+ ],+ [+ 5.703,+ "Find the distance left on a hike, then compare two hill heights using the stated rounded feet per meter factor."+ ]+ ]+ },+ "finish": {+ "dur": 12.192,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter complete."+ ],+ [+ 1.419,+ "New units, same amount."+ ],+ [+ 3.242,+ "Your score records first attempts, including the three picture checks."+ ],+ [+ 8.086,+ "Replay any step to practice keeping numbers and units together."+ ]+ ]+ }+};diff --git a/site/math-notebook/ch18/audio/en/weight.mp3 b/site/math-notebook/ch18/audio/en/weight.mp3new file mode 100644index 0000000..11726dcBinary files /dev/null and b/site/math-notebook/ch18/audio/en/weight.mp3 differdiff --git a/site/math-notebook/ch18/audio/en/wrap.mp3 b/site/math-notebook/ch18/audio/en/wrap.mp3new file mode 100644index 0000000..39e56d9Binary files /dev/null and b/site/math-notebook/ch18/audio/en/wrap.mp3 differdiff --git a/site/math-notebook/ch18/index.html b/site/math-notebook/ch18/index.htmlnew file mode 100644index 0000000..542e8df--- /dev/null+++ b/site/math-notebook/ch18/index.html@@ -0,0 +1,57 @@+<!doctype html>+<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Converting Measurements — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.band .prompt{font-size:27px}.side .keys{font-size:19px}.screen .blanks .bline{gap:12px}.screen .blanks .box{width:9ch!important}.screen .blanks .why{font-size:22px}.screen .blanks .bline svg tspan{font-style:normal}</style></head><body>+<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>+'use strict';+const CHAPTER={number:18,title:'Converting Measurements',minutes:13,language:'en'};+// Entrances from ch17. Blue marks conserved quantities; amber marks new unit readings.+const cvText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};+const cvMath=(p,s,x,y,t=0,size=52,col=COL.chalk)=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor:'middle',o:0});e.querySelectorAll('tspan').forEach(span=>{if(!/^[xy]$/.test(span.textContent))span.setAttribute('font-style','normal');});show(e,t);return e;};+const cvTitle=(p,s,sub='')=>{cvText(p,s,100,110,.1,43);if(sub)cvText(p,sub,100,165,.15,27,COL.dim);};+function cvTape(p,x,y,w,n,label,t=0){const g=G(p,{x,y,o:0});g.dataset.quantity=label;const bar=mk('rect',{x:0,y:0,width:w,height:65,fill:mix(COL.board,COL.whole,.3),stroke:COL.whole,'stroke-width':3},g);for(let i=1;i<n;i++)path(g,`M${i*w/n} 0V65`,{stroke:COL.whole,'stroke-width':2});T(g,label,{x:w/2,y:110,size:34,anchor:'middle',fill:COL.whole});show(g,t);return {g,bar,w,x,y};}+function cvCuts(v,n,t,col=COL.task){const g=G(v.g,{o:0});g.dataset.parts=String(n);for(let i=0;i<=n;i++){const e=path(g,`M${i*v.w/n} -10V75`,{stroke:col,'stroke-width':2});e.dataset.cut=String(i);e.dataset.position=String(i*v.w/n);}show(g,t,.9);return g;}+function cvLiquid(p,n=48,layout='loose'){return Array.from({length:n},(_,i)=>{const xy=cvPosition(i,layout),g=G(p,{x:xy[0],y:xy[1]});g.dataset.cellId='fluid-'+i;g.dataset.flOz='1';mk('rect',{width:18,height:18,fill:mix(COL.board,COL.whole,.45),stroke:COL.whole,'stroke-width':1.5},g);return g;});}+function cvPosition(i,layout){const cup=Math.floor(i/8),j=i%8;if(layout==='loose')return [615+Math.floor(cup/2)*48+j%2*24,300+cup%2*96+Math.floor(j/2)*24];if(layout==='cups')return [285+Math.floor(cup/2)*480+j%2*24,270+cup%2*240+Math.floor(j/2)*24];const k=Math.floor(i/16),n=i%16;return [285+k*480+n%2*24,300+Math.floor(n/2)*24];}+function cvRegroup(cells,layout,t){cells.forEach((e,i)=>{const [x,y]=cvPosition(i,layout);tw(e,{x,y},t,3,io);});}+function cvGroups(p,n,layout,t){for(let k=0;k<n;k++){const [x,y]=cvPosition(k*(layout==='cups'?8:16),layout),w=60,h=layout==='cups'?108:204,g=G(p,{o:0});mk('rect',{x:x-9,y:y-9,width:w,height:h,rx:8,fill:'none',stroke:COL.task,'stroke-width':2},g);T(g,(layout==='cups'?'1 cup':'1 pint'),{x:x+(w-18)/2,y:y+h+32,size:28,fill:COL.task,anchor:'middle'});show(g,t);}}+function cvOz(p,grouped=false){return Array.from({length:16},(_,i)=>{const g=G(p,{x:(grouped?640:300)+i%4*(grouped?55:95),y:300+Math.floor(i/4)*(grouped?55:95)});g.dataset.ounceId='mass-'+i;mk('circle',{r:18,fill:mix(COL.board,COL.whole,.4),stroke:COL.whole,'stroke-width':2},g);return g;});}+function cvRows(p,rows,x,y,t,size=32,gap=65){rows.forEach((s,i)=>cvText(p,s,x,y+i*gap,t+i*.35,size));}+const BEATS=[+['intro','Converting measurements',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 2 · Ratios, Proportions, and Percents · Chapter 18',{x:800,y:200,size:28,fill:COL.dim,anchor:'middle'});T(g,'Converting',{x:800,y:345,size:90,weight:600,anchor:'middle'});T(g,'Measurements',{x:800,y:450,size:90,weight:600,anchor:'middle'});cvTape(g,440,545,720,2,'2 feet = 24 inches');tw(g,{o:1,y:0},.2,1,out);cvText(g,'Same quantity · new unit',800,775,m('sub'),39,COL.task,'middle');hide(g,D-.8,.7);}],+['length','Same tape, smaller units',m=>{const p=panel(0);cvTitle(p,'Two feet stays two feet','US customary length · subdivisions change, physical length stays fixed');S.cvTape=cvTape(p,260,325,960,2,'2 ft');cvCuts(S.cvTape,24,m('inches'));cvText(p,'12 inches in each foot · 24 inches altogether',800,545,m('inches',1),37,COL.task,'middle');cvRows(p,['12 in = 1 ft','3 ft = 1 yd','1,760 yd = 1 mi'],600,650,m('yards'),36,60);}],+['larger','Group into larger units',m=>{const p=panel(0);cvTitle(p,'36 inches · 3 feet · 1 yard','Same fixed tape; larger units mean fewer units.');S.cvTape=cvTape(p,260,310,1080,36,'36 in');S.cvFootCuts=cvCuts(S.cvTape,3,m('feet'));cvText(p,'3 feet',800,535,m('feet',1),48,COL.task,'middle');const bracket=path(p,'M260 590V615H1340V590',{stroke:COL.task,'stroke-width':4},{d:0});draw(bracket,m('yard'),1);cvText(p,'1 yard',800,685,m('yard',1),48,COL.task,'middle');cvText(p,'36 ÷ 12 = 3 3 ÷ 3 = 1',800,820,m('yard',2),38,COL.chalk,'middle');}],+['weight','Mass ounces, pounds and short tons',m=>{const p=panel(0);cvTitle(p,'16 ounces = 1 pound','Each counter represents 1 oz of mass; every counter stays.');S.cvOz=cvOz(p);S.cvOz.forEach((e,i)=>tw(e,{x:640+i%4*55,y:300+Math.floor(i/4)*55},m('gather'),3,io));cvText(p,'1 lb = 16 oz',1050,400,m('gather',3),41,COL.task,'middle');cvText(p,'1 US short ton = 2,000 lb',800,715,m('ton'),46,COL.chalk,'middle');cvText(p,'Metric grams and kilograms measure MASS.',800,825,m('ton',2),32,COL.dim,'middle');}],+['capacity','US liquid capacity chain',m=>{const p=panel(0);cvTitle(p,'1 cup = 8 fluid ounces','US liquid measures · each cell represents 1 fl oz');S.cvLiquid=cvLiquid(p,8,'pints');cvText(p,'1 cup',430,530,0,42,COL.whole,'middle');cvRows(p,['3 tsp = 1 tbsp','2 tbsp = 1 fl oz','8 fl oz = 1 cup','2 cups = 1 pt','2 pt = 1 qt','4 qt = 1 US gal'],850,275,m('chain'),34,68);cvText(p,'oz: mass fl oz: liquid volume',800,825,m('different'),37,COL.task,'middle');}],+['q1','Choose the matching inch tape',()=>{const p=panel(0);cvTitle(p,'Match this 2-foot tape','All tapes use the same length scale.');cvTape(p,680,225,240,2,'2 ft');S.cvChoices=[24,12,36].map((n,i)=>{const x=110+i*520,g=G(p);const tape=cvTape(g,x,440,n*10,n,n+' in');g.dataset.inches=String(n);return {el:g,box:[x-30,410,445,220],label:n+' inches',bar:tape.bar};});},{ask:done=>quiz(BAND,[{id:'c-length',prompt:'Which inch tape has the same length as 2 feet?',build:pickEls(S.cvChoices,0,'2 × 12 = 24 inches. The 24-inch tape matches the 2-foot tape.',i=>i===1?'12 inches is only 1 foot. Two feet need two groups of twelve.':'36 inches equals 3 feet, so that tape is too long.')}],done)}],+['proportion','A proportion keeps units aligned',m=>{const p=panel(0);cvTitle(p,'How many quarts are in 14 pints?','Every cell below represents 1 pint.');S.cvPints=Array.from({length:14},(_,i)=>{const g=G(p,{x:170+i*88,y:330});g.dataset.pintId='pint-'+i;mk('rect',{width:60,height:70,fill:mix(COL.board,COL.whole,.35),stroke:COL.whole,'stroke-width':2},g);tw(g,{x:170+Math.floor(i/2)*175+i%2*60},m('pair'),2,io);return g;});for(let i=0;i<7;i++){const g=G(p,{o:0});mk('rect',{x:165+i*175,y:320,width:130,height:90,rx:8,fill:'none',stroke:COL.task,'stroke-width':2},g);T(g,'1 qt',{x:230+i*175,y:455,size:28,fill:COL.task,anchor:'middle'});show(g,m('pair',2));}cvMath(p,[F('x quarts','14 pints'),' = ',F('1 quart','2 pints')],800,620,m('ratio'),52);cvMath(p,'2x = 14 x = 7 quarts',800,800,m('solve'),47,COL.task);}],+['chain','48 fluid ounces into cups',m=>{const p=panel(0);cvTitle(p,'Start with 48 fl oz','Every original square = 1 fl oz; square sizes never change.');S.cvLiquid=cvLiquid(p);cvRegroup(S.cvLiquid,'cups',m('cups'));cvGroups(p,6,'cups',m('cups',3));cvText(p,'48 fl oz ÷ (8 fl oz/cup) = 6 cups',800,780,m('step'),43,COL.task,'middle');}],+['chainpints','Six cups into three pints',m=>{const p=panel(0);cvTitle(p,'Same 48 fl oz · regroup the same squares','Six groups of 8 become three groups of 16.');S.cvLiquid=cvLiquid(p,48,'cups');cvRegroup(S.cvLiquid,'pints',m('pints'));cvGroups(p,3,'pints',m('pints',3));cvText(p,'48 fl oz = 6 cups = 3 pints',800,690,m('chain'),50,COL.task,'middle');cvText(p,'48 ÷ 8 = 6 6 ÷ 2 = 3',800,820,m('chain',2),40,COL.chalk,'middle');}],+['q2','Choose the conserved liquid amount',()=>{const p=panel(0);cvTitle(p,'Match 48 fluid ounces','Every small square = 1 fl oz; each outlined group = 1 US liquid pint.');S.cvChoices=[3,6,2].map((n,i)=>{const x=115+i*520,g=G(p);for(let k=0;k<n;k++){const xx=x+k%3*110,yy=295+Math.floor(k/3)*145;mk('rect',{x:xx-6,y:yy-6,width:88,height:88,rx:7,fill:'none',stroke:COL.task,'stroke-width':2},g);for(let j=0;j<16;j++){const e=mk('rect',{x:xx+j%4*19,y:yy+Math.floor(j/4)*19,width:16,height:16,fill:mix(COL.board,COL.whole,.4),stroke:COL.whole,'stroke-width':1},g);e.dataset.flOz='1';}}cvText(g,n+' pints',x+170,605,0,38,COL.whole,'middle');g.dataset.pints=String(n);return {el:g,box:[x-25,260,440,380],label:n+' pints'};});},{ask:done=>quiz(BAND,[{id:'c-liquid',prompt:'Which picture has exactly 48 fl oz?',build:pickEls(S.cvChoices,0,'3 pints × 16 fl oz/pint = 48 fl oz. Every original fluid-ounce cell fits.',i=>i===1?'Six pints contain 96 fl oz. Six CUPS, not six pints, equal 48 fl oz.':'Two pints contain 32 fl oz. You need three groups of sixteen.')}],done)}],+['metric','Metric length units',m=>{const p=panel(0);cvTitle(p,'1 centimeter · 10 millimeters','The 1 cm section is drawn larger to see its divisions.');S.cvTape=cvTape(p,350,300,900,1,'1 cm');cvCuts(S.cvTape,10,m('split'));cvText(p,'10 mm = 1 cm',800,550,m('split',1),49,COL.task,'middle');cvRows(p,['100 cm = 1 m','1,000 m = 1 km'],580,695,m('metre'),44,100);}],+['metricmass','Metric mass units',m=>{const p=panel(0);cvTitle(p,'Ten 100-gram blocks · 1 kilogram','Same blocks, same mass.');S.cvMass=Array.from({length:10},(_,i)=>{const g=G(p,{x:290+i*100,y:300});g.dataset.grams='100';mk('rect',{width:85,height:90,fill:mix(COL.board,COL.whole,.4),stroke:COL.whole,'stroke-width':2},g);T(g,'100 g',{x:42,y:140,size:25,fill:COL.whole,anchor:'middle'});return g;});S.cvMass.forEach((g,i)=>tw(g,{x:375+i*85},m('grams'),3,io));cvText(p,'1 kg = 1,000 g',800,585,m('grams'),52,COL.task,'middle');cvText(p,'1,000 mg = 1 g',800,730,m('milli'),47,COL.chalk,'middle');cvText(p,'½ kg = 500 g · mass stays mass',800,835,m('milli',3),32,COL.dim,'middle');}],+['metricchain','Kilometers through meters to centimeters',m=>{const p=panel(0);cvTitle(p,'A fixed 3-kilometer tape','Readout changes; this physical length never changes.');S.cvTape=cvTape(p,300,300,1000,3,'3 km');cvMath(p,'3 km × (1,000 m/km) = 3,000 m',800,555,m('metres'),47);cvMath(p,'3,000 m × (100 cm/m) = 300,000 cm',800,700,m('centimetres'),44,COL.task);cvText(p,'Same tape: 3 km = 3,000 m = 300,000 cm',800,830,m('check'),33,COL.whole,'middle');}],+['q3','Choose the matching metric tape',()=>{const p=panel(0);cvTitle(p,'Match the 3-kilometer reference','All bars use the same length scale.');cvTape(p,575,225,450,3,'3 km');S.cvChoices=[300000,3000,30000].map((n,i)=>{const x=90+i*520,g=G(p);const tape=cvTape(g,x,435,n*.0015,1,n.toLocaleString('en-US')+' cm');g.dataset.centimeters=String(n);return {el:g,box:[x-25,400,485,235],label:n+' centimeters',bar:tape.bar};});},{ask:done=>quiz(BAND,[{id:'c-metric',prompt:'Which centimeter bar represents the same 3 km?',build:pickEls(S.cvChoices,0,'3 × 1,000 × 100 = 300,000 cm. The same-scale bar matches.',i=>i===1?'3,000 is the number of METERS. Multiply by 100 to convert those meters to centimeters.':'30,000 cm is only 300 meters. Each kilometer is 100,000 centimeters.')}],done)}],+['crosslength','Exact and rounded length factors',m=>{const p=panel(0);cvTitle(p,'3 inches = 7.62 centimeters exactly','Two scales mark the same conserved physical segment.');S.cvTape=cvTape(p,350,305,762,3,'3 in');const metric=G(p,{o:0});for(let i=0;i<=7;i++){path(metric,`M${350+i*100} 400V425`,{stroke:COL.task,'stroke-width':3});T(metric,String(i),{x:350+i*100,y:465,size:27,fill:COL.task,anchor:'middle'});}path(metric,'M1112 390V430',{stroke:COL.task,'stroke-width':4});T(metric,'7.62 cm',{x:1190,y:465,size:31,fill:COL.task,anchor:'middle'});show(metric,m('cm'));cvText(p,'1 in = 2.54 cm 1 yd = 0.9144 m',800,580,m('cm',1),42,COL.chalk,'middle');cvText(p,'1 m ≈ 3.28 ft 1 mi ≈ 1.61 km',800,735,m('rounded'),41,COL.task,'middle');cvText(p,'= exact ≈ approximate',800,835,m('rounded',2),33,COL.dim,'middle');}],+['crossmass','Mass conversion factors',m=>{const p=panel(0);cvTitle(p,'Same 1-pound mass','Same original 16 mass-ounce counters; new readout.');S.cvOz=cvOz(p,true);cvText(p,'1 lb = 16 oz',1040,400,0,41,COL.whole,'middle');cvRows(p,['1 lb ≈ 453.592 g','1 lb ≈ 0.454 kg'],350,625,m('grams'),43,85);cvText(p,'1 oz ≈ 28.350 g',1090,710,m('ounce'),41,COL.task,'middle');cvText(p,'Rounded factors: state the factor and round the final result.',800,845,m('ounce',2),30,COL.dim,'middle');}],+['crosscapacity','US liquid units to metric volume',m=>{const p=panel(0);cvTitle(p,'One US liquid pint · same liquid','Capacity conversions use fl oz, never mass oz.');const g=G(p);path(g,'M260 260H600L570 625H290Z',{fill:'none',stroke:COL.whole,'stroke-width':4});path(g,'M276 420H584L566 620H294Z',{fill:mix(COL.board,COL.whole,.4),stroke:COL.whole,'stroke-width':2});cvText(p,'1 US pint of liquid',430,705,0,33,COL.whole,'middle');cvRows(p,['1 pt ≈ 473.177 mL','1 pt ≈ 0.473 L','1 fl oz ≈ 29.574 mL','1 US gal ≈ 3.785 L'],810,300,m('metric'),38,105);cvText(p,'Same container · same volume',800,845,m('same'),37,COL.task,'middle');}],+['litres','Nine liters into US gallons',m=>{const p=panel(0);cvTitle(p,'9 liters · how many US liquid gallons?','Given rounded factor: 1 US gal ≈ 3.785 L');S.cvTape=cvTape(p,260,290,1080,1,'9 L');S.cvGallonCuts=G(p,{o:0});[0,3.785,7.57,9].forEach((v,i)=>{const x=260+v*120,e=path(S.cvGallonCuts,`M${x} 270V375`,{stroke:COL.task,'stroke-width':3});e.dataset.liters=String(v);e.dataset.position=String(x);});show(S.cvGallonCuts,m('divide'));cvText(p,'1 gallon',487.1,465,m('divide',1),32,COL.task,'middle');cvText(p,'1 gallon',941.3,465,m('divide',1),32,COL.task,'middle');cvText(p,'part',1254.2,465,m('divide',1),30,COL.task,'middle');cvMath(p,[F('1 gal','3.785 L'),' ≈ ',F('x gal','9 L')],800,620,m('divide',2),53);cvMath(p,'x ≈ 9 ÷ 3.785 ≈ 2.38 US gal',800,795,m('rounded'),49,COL.task);}],+['wrap','Four habits for conversions',m=>{const p=panel(0);cvTitle(p,'Same amount · new unit');[['Keep length, mass and capacity in their own unit chains.','w1'],['Write units; match their positions in proportions.','w2'],['Use known factors; check larger unit versus smaller count.','w3'],['Exact: = Rounded: ≈ Follow requested decimal places.','w4']].forEach(([s,key],i)=>{const g=G(p,{x:-16,y:285+i*145,o:0});mk('circle',{cx:130,cy:-10,r:26,fill:COL.task},g);T(g,String(i+1),{x:130,y:0,size:30,anchor:'middle',fill:COL.board});T(g,s,{x:195,size:31});tw(g,{x:0,o:1},m(key),.6);});}],+['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-customary',prompt:'US customary units. Give exact answers.',build:blanks([+{parts:['18 feet = ',{box:'216'},' inches'],why:'18 × 12 = 216 inches. The length stays fixed.'},+{parts:[{box:'9'},' US gallons = 36 quarts'],why:'36 ÷ 4 = 9 US liquid gallons.'},+{parts:['42 teaspoons = ',{box:'7'},' fluid ounces'],why:'3 tsp/tbsp × 2 tbsp/fl oz = 6 tsp/fl oz; 42 ÷ 6 = 7 fl oz.'},+{parts:['2.75 miles = ',{box:'14520'},' feet'],why:'1 mile = 1,760 × 3 = 5,280 feet; 2.75 × 5,280 = 14,520 feet.'}+])}],done,'Chapter practice 1 of 3')}],+['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-metric',prompt:'Use the stated factors. Round only the final answer as requested.',build:blanks([+{parts:['0.06 km = ',{box:'60000'},' mm (exact)'],why:'0.06 × 1,000 m/km × 1,000 mm/m = 60,000 mm.'},+{parts:['25 cm ≈ ',{box:'9.84'},' in; 1 in = 2.54 cm (2 decimal places)'],why:'25 ÷ 2.54 = 9.8425…; nearest hundredth: approximately 9.84 inches.'},+{parts:['12 oz ≈ ',{box:'340.2'},' g; 1 oz ≈ 28.35 g (1 decimal place)'],why:'Using the stated rounded factor: 12 × 28.35 = 340.2; approximately 340.2 g.'},+{parts:['3.5 US pt ≈ ',{box:'1.6555'},' L; 1 pt ≈ 0.473 L (4 decimal places)'],why:'3.5 × 0.473 = 1.6555; approximately 1.6555 liters using the rounded factor.'}+])}],done,'Chapter practice 2 of 3')}],+['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-context',prompt:'Convert first, then compare. For the hills use 1 m ≈ 3.28 ft; round to 1 decimal place.',build:blanks([+{parts:['5-mile hike; already walked 8,200 ft. Remaining: ',{box:'18200'},' ft'],why:'5 × 5,280 = 26,400 ft total; 26,400 − 8,200 = 18,200 ft remain.'},+{parts:['Hill heights: 1,375 m and 920 m. Difference ≈ ',{box:'1492.4'},' ft'],why:'1,375 − 920 = 455 m; using 1 m ≈ 3.28 ft gives 455 × 3.28 ≈ 1,492.4 ft. Round to one decimal place.',hint:'For the hills use 1 m ≈ 3.28 ft; round the final answer to 1 decimal place.'}+])}],done,'Chapter practice 3 of 3')}],+['finish','Finished',()=>panel(0),{ask:finishCard}]+].map(([id,title,run,extra])=>({id,title,run,...extra}));+boot();+</script></body></html>diff --git a/site/math-notebook/index.html b/site/math-notebook/index.htmlindex 16fba69..d4b956f 100644--- a/site/math-notebook/index.html+++ b/site/math-notebook/index.html@@ -230,7 +230,7 @@ main#contents { padding-bottom: 80px; }// Chapters are numbered in order through the units. Add a chapter here when its lesson is ready.const UNITS = [ // [unit title, [[chapter title, minutes], ...]]; chapters are numbered in order. Add a chapter when its lesson is ready.['The Number System', [['Types of Numbers and the Number Line', 9], ['Positive and Negative Numbers', 8], ['Absolute Value', 9], ['Factors and Greatest Common Factor', 11], ['Multiples and Least Common Multiple', 10], ['Fraction Basics: Types of Fractions and Adding and Subtracting Fractions', 13], ['Multiplying and Dividing Fractions', 12], ['Adding and Subtracting Decimals', 11], ['Multiplying Decimals', 12], ['Dividing Decimals', 10], ['Adding Positive and Negative Numbers', 12], ['Subtracting Positive and Negative Numbers', 13], ['Multiplying and Dividing Positive and Negative Numbers', 14], ['Inequalities', 10]]],- ['Ratios, Proportions, and Percents', [['Ratios', 9], ['Unit Rate and Unit Price', 10], ['Proportions', 12]]],+ ['Ratios, Proportions, and Percents', [['Ratios', 9], ['Unit Rate and Unit Price', 10], ['Proportions', 12], ['Converting Measurements', 13]]],];const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];const id = n => 'ch' + String(n).padStart(2, '0');