An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
window.TIMINGS = {
"intro": {
"dur": 22.92,
"marks": {
"q": 1.432,
"a": 3.685,
"a1": 5.378,
"a2": 7.266,
"b": 9.154,
"b1": 10.716,
"b2": 12.474,
"agree": 14.531,
"right": 20.547
},
"cues": [
[
0.13,
"Here's a quick question."
],
[
1.432,
"What is two plus three times four?"
],
[
3.685,
"If you work from left to right, two plus three is five, and five times four is twenty."
],
[
9.154,
"If you multiply first, three times four is twelve, and two plus twelve is fourteen."
],
[
14.531,
"Two different answers is a problem."
],
[
16.523,
"So mathematicians agreed on one order for doing operations."
],
[
20.547,
"With that order, the answer is fourteen."
]
]
},
"ladder": {
"dur": 24.84,
"marks": {
"l1": 2.617,
"l2": 6.133,
"l3": 11.159,
"l3b": 14.036,
"l4": 18.997,
"l4b": 21.576
},
"cues": [
[
0.104,
"The agreed order has four levels."
],
[
2.617,
"First, anything inside parentheses or brackets."
],
[
6.133,
"Second, powers, like three squared."
],
[
9.102,
"You'll meet those in a later chapter."
],
[
11.159,
"Third, multiplication and division."
],
[
14.036,
"These two share a level, so you do them from left to right, whichever comes first."
],
[
18.997,
"Last, addition and subtraction."
],
[
21.576,
"They also share a level, and you work from left to right."
]
]
},
"leftRight": {
"dur": 17.736,
"marks": {
"q": 1.198,
"lvl": 3.281,
"s1": 7.721,
"s2": 9.818,
"warn": 11.523
},
"cues": [
[
0.104,
"Let's try some."
],
[
1.198,
"Seven minus four plus one."
],
[
3.281,
"Subtraction and addition share a level, so go from left to right."
],
[
7.721,
"Seven minus four is three."
],
[
9.818,
"Three plus one is four."
],
[
11.523,
"If you added first, you'd get seven minus five, which is two."
],
[
15.573,
"That breaks the left to right rule."
]
]
},
"mulFirst": {
"dur": 11.544,
"marks": {
"q": 0.82,
"lvl": 2.995,
"s1": 7.917,
"s2": 9.714
},
"cues": [
[
0.104,
"Next: ten minus three times two."
],
[
2.995,
"Multiplication is on a higher level than subtraction, so it goes first."
],
[
7.917,
"Three times two is six."
],
[
9.714,
"Ten minus six is four."
]
]
},
"q1": {
"dur": 3.408,
"marks": {},
"cues": [
[
0.117,
"Quick check."
],
[
1.094,
"Tap the operation you should do first."
]
]
},
"parens": {
"dur": 13.872,
"marks": {
"q": 0.312,
"p": 4.518,
"s1": 9.44,
"s2": 11.576
},
"cues": [
[
0.104,
"Now nine plus three, in parentheses, divided by four."
],
[
4.518,
"Parentheses come first, even though division is on a higher level than addition."
],
[
9.44,
"Nine plus three is twelve."
],
[
11.576,
"Twelve divided by four is three."
]
]
},
"chain": {
"dur": 27.0,
"marks": {
"q": 1.628,
"md": 6.367,
"s1": 10.768,
"s2": 15.469,
"as": 18.06,
"s3": 21.849,
"s4": 24.583
},
"cues": [
[
0.143,
"Here's a longer one: eighty-four minus seventy-two divided by six times two, plus one."
],
[
6.367,
"First, the multiplication and division level, from left to right."
],
[
10.768,
"Division comes first here."
],
[
12.474,
"Seventy-two divided by six is twelve."
],
[
15.469,
"Then twelve times two is twenty-four."
],
[
18.06,
"Now the addition and subtraction level, from left to right."
],
[
21.849,
"Eighty-four minus twenty-four is sixty."
],
[
24.583,
"Sixty plus one is sixty-one."
]
]
},
"pemdas": {
"dur": 29.76,
"marks": {
"p": 1.784,
"e": 2.734,
"m": 3.789,
"a": 5.925,
"trap": 7.773,
"md": 10.898,
"as": 15.964,
"ex": 18.151,
"ex1": 20.885,
"ex2": 24.818,
"wrong": 26.654
},
"cues": [
[
0.104,
"You may have heard of PEMDAS."
],
[
1.784,
"Parentheses, exponents, multiplication, division, addition, subtraction."
],
[
7.773,
"It's a handy memory aid, but it can mislead you."
],
[
10.898,
"M comes before D in the word, but multiplication and division share a level."
],
[
15.964,
"The same goes for A and S."
],
[
18.151,
"Take twelve divided by three times two."
],
[
20.885,
"Division comes first, so twelve divided by three is four, and four times two is eight."
],
[
26.654,
"Multiplying first would give two, which is wrong."
]
]
},
"q2": {
"dur": 4.584,
"marks": {},
"cues": [
[
0.117,
"Quick check."
],
[
1.107,
"Two questions about the multiplication and division level."
]
]
},
"brackets": {
"dur": 42.744,
"marks": {
"story": 2.917,
"story2": 8.503,
"q": 13.802,
"expr": 16.484,
"s1": 19.831,
"s2": 26.549,
"s3": 29.349,
"s4": 37.109
},
"cues": [
[
0.104,
"Parentheses can sit inside brackets."
],
[
2.917,
"Maya's team scores seven two-point baskets and three three-point baskets."
],
[
8.503,
"Leo's team scores nine two-point baskets and one three-point basket."
],
[
13.802,
"How many more points did Maya's team score?"
],
[
16.484,
"Put each team's total in brackets, and subtract."
],
[
19.831,
"Work from the inside out."
],
[
21.419,
"Seven times two is fourteen, and three times three is nine."
],
[
26.549,
"Fourteen plus nine is twenty-three."
],
[
29.349,
"For Leo, nine times two is eighteen, one times three is three, and together they make twenty-one."
],
[
37.109,
"Twenty-three minus twenty-one is two."
],
[
39.948,
"Maya's team scored two more points."
]
]
},
"q3": {
"dur": 2.808,
"marks": {},
"cues": [
[
0.091,
"Quick check."
],
[
1.146,
"Work out the total cost."
]
]
},
"wrap": {
"dur": 15.624,
"marks": {
"w1": 2.175,
"w2": 6.927,
"w3": 10.365,
"end": 13.464
},
"cues": [
[
0.104,
"To simplify an expression, first work inside parentheses and brackets, from the inside out."
],
[
6.927,
"Then multiply and divide, from left to right."
],
[
10.365,
"Then add and subtract, from left to right."
],
[
13.464,
"Now try the chapter practice."
]
]
},
"final1": {
"dur": 3.888,
"marks": {},
"cues": [
[
0.117,
"Chapter practice."
],
[
1.523,
"Simplify each expression."
]
]
},
"final2": {
"dur": 3.192,
"marks": {},
"cues": [
[
0.104,
"Next, choose the operation you should do first."
]
]
},
"final3": {
"dur": 4.656,
"marks": {},
"cues": [
[
0.104,
"Last one."
],
[
1.133,
"Decide whether each statement is true or false."
]
]
},
"finish": {
"dur": 4.728,
"marks": {},
"cues": [
[
0.104,
"Well done."
],
[
1.094,
"That's the end of chapter three, order of operations."
]
]
}
};