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": 18.024,
"marks": {
"sub": 7.07
},
"cues": [
[
0.104,
"Chapter twenty-two."
],
[
1.602,
"Discounts and markups."
],
[
3.724,
"Last chapter, a percent added to a price."
],
[
7.07,
"This time the percent can take money off, as a sale, or put it on, as a store's profit."
],
[
13.034,
"We will find the amount, the new price, and work backward to the price before."
]
]
},
"discount": {
"dur": 39.504,
"marks": {
"sign": 0.091,
"bar": 14.336,
"conv": 18.333,
"mult": 22.917,
"sub": 30.859,
"new": 36.81
},
"cues": [
[
0.091,
"A store window says, all items twenty percent off."
],
[
4.062,
"A hat costs twelve dollars and fifty cents."
],
[
7.435,
"Words like sale, markdown, clearance and savings all mean the same thing: you subtract."
],
[
14.336,
"On the strip, the discount is the last fifth of the price."
],
[
18.333,
"Change twenty percent to the decimal zero point two zero."
],
[
22.917,
"Multiply by the price: zero point two zero times twelve fifty is two dollars fifty."
],
[
29.583,
"That is the discount."
],
[
30.859,
"Now subtract it from the original price: twelve fifty minus two fifty is ten dollars."
],
[
36.81,
"The new price of the hat is ten dollars."
]
]
},
"pay": {
"dur": 24.384,
"marks": {
"split": 2.188,
"pct": 6.836,
"one": 11.68,
"rule": 16.797
},
"cues": [
[
0.117,
"Here is the same hat, cut into what you save and what you pay."
],
[
4.414,
"The discount is twenty percent, so you still pay one hundred percent minus twenty percent, which is eighty percent."
],
[
11.68,
"One step: zero point eight times twelve fifty is ten dollars."
],
[
16.797,
"To find the sale price, multiply by one minus the discount rate."
],
[
21.523,
"Same answer, and one fewer subtraction."
]
]
},
"q1": {
"dur": 5.712,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.146,
"Which picture shows a sixty dollar jacket at twenty-five percent off?"
]
]
},
"twice": {
"dur": 44.4,
"marks": {
"start": 0.104,
"first": 11.914,
"second": 19.857,
"wrong": 29.805
},
"cues": [
[
0.104,
"What if you get a second discount on top of the first?"
],
[
3.125,
"A game store takes twenty-five percent off, and your membership card gives another fifteen percent."
],
[
9.583,
"The games cost one hundred dollars."
],
[
11.914,
"Take one discount at a time."
],
[
13.659,
"Twenty-five percent of one hundred is twenty-five, so the first price is seventy-five dollars."
],
[
19.857,
"The card takes fifteen percent off that new price."
],
[
23.138,
"Fifteen percent of seventy-five is eleven twenty-five, so you pay sixty-three seventy-five."
],
[
29.805,
"It is tempting to add the percents and take forty percent off, which would leave sixty dollars."
],
[
36.107,
"But the second discount is a percent of seventy-five, not of one hundred."
],
[
41.432,
"You actually saved thirty-six twenty-five."
]
]
},
"q2": {
"dur": 5.4,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.133,
"Two discounts, one after the other."
],
[
3.711,
"Take it one step at a time."
]
]
},
"original": {
"dur": 40.488,
"marks": {
"start": 0.104,
"pct": 8.75,
"eq": 17.578,
"divide": 27.344,
"check": 34.206
},
"cues": [
[
0.104,
"Now work backward."
],
[
1.406,
"A video game is thirty percent off, and the sale price is forty-one ninety-nine."
],
[
7.018,
"What was the original price?"
],
[
8.75,
"The original price is one hundred percent."
],
[
11.589,
"Thirty percent is taken away, so the sale price is seventy percent of the original."
],
[
17.578,
"As a decimal, seventy percent is zero point seven."
],
[
21.732,
"So forty-one ninety-nine equals zero point seven times the original price."
],
[
27.344,
"Divide both sides by zero point seven."
],
[
30.612,
"The original price is about fifty-nine ninety-nine."
],
[
34.206,
"Check it forward: seventy percent of fifty-nine ninety-nine is about forty-one ninety-nine."
]
]
},
"mistake": {
"dur": 24.768,
"marks": {
"start": 0.104,
"wrong": 4.258,
"why": 9.453,
"test": 14.675,
"right": 22.161
},
"cues": [
[
0.104,
"A tempting shortcut: add thirty percent of the sale price back on."
],
[
4.258,
"Forty-one ninety-nine plus thirty percent of it is about fifty-four fifty-nine."
],
[
9.453,
"But the thirty percent was taken from the original price, not from the sale price."
],
[
14.675,
"Test it: take thirty percent off fifty-four fifty-nine, and you get thirty-eight twenty-one, not forty-one ninety-nine."
],
[
22.161,
"Divide by seventy percent instead."
]
]
},
"percentoff": {
"dur": 30.168,
"marks": {
"start": 0.104,
"eq": 7.122,
"paid": 15.078,
"sub": 18.125,
"done": 23.503
},
"cues": [
[
0.104,
"You can also find the percent discount."
],
[
2.396,
"Julie paid thirty-five dollars for a shirt that was fifty dollars."
],
[
7.122,
"Thirty-five equals some fraction times fifty."
],
[
10.925,
"Divide by fifty, and the fraction is zero point seven."
],
[
15.078,
"Julie paid seventy percent of the price."
],
[
18.125,
"So the discount is one minus zero point seven, which is zero point three."
],
[
23.503,
"That is thirty percent off."
],
[
25.299,
"Check: fifteen dollars saved, out of fifty, is three tenths."
]
]
},
"markup": {
"dur": 31.848,
"marks": {
"start": 0.104,
"bar": 10.521,
"conv": 15.846,
"mult": 19.049,
"add": 23.802,
"one": 28.385
},
"cues": [
[
0.104,
"Stores cannot sell everything on sale, or they would close."
],
[
4.323,
"A store pays for goods, and then raises the price to make a profit."
],
[
8.516,
"That increase is called a markup."
],
[
10.521,
"A game costs the store forty dollars, and it marks the game up twenty percent."
],
[
15.846,
"Twenty percent is zero point two zero."
],
[
19.049,
"Zero point two zero times forty is eight dollars, the markup."
],
[
23.802,
"Add it to the cost: forty plus eight is forty-eight dollars."
],
[
28.385,
"Or in one step, one point two times forty."
]
]
},
"markorig": {
"dur": 34.584,
"marks": {
"start": 0.104,
"pct": 9.753,
"eq": 18.294,
"divide": 24.818,
"check": 29.271
},
"cues": [
[
0.104,
"Work backward from a markup."
],
[
1.888,
"A bakery charges five dollars and eight cents for a cake, after a seventy percent markup."
],
[
7.878,
"What did the cake cost the bakery?"
],
[
9.753,
"The cost is one hundred percent, and the markup is seventy percent more, so the price is one hundred seventy percent of the cost."
],
[
18.294,
"As a decimal, one point seven."
],
[
20.781,
"Five oh eight equals one point seven times the cost."
],
[
24.818,
"Divide by one point seven."
],
[
26.849,
"The cost is about two ninety-nine."
],
[
29.271,
"Check forward: one point seven times two ninety-nine is about five oh eight."
]
]
},
"updown": {
"dur": 33.168,
"marks": {
"start": 0.091,
"down": 7.839,
"up": 13.151,
"note": 21.341
},
"cues": [
[
0.091,
"Now a discount and a markup together."
],
[
2.708,
"A bed costs two hundred dollars."
],
[
5.169,
"First it is marked down thirty percent."
],
[
7.839,
"Thirty percent of two hundred is sixty, so the bed is one hundred forty."
],
[
13.151,
"Then it is marked up twenty percent."
],
[
15.156,
"Twenty percent of one hundred forty is twenty-eight, so the price is one sixty-eight."
],
[
21.341,
"Thirty down and twenty up does not leave ten percent off, which would be one eighty."
],
[
27.057,
"Each percent is taken from the price at that moment, and the second step started from a smaller price."
]
]
},
"q3": {
"dur": 5.736,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.094,
"Up twenty-five percent, then down twenty-five percent."
],
[
4.792,
"Where does it end?"
]
]
},
"wrap": {
"dur": 27.936,
"marks": {
"w1": 1.276,
"w2": 9.258,
"w3": 16.849,
"w4": 23.568
},
"cues": [
[
0.13,
"Four habits."
],
[
1.276,
"A discount is a percent of the original price, and you subtract it."
],
[
5.729,
"A markup is a percent of the cost, and you add it."
],
[
9.258,
"Sale price is one minus the rate times the price."
],
[
13.125,
"Marked-up price is one plus the rate times the cost."
],
[
16.849,
"To work back, divide by seventy percent, or one point seven, whichever you used going forward."
],
[
23.568,
"Two changes in a row?"
],
[
24.948,
"Do one at a time, each from the current price."
]
]
},
"final1": {
"dur": 4.056,
"marks": {},
"cues": [
[
0.117,
"Chapter practice one."
],
[
1.576,
"Discounts and sale prices."
]
]
},
"final2": {
"dur": 4.968,
"marks": {},
"cues": [
[
0.091,
"Chapter practice two."
],
[
1.667,
"Originals, a second discount, and percent off."
]
]
},
"final3": {
"dur": 3.792,
"marks": {},
"cues": [
[
0.104,
"Chapter practice three."
],
[
1.758,
"Markups, and mixing up and down."
]
]
},
"finish": {
"dur": 3.216,
"marks": {},
"cues": [
[
0.104,
"That is the end of the chapter on discounts and markups."
]
]
}
};