An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat(madness-shorts): episode 3, Liberation
yzr01a8e20b4853
diff --git a/site/madness-shorts/ch03/audio/bgm/ep3.mp3 b/site/madness-shorts/ch03/audio/bgm/ep3.mp3new file mode 100644index 0000000..2b398aeBinary files /dev/null and b/site/madness-shorts/ch03/audio/bgm/ep3.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/card.mp3 b/site/madness-shorts/ch03/audio/en/card.mp3new file mode 100644index 0000000..c57289bBinary files /dev/null and b/site/madness-shorts/ch03/audio/en/card.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/end.mp3 b/site/madness-shorts/ch03/audio/en/end.mp3new file mode 100644index 0000000..756d0e9Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/end.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/hook.mp3 b/site/madness-shorts/ch03/audio/en/hook.mp3new file mode 100644index 0000000..33a1ee3Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/hook.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/legend.mp3 b/site/madness-shorts/ch03/audio/en/legend.mp3new file mode 100644index 0000000..4eca077Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/legend.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/moral.mp3 b/site/madness-shorts/ch03/audio/en/moral.mp3new file mode 100644index 0000000..7eeb4b9Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/moral.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/pinel.mp3 b/site/madness-shorts/ch03/audio/en/pinel.mp3new file mode 100644index 0000000..9825a45Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/pinel.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/recap.mp3 b/site/madness-shorts/ch03/audio/en/recap.mp3new file mode 100644index 0000000..4bb9476Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/recap.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/tea.mp3 b/site/madness-shorts/ch03/audio/en/tea.mp3new file mode 100644index 0000000..8f79f7eBinary files /dev/null and b/site/madness-shorts/ch03/audio/en/tea.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/timings.js b/site/madness-shorts/ch03/audio/en/timings.jsnew file mode 100644index 0000000..cc6b13c--- /dev/null+++ b/site/madness-shorts/ch03/audio/en/timings.js@@ -0,0 +1,253 @@+window.TIMINGS = {+ "hook": {+ "dur": 6.64,+ "marks": {+ "chains": 2.36,+ "guard": 4.18,+ "inside": 4.96+ },+ "cues": [+ [+ 0.1,+ "Two hundred years ago, the madmen's chains came off."+ ],+ [+ 3.44,+ "And the guard moved inside their heads."+ ]+ ]+ },+ "card": {+ "dur": 5.68,+ "marks": {+ "mf": 0.0,+ "mc": 1.0,+ "three": 3.38,+ "lib": 4.42+ },+ "cues": [+ [+ 0.0,+ "Michel Foucault's Madness and Civilization."+ ],+ [+ 3.38,+ "Part three:"+ ],+ [+ 4.42,+ "liberation."+ ]+ ]+ },+ "recap": {+ "dur": 5.28,+ "marks": {+ "chained": 1.56,+ "shown": 3.0+ },+ "cues": [+ [+ 0.0,+ "Last time, the mad were chained to walls, and shown to visitors like animals."+ ]+ ]+ },+ "pinel": {+ "dur": 6.4,+ "marks": {+ "paris": 1.0,+ "pinel": 3.5,+ "struck": 5.16+ },+ "cues": [+ [+ 0.0,+ "Then, in revolutionary Paris, a doctor, Philippe Pinel, had their chains struck off."+ ]+ ]+ },+ "legend": {+ "dur": 6.64,+ "marks": {+ "legend": 1.14,+ "calm": 2.3,+ "grateful": 3.68,+ "iron": 5.14+ },+ "cues": [+ [+ 0.0,+ "A painting made it a legend:"+ ],+ [+ 2.3,+ "the calm doctor, the grateful women, the iron on the floor."+ ]+ ]+ },+ "tuke": {+ "dur": 7.44,+ "marks": {+ "tuke": 1.34,+ "york": 3.84,+ "kind": 5.04,+ "work": 5.66,+ "family": 6.56+ },+ "cues": [+ [+ 0.0,+ "In England, the Quaker William Tuke opened a quiet house in York:"+ ],+ [+ 5.04,+ "kindness, work, family life."+ ]+ ]+ },+ "triumph": {+ "dur": 5.2,+ "marks": {+ "birth": 1.14,+ "triumph": 3.36+ },+ "cues": [+ [+ 0.0,+ "History books call it the birth of psychiatry:"+ ],+ [+ 3.28,+ "a triumph of humanity."+ ]+ ]+ },+ "turn": {+ "dur": 5.04,+ "marks": {+ "mf": 0.0,+ "what": 3.32+ },+ "cues": [+ [+ 0.0,+ "Foucault doesn't deny the chains came off."+ ],+ [+ 2.88,+ "He asks what took their place."+ ]+ ]+ },+ "watched": {+ "dur": 10.0,+ "marks": {+ "beaten": 0.94,+ "watched": 2.6,+ "judged": 3.6,+ "ashamed": 5.5,+ "father": 7.9,+ "judge": 9.14+ },+ "cues": [+ [+ 0.0,+ "The patient isn't beaten anymore."+ ],+ [+ 2.46,+ "He's watched."+ ],+ [+ 3.6,+ "Judged."+ ],+ [+ 4.3,+ "Taught to feel ashamed, by a doctor who is his father and his judge."+ ]+ ]+ },+ "tea": {+ "dur": 10.88,+ "marks": {+ "tea": 1.74,+ "behave": 4.78,+ "door": 7.04,+ "inside": 8.58+ },+ "cues": [+ [+ 0.0,+ "At York, patients came to tea parties, in their best clothes, on their best behaviour."+ ],+ [+ 6.14,+ "The guard wasn't at the door anymore."+ ],+ [+ 8.36,+ "He was inside the patient's own head."+ ]+ ]+ },+ "moral": {+ "dur": 8.72,+ "marks": {+ "q": 0.86,+ "lib": 4.48,+ "opp": 6.62+ },+ "cues": [+ [+ 0.0,+ "Foucault calls it a gigantic moral imprisonment."+ ],+ [+ 3.86,+ "We call it liberation, he says:"+ ],+ [+ 6.62,+ "naming a thing by its opposite."+ ]+ ]+ },+ "end": {+ "dur": 10.48,+ "marks": {+ "off": 0.68,+ "inside": 2.36,+ "sil": 4.68,+ "almost": 6.34,+ "next": 7.82+ },+ "cues": [+ [+ 0.0,+ "The chains were off."+ ],+ [+ 1.62,+ "The guard was inside."+ ],+ [+ 3.66,+ "And madness fell silent."+ ],+ [+ 6.34,+ "Almost."+ ],+ [+ 7.82,+ "Part four:"+ ],+ [+ 8.84,+ "the last voices."+ ]+ ]+ }+};diff --git a/site/madness-shorts/ch03/audio/en/triumph.mp3 b/site/madness-shorts/ch03/audio/en/triumph.mp3new file mode 100644index 0000000..be0781bBinary files /dev/null and b/site/madness-shorts/ch03/audio/en/triumph.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/tuke.mp3 b/site/madness-shorts/ch03/audio/en/tuke.mp3new file mode 100644index 0000000..4692f8dBinary files /dev/null and b/site/madness-shorts/ch03/audio/en/tuke.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/turn.mp3 b/site/madness-shorts/ch03/audio/en/turn.mp3new file mode 100644index 0000000..bd41389Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/turn.mp3 differdiff --git a/site/madness-shorts/ch03/audio/en/watched.mp3 b/site/madness-shorts/ch03/audio/en/watched.mp3new file mode 100644index 0000000..e18f131Binary files /dev/null and b/site/madness-shorts/ch03/audio/en/watched.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/bang.mp3 b/site/madness-shorts/ch03/audio/sfx/bang.mp3new file mode 100644index 0000000..bca3598Binary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/bang.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/chain.mp3 b/site/madness-shorts/ch03/audio/sfx/chain.mp3new file mode 100644index 0000000..6c285acBinary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/chain.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/clang.mp3 b/site/madness-shorts/ch03/audio/sfx/clang.mp3new file mode 100644index 0000000..e8fe1bdBinary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/clang.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/crack.mp3 b/site/madness-shorts/ch03/audio/sfx/crack.mp3new file mode 100644index 0000000..b1996cdBinary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/crack.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/door.mp3 b/site/madness-shorts/ch03/audio/sfx/door.mp3new file mode 100644index 0000000..7bc110bBinary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/door.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/latch.mp3 b/site/madness-shorts/ch03/audio/sfx/latch.mp3new file mode 100644index 0000000..678c5d0Binary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/latch.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/page.mp3 b/site/madness-shorts/ch03/audio/sfx/page.mp3new file mode 100644index 0000000..3e80547Binary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/page.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/thud.mp3 b/site/madness-shorts/ch03/audio/sfx/thud.mp3new file mode 100644index 0000000..41e5a96Binary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/thud.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/tick.mp3 b/site/madness-shorts/ch03/audio/sfx/tick.mp3new file mode 100644index 0000000..2e1e687Binary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/tick.mp3 differdiff --git a/site/madness-shorts/ch03/audio/sfx/whoosh.mp3 b/site/madness-shorts/ch03/audio/sfx/whoosh.mp3new file mode 100644index 0000000..6c63e5eBinary files /dev/null and b/site/madness-shorts/ch03/audio/sfx/whoosh.mp3 differdiff --git a/site/madness-shorts/ch03/index.html b/site/madness-shorts/ch03/index.htmlnew file mode 100644index 0000000..f3e7c1d--- /dev/null+++ b/site/madness-shorts/ch03/index.html@@ -0,0 +1,320 @@+<!doctype html>+<html lang="en" data-stage="portrait">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Madness and Civilization · 3 · Liberation</title>+<link rel="stylesheet" href="../lib/engine.css">+<link rel="expect" href="#bar" blocking="render">+</head>+<body>+<script src="../lib/engine.js"></script>+<script src="audio/en/timings.js"></script>+<script src="../img/art.js"></script>+<script src="../lib/icons.js"></script>+<script src="../lib/lines.js"></script>+<script src="../lib/europe.js"></script>+<script src="../lib/shorts.js"></script>+<script src="../lib/madness.js"></script>+<script>+'use strict';+const CHAPTER = { number: 3, title: 'Liberation', minutes: 2, language: 'en' };+// this episode's pictures (books/madness-shorts/art/ch03-full.py), kept out of the shared img/art.js+Object.assign(ART, { 'e3-guard': [864, 1536], 'e3-head': [864, 1536], 'e3-unchain': [864, 1536], 'e3-watched': [864, 1536],+ 'e3-judge': [864, 1536], 'e3-door-empty': [864, 1536], 'e3-beaten': [864, 1536], 'e3-tea': [864, 1536],+ 'e3-silent': [864, 1536], 'e3-pinel': [1400, 971], 'e3-york': [1862, 1139], 'e3-hogarth': [1920, 1677],+ 'e3-bastille': [1874, 1343], 'e3-chained': [1440, 1920], 'e3-fool-chained': [916, 970] });+const FLEURY = 'Tony Robert-Fleury, Pinel at the Salpêtrière, 1876';+// like wide(), but the point (fx, fy) goes to (CX, sy) and the picture may end inside the frame (the shot's ground+// shows below it): keys [t, fx, fy, s, sy]. For a subject at a picture's bottom edge, lifted out of the platform's UI zone.+function lifted(g, name, keys) {+ const [iw, ih] = ART[name], k = Math.max(H / ih, W / iw), Ws = iw * k, Hs = ih * k;+ const im = G(g, {});+ mk('image', { href: `../img/${name}.webp`, x: -Ws / 2, y: -Hs / 2, width: Ws, height: Hs }, im);+ const at = ([, fx, fy, s, sy]) => ({ x: CX - s * (fx - .5) * Ws, y: sy - s * (fy - .5) * Hs, s });+ put(im, at(keys[0]));+ keys.slice(1).forEach((key, i) => { const t = keys[i][0]; tw(im, at(key), t, key[0] - t, io); });+ return im;+}++/* ---------- beats ---------- */+const OPEN_PRE = .3;+const BEATS = [+ // 0. The hook: a chained woman of the Salpêtrière, the iron on the floor, the keeper, the keeper inside the head+ ['hook', 'The hook', (m, D) => {+ const p = panel(0);+ const ch = m('chains'), gd = m('guard'), ins = m('inside');+ let s = shot(p, 0, ch);+ wide(s, 'e3-chained', [[0, .42, .2, 1.7], [ch - .6, .44, .23, 1.82], [ch + .2, .55, .45, 1.9]]);+ srcTag(s, FLEURY + ' (detail)', 50, 150, 0);+ word(s, '200 years ago', CX, 250, 0, { size: 96, fill: '#fff', stroke: DARK });+ // the chains came off: the iron lying on the floor+ s = shot(p, ch, gd, { bg: BURG, whip: true });+ lifted(s, 'e3-pinel', [[ch, .6, .9, 1.4, 1000], [gd + .3, .62, .9, 1.55, 1000]]);+ srcTag(s, FLEURY, 50, 150, ch);+ sfx('hook', ch + .1, 'chain', 1.2);+ word(s, 'Chains off', CX, 330, ch + .05, { size: 170, fill: '#fff', stroke: DARK });+ // the guard; then the same guard inside the Fool's head+ s = shot(p, gd, ins);+ photo(s, 'e3-guard', gd, ins + .3, { s0: 1.06, s1: 1.12 });+ word(s, 'The guard', CX, 300, gd + .05, { size: 150, fill: '#fff', stroke: DARK });+ s = shot(p, ins, undefined, { swipe: true });+ wide(s, 'e3-head', [[ins, .5, .5, 1.0], [D + 1, .55, .42, 1.15]]);+ srcTag(s, 'AI illustration', 50, 150, ins);+ word(s, 'Inside', CX, 300, ins + .05, { size: 190, fill: RED, stroke: DARK });+ word(s, 'their heads', CX, 430, ins + .3, { size: 130, fill: '#fff', stroke: DARK });+ sfx('hook', ins + .1, 'latch', 1.2);+ }, { pre: OPEN_PRE }],++ // 1. Who says so, and which episode this is+ ['card', 'Part three', (m, D) => {+ const p = panel(0);+ const three = m('three');+ let s = shot(p, 0, three, { bg: BURG });+ const mf = traced(s, 'mf-front', { x: CX, y: 720, h: 860, at: 0, draw: 1.0 });+ tw(mf, { s: 1.12, y: 690 }, .8, three - .5, lin);+ label(s, 'Michel Foucault', CX, 1230, 0, { size: 60, fill: LIGHT, colour: DARK });+ quote(s, ['Madness and Civilization, 1961'], 1330, m('mc'), { size: 52, fill: MUTED });+ s = shot(p, three, undefined, { bg: BURG, swipe: true });+ seriesCard(s, three, 3, m('lib'));+ }],++ // 2. Part two in one breath: the Fool chained, the madmen shown for a penny+ ['recap', 'Last time', (m, D) => {+ const p = panel(0);+ const cd = m('chained'), sh = m('shown');+ let s = shot(p, 0, sh, { bg: BURG });+ const f = plate(s, 'e3-fool-chained', CX, 660, { h: 800 });+ tw(f, { s: 1.08 }, 0, sh, lin);+ label(s, 'Last time', CX, 230, 0, { size: 60, fill: RED, colour: DARK });+ word(s, 'Chained', CX, 1200, cd, { size: 170, fill: LIGHT });+ sfx('recap', cd + .05, 'chain', .9);+ s = shot(p, sh, undefined, { whip: true });+ wide(s, 'e3-hogarth', [[sh, .66, .42, 1.25], [D + 1, .62, .44, 1.45]]);+ srcTag(s, 'Hogarth, A Rake’s Progress, plate 8 (Bedlam), 1735', 50, 150, sh);+ word(s, 'Shown', CX, 1150, sh + .05, { size: 170, fill: '#fff', stroke: DARK });+ label(s, 'like animals', CX, 1270, sh + .9, { size: 64 });+ }],++ // 3. Pinel: revolutionary Paris; the doctor; the collar struck off+ ['pinel', 'Pinel', (m, D) => {+ const p = panel(0);+ const pa = m('paris'), pn = m('pinel'), sk = m('struck');+ let s = shot(p, 0, pn);+ wide(s, 'e3-bastille', [[0, .27, .42, 1.15], [pn + .3, .42, .7, 1.35]]);+ srcTag(s, 'Jean-Pierre Houël, The Storming of the Bastille, 1789', 50, 150, 0);+ band(s, ['Revolutionary', 'Paris'], 1150, pa + .05, { size: 76, step: .3 });+ s = shot(p, pn, sk, { whip: true });+ wide(s, 'e3-pinel', [[pn, .29, .33, 1.3], [sk + .3, .29, .3, 1.42]]);+ srcTag(s, FLEURY, 50, 150, pn);+ label(s, 'Philippe Pinel', CX, 1200, pn + .1, { size: 76 });+ stamp(s, '1793', CX, 330, pn + .6, { size: 150, colour: '#b3201a' });+ s = shot(p, sk, undefined, { swipe: true });+ photo(s, 'e3-unchain', sk, D + .8, { s0: 1.0, s1: 1.14, dx: 30, dy: 40 });+ sfx('pinel', sk + .05, 'clang', 1.1); sfx('pinel', sk + .3, 'chain', 1);+ stamp(s, 'UNCHAINED', CX, 1180, sk + .45, { size: 120, colour: '#b3201a' });+ }],++ // 4. The painting that made it a legend: one close-up per thing named+ ['legend', 'A legend', (m, D) => {+ const p = panel(0);+ const lg = m('legend'), ca = m('calm'), gr = m('grateful'), ir = m('iron');+ let s = shot(p, 0, ca, { bg: BURG });+ const pic = plate(s, 'e3-pinel', CX, 720, { w: 860 });+ tw(pic, { s: 1.12 }, 0, ca + .3, lin);+ label(s, 'A painting, 1876', CX, 330, .1, { size: 60, fill: LIGHT, colour: DARK });+ word(s, 'A legend', CX, 1180, lg, { size: 170, fill: RED });+ sfx('legend', lg, 'page', .7);+ s = shot(p, ca, gr, { whip: true });+ wide(s, 'e3-pinel', [[ca, .29, .3, 1.35], [gr + .3, .29, .28, 1.45]]);+ srcTag(s, FLEURY, 50, 150, ca);+ label(s, 'The calm doctor', CX, 1200, ca + .05, { size: 72 });+ s = shot(p, gr, ir, { whip: true });+ wide(s, 'e3-pinel', [[gr, .17, .6, 1.4], [ir + .3, .19, .58, 1.5]]);+ label(s, 'The grateful women', CX, 1200, gr + .05, { size: 72 });+ s = shot(p, ir, undefined, { bg: BURG, whip: true });+ lifted(s, 'e3-pinel', [[ir, .58, .9, 1.5, 980], [D + 1, .62, .91, 1.7, 980]]);+ label(s, 'The iron on the floor', CX, 330, ir + .05, { size: 72 });+ sfx('legend', ir + .1, 'chain', .7);+ }],++ // 5. Tuke's Retreat at York, and what it promised+ ['tuke', 'Tuke', (m, D) => {+ const p = panel(0);+ const tk = m('tuke'), yk = m('york'), ki = m('kind'), wk = m('work'), fa = m('family');+ let s = shot(p, 0, tk);+ wide(s, 'e3-york', [[0, .22, .58, 1.1], [tk + .3, .3, .56, 1.25]]);+ srcTag(s, 'The Retreat, York (engraving after Cave, 19th c.)', 50, 150, 0);+ label(s, 'England', CX, 1200, 0, { size: 80 });+ s = shot(p, tk, yk, { whip: true });+ wide(s, 'e3-york', [[tk, .45, .56, 1.25], [yk + .3, .52, .56, 1.4]]);+ band(s, ['William Tuke', 'a Quaker'], 260, tk + .05, { size: 72, step: .4 });+ s = shot(p, yk, ki);+ wide(s, 'e3-york', [[yk, .62, .54, 1.75], [ki + .3, .64, .53, 1.9]]);+ label(s, 'The Retreat, York, 1796', CX, 1200, yk + .05, { size: 64, fill: LIGHT, colour: DARK });+ sfx('tuke', yk, 'tick', .8);+ s = shot(p, ki, undefined, { swipe: true });+ wide(s, 'e3-york', [[ki, .6, .55, 1.6], [D + 1, .64, .54, 1.85]]);+ rect(s, 0, 0, W, H, { fill: DARK, opacity: .45 });+ [['Kindness', ki], ['Work', wk], ['Family life', fa]].forEach(([str, t], i) => {+ word(s, str, CX, 560 + i * 200, t, { size: 160, fill: i === 2 ? RED : '#fff', stroke: DARK });+ sfx('tuke', t, 'tick', .9);+ });+ }],++ // 6. The textbook version: psychiatry born, a triumph+ ['triumph', 'A triumph', (m, D) => {+ const p = panel(0);+ const bi = m('birth'), tr = m('triumph');+ let s = shot(p, 0, tr);+ wide(s, 'e3-silent', [[0, .5, .5, 1.0], [tr + .3, .5, .42, 1.25]]);+ srcTag(s, 'AI illustration', 50, 150, 0);+ label(s, 'History books', CX, 230, 0, { size: 60, fill: LIGHT, colour: DARK });+ band(s, ['The birth', 'of psychiatry'], 1230, bi, { size: 76, step: .35 });+ s = shot(p, tr, undefined, { whip: true });+ wide(s, 'e3-pinel', [[tr, .44, .4, 1.0], [D + 1, .38, .38, 1.15]]);+ rect(s, 0, 0, W, H, { fill: '#000', opacity: .2 });+ srcTag(s, FLEURY, 50, 150, tr);+ word(s, 'A triumph', CX, 1060, tr + .05, { size: 170, fill: '#fff', stroke: DARK });+ word(s, 'of humanity', CX, 1210, tr + .4, { size: 130, fill: RED, stroke: DARK });+ }],++ // 7. Foucault doesn't deny it; he asks what took the chains' place+ ['turn', 'Foucault asks', (m, D) => {+ const p = panel(0);+ const wt = m('what');+ let s = shot(p, 0, wt, { bg: BURG });+ traced(s, 'mf-profile', { x: CX, y: 600, h: 760, at: 0, draw: 1.4 });+ label(s, 'Foucault', CX, 180, 0, { size: 60, fill: LIGHT, colour: DARK });+ const c = plate(s, 'chain', CX, 1140, { w: 600, t0: 1.0, dy: -120 });+ sfx('turn', 1.1, 'chain', .8);+ label(s, 'Yes, the chains came off', CX, 1300, 1.4, { size: 56, fill: LIGHT, colour: DARK });+ s = shot(p, wt, undefined, { bg: DARK, swipe: true });+ const c2 = plate(s, 'chain', CX, 1180, { w: 600 });+ tw(c2, { o: .25 }, wt + .2, .6);+ const wq = G(s, {});+ word(wq, 'What took', CX, 560, wt + .05, { size: 150, fill: LIGHT });+ word(wq, 'their place?', CX, 740, wt + .3, { size: 150, fill: RED });+ tw(wq, { s: 1.12, x: -54, y: -70 }, wt + .3, D - wt + 1, lin);+ }],++ // 8. Not beaten: watched, judged, ashamed; the doctor as father and judge+ ['watched', 'Watched', (m, D) => {+ const p = panel(0);+ const bt = m('beaten'), wa = m('watched'), ju = m('judged'), as = m('ashamed'), fa = m('father'), jd = m('judge');+ let s = shot(p, 0, wa);+ photo(s, 'e3-beaten', 0, wa + .3, { s0: 1.04, s1: 1.18, dx: -20, dy: 40 });+ const b = word(s, 'Beaten', CX, 1180, bt, { size: 170, fill: '#fff', stroke: DARK });+ strike(s, b, CX, 1180, bt + .7, 170);+ sfx('watched', bt, 'crack', .8);+ s = shot(p, wa, ju, { whip: true });+ photo(s, 'e3-watched', wa, ju + .3, { s0: 1.06, s1: 1.16, dx: 30, dy: 40 });+ word(s, 'Watched', CX, 1210, wa + .05, { size: 170, fill: '#fff', stroke: DARK });+ s = shot(p, ju, as, { whip: true });+ wide(s, 'e3-judge', [[ju, .5, .4, 1.0], [as + .3, .5, .3, 1.12]]);+ srcTag(s, 'AI illustration', 50, 150, ju);+ word(s, 'Judged', CX, 1240, ju + .05, { size: 170, fill: '#fff', stroke: DARK });+ sfx('watched', ju + .1, 'thud', 1);+ s = shot(p, as, fa);+ wide(s, 'e3-judge', [[as, .8, .66, 1.65], [fa + .3, .8, .62, 1.8]]);+ word(s, 'Ashamed', CX, 300, as + .05, { size: 160, fill: RED, stroke: DARK });+ s = shot(p, fa, undefined, { whip: true });+ wide(s, 'e3-judge', [[fa, .55, .2, 1.6], [D + 1, .55, .18, 1.75]]);+ label(s, 'His father', CX, 860, fa + .05, { size: 80 });+ label(s, 'His judge', CX, 990, jd + .05, { size: 80, fill: RED, colour: DARK });+ }],++ // 9. The tea parties: best behaviour; the guard leaves the door and is inside the head+ ['tea', 'Tea at York', (m, D) => {+ const p = panel(0);+ const C = TIMINGS.tea.cues, te = m('tea'), be = m('behave'), dr = m('door'), ins = m('inside');+ const gu = Math.max(0, C[1][0] - LEAD); // "The guard wasn't…"+ let s = shot(p, 0, te);+ wide(s, 'e3-york', [[0, .6, .54, 1.7], [te + .3, .63, .53, 1.9]]);+ label(s, 'The Retreat, York', CX, 1200, 0, { size: 72 });+ s = shot(p, te, be, { whip: true });+ wide(s, 'e3-tea', [[te, .5, .52, 1.0], [be + .3, .5, .44, 1.18]]);+ srcTag(s, 'AI illustration', 50, 150, te);+ word(s, 'Tea parties', CX, 1220, te + .05, { size: 150, fill: '#fff', stroke: DARK });+ s = shot(p, be, gu);+ wide(s, 'e3-tea', [[be, .46, .42, 1.7], [gu + .3, .47, .44, 1.85]]);+ band(s, ['Best clothes', 'best behaviour'], 1120, be - .3, { size: 72, step: .4 });+ sfx('tea', be + .2, 'tick', .6);+ // the same keeper at his door, then the door with nobody there+ s = shot(p, gu, ins, { whip: true });+ photo(s, 'e3-guard', gu, ins + .3, { s0: 1.04, s1: 1.1 });+ const em = G(s, { o: 0 });+ mk('image', { href: '../img/e3-door-empty.webp', x: 0, y: 0, width: W, height: H, preserveAspectRatio: 'xMidYMid slice' }, em);+ tw(em, { o: 1 }, dr + .45, .5);+ const g1 = word(s, 'The guard', CX, 300, gu + .05, { size: 150, fill: '#fff', stroke: DARK });+ hide(g1, dr + .35, .15);+ word(s, 'Not at the door', CX, 300, dr + .5, { size: 120, fill: '#fff', stroke: DARK });+ sfx('tea', dr + .45, 'door', .5);+ s = shot(p, ins, undefined, { swipe: true });+ wide(s, 'e3-head', [[ins, .6, .36, 1.5], [D + 1, .5, .48, 1.0]]); // from the keeper out to the whole head: the hook, reversed+ srcTag(s, 'AI illustration', 50, 150, ins);+ word(s, 'Inside', CX, 300, ins + .05, { size: 190, fill: RED, stroke: DARK });+ word(s, 'his own head', CX, 430, ins + .3, { size: 120, fill: '#fff', stroke: DARK });+ sfx('tea', ins + .15, 'latch', 1.2);+ }],++ // 10. Foucault's verdict: a gigantic moral imprisonment; liberation is its opposite's name+ ['moral', 'The verdict', (m, D) => {+ const p = panel(0);+ const q = m('q'), lb = m('lib'), op = m('opp');+ let s = shot(p, 0, lb, { bg: DARK });+ const fc = label(s, 'Foucault calls it', CX, 330, 0, { size: 60, fill: LIGHT, colour: DARK });+ hide(fc, q + 1.4, .2);+ const qt = quote(s, ['“that gigantic', 'moral', 'imprisonment”'], 640, q, { size: 110 });+ tw(qt, { s: 1.06 }, q + .3, lb - q, lin);+ T(s, '— FOUCAULT', { x: CX, y: 1060, size: 56, fill: MUTED, font: SANS, weight: 500, anchor: 'middle', o: 0 });+ show(s.lastChild, q + .8, .3);+ // the bars come down over the words+ for (let i = 0; i < 6; i++) {+ const x = 120 + i * 132, l = path(s, `M${x} 130V1300`, { stroke: LIGHT, 'stroke-width': 10, 'stroke-linecap': 'round', opacity: .35 }, { d: 0 });+ draw(l, q + 1.6 + i * .12, .45, out);+ }+ sfx('moral', q + 1.6, 'clang', .7);+ s = shot(p, lb, undefined, { bg: BURG, whip: true });+ const lw = word(s, 'Liberation', CX, 700, lb + .05, { size: 170, fill: LIGHT });+ label(s, 'Antiphrasis', CX, 420, op - .1, { size: 48, fill: DARK, colour: MUTED });+ strike(s, lw, CX, 700, op + .2, 170);+ word(s, 'Prison', CX, 960, op + .5, { size: 220, fill: RED });+ sfx('moral', op + .5, 'door', .9);+ }],++ // 11. The end answers the hook: chains off, guard inside, madness silent… almost; part four+ ['end', 'Silent', (m, D) => {+ const p = panel(0);+ const C = TIMINGS.end.cues, c1 = Math.max(0, C[1][0] - LEAD), c2 = Math.max(0, C[2][0] - LEAD);+ const si = m('sil'), al = m('almost'), nx = m('next');+ let s = shot(p, 0, c1, { bg: BURG });+ plate(s, 'chain', CX, 760, { w: 760, t0: 0, dy: -160 });+ sfx('end', .15, 'chain', 1);+ word(s, 'Chains off', CX, 1150, .1, { size: 150, fill: LIGHT });+ s = shot(p, c1, c2, { whip: true });+ wide(s, 'e3-head', [[c1, .52, .45, 1.05], [c2 + .3, .55, .42, 1.2]]);+ word(s, 'Guard inside', CX, 1220, c1 + .05, { size: 150, fill: RED, stroke: DARK });+ // the Fool sits silent; then, almost+ s = shot(p, c2, nx, { whip: true });+ wide(s, 'e3-silent', [[c2, .5, .5, 1.05], [al, .5, .45, 1.25], [nx + .3, .5, .37, 1.9]]); // in to his face on "almost"+ const sw = word(s, 'Silent', CX, 300, si, { size: 160, fill: '#fff', stroke: DARK });+ hide(sw, al - .1, .15);+ word(s, 'Almost.', CX, 300, al + .05, { size: 140, fill: RED, stroke: DARK });+ s = shot(p, nx, D, { bg: BURG, swipe: true });+ seriesCard(s, nx, 4, nx + .9);+ // and the next episode, full frame+ s = shot(p, D, undefined, { bg: DARK });+ label(s, 'Next', CX, 660, D, { size: 70, fill: RED, colour: DARK });+ word(s, 'The last voices', CX, 880, D + .05, { size: 170, fill: LIGHT });+ T(s, 'PART 4 OF 4', { x: CX, y: 990, size: 52, fill: MUTED, font: SANS, weight: 500, anchor: 'middle', o: 0 }); show(s.lastChild, D + .2, .2);+ prog(() => {}, D, 1.8, lin);+ }],+].map(shortsBeat);++// One track for the whole film; ?bgm= sets its level by ear (gain under the ducking to 30 %)+music('audio/bgm/ep3.mp3', undefined, +(new URLSearchParams(location.search).get('bgm') || .4), .05);+startShorts();+</script>+</body>+</html>diff --git a/site/madness-shorts/img/e3-bastille.webp b/site/madness-shorts/img/e3-bastille.webpnew file mode 100644index 0000000..515d91bBinary files /dev/null and b/site/madness-shorts/img/e3-bastille.webp differdiff --git a/site/madness-shorts/img/e3-beaten.webp b/site/madness-shorts/img/e3-beaten.webpnew file mode 100644index 0000000..247bf9aBinary files /dev/null and b/site/madness-shorts/img/e3-beaten.webp differdiff --git a/site/madness-shorts/img/e3-chained.webp b/site/madness-shorts/img/e3-chained.webpnew file mode 100644index 0000000..0e7ceadBinary files /dev/null and b/site/madness-shorts/img/e3-chained.webp differdiff --git a/site/madness-shorts/img/e3-door-empty.webp b/site/madness-shorts/img/e3-door-empty.webpnew file mode 100644index 0000000..36511c6Binary files /dev/null and b/site/madness-shorts/img/e3-door-empty.webp differdiff --git a/site/madness-shorts/img/e3-fool-chained.webp b/site/madness-shorts/img/e3-fool-chained.webpnew file mode 100644index 0000000..f99edaaBinary files /dev/null and b/site/madness-shorts/img/e3-fool-chained.webp differdiff --git a/site/madness-shorts/img/e3-guard.webp b/site/madness-shorts/img/e3-guard.webpnew file mode 100644index 0000000..88b1bb0Binary files /dev/null and b/site/madness-shorts/img/e3-guard.webp differdiff --git a/site/madness-shorts/img/e3-head.webp b/site/madness-shorts/img/e3-head.webpnew file mode 100644index 0000000..4620bfaBinary files /dev/null and b/site/madness-shorts/img/e3-head.webp differdiff --git a/site/madness-shorts/img/e3-hogarth.webp b/site/madness-shorts/img/e3-hogarth.webpnew file mode 100644index 0000000..4ff057eBinary files /dev/null and b/site/madness-shorts/img/e3-hogarth.webp differdiff --git a/site/madness-shorts/img/e3-judge.webp b/site/madness-shorts/img/e3-judge.webpnew file mode 100644index 0000000..505dfdcBinary files /dev/null and b/site/madness-shorts/img/e3-judge.webp differdiff --git a/site/madness-shorts/img/e3-pinel.webp b/site/madness-shorts/img/e3-pinel.webpnew file mode 100644index 0000000..074efd1Binary files /dev/null and b/site/madness-shorts/img/e3-pinel.webp differdiff --git a/site/madness-shorts/img/e3-silent.webp b/site/madness-shorts/img/e3-silent.webpnew file mode 100644index 0000000..e52c860Binary files /dev/null and b/site/madness-shorts/img/e3-silent.webp differdiff --git a/site/madness-shorts/img/e3-tea.webp b/site/madness-shorts/img/e3-tea.webpnew file mode 100644index 0000000..2042edaBinary files /dev/null and b/site/madness-shorts/img/e3-tea.webp differdiff --git a/site/madness-shorts/img/e3-unchain.webp b/site/madness-shorts/img/e3-unchain.webpnew file mode 100644index 0000000..3181571Binary files /dev/null and b/site/madness-shorts/img/e3-unchain.webp differdiff --git a/site/madness-shorts/img/e3-watched.webp b/site/madness-shorts/img/e3-watched.webpnew file mode 100644index 0000000..2ca0ca0Binary files /dev/null and b/site/madness-shorts/img/e3-watched.webp differdiff --git a/site/madness-shorts/img/e3-york.webp b/site/madness-shorts/img/e3-york.webpnew file mode 100644index 0000000..2ce0abbBinary files /dev/null and b/site/madness-shorts/img/e3-york.webp differdiff --git a/site/madness/img/still-shorts-ch03.webp b/site/madness/img/still-shorts-ch03.webpnew file mode 100644index 0000000..654dd23Binary files /dev/null and b/site/madness/img/still-shorts-ch03.webp differdiff --git a/site/madness/index.html b/site/madness/index.htmlindex adb428f..db8c9c6 100644--- a/site/madness/index.html+++ b/site/madness/index.html@@ -53,8 +53,8 @@</main><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 (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">"Off, off, you lendings–Come unbutton here" (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'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'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>+ <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, in the ward and in the asylum 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 (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">"Off, off, you lendings–Come unbutton here" (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'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'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><li><a href="https://commons.wikimedia.org/wiki/File%3APrise_de_la_Bastille_clean.jpg">Prise de la Bastille clean.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_lib%C3%A9rant_les_ali%C3%A9n%C3%A9s_de_leurs_cha%C3%AEnes_%C3%A0_l%27asile_de_la_Salp%C3%AAtri%C3%A8re_%C3%A0_Paris_en_1795_%281876%29%2C_Tony_Robert-Fleury%2C_Paris%2C_h%C3%B4pital_de_la_Salp%C3%AAtri%C3%A8re.jpg">Philippe Pinel libérant les aliénés de leurs chaînes … (1876), Tony Robert-Fleury (detail photograph).jpg</a> · CC0</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'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'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'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>@@ -67,6 +67,7 @@ const EPISODES = [// Shorts live in their own folder (../madness-shorts/), so their progress is kept under that folder's key.const SHORTS = [{ ch: 'ch01', title: 'The Ship', minutes: 2, still: 'img/still-shorts-ch01.webp', alt: 'An engraving of the Fool rowing a small boat between two walled towns, under the words Sent between.', line: 'Five hundred years ago, Europe didn’t lock up its madmen. It put them on boats.' },+ { ch: 'ch03', title: 'Liberation', minutes: 2, still: 'img/still-shorts-ch03.webp', alt: 'An engraving of the Fool in profile, his head opened like an anatomy print, with an asylum keeper holding his keys standing inside it, under the words Inside his own head.', line: 'Two hundred years ago, the madmen’s chains came off. And the guard moved inside their heads.' },];// The player records finished episodes under the same key as here (engine progress(): lib/book.css --progress-key,// else this folder's path).@@ -76,7 +77,7 @@ const doneIn = k => { try { return JSON.parse(localStorage.getItem(k) || '{}').dconst esc = s => String(s).replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"');const list = (list, base, done) => list.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}><a href="${base}${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">- <small>Episode ${i + 1} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');+ <small>Episode ${+e.ch.slice(2)} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');document.getElementById('episodes').innerHTML = list(EPISODES, '', doneIn(key));document.getElementById('shortList').innerHTML = list(SHORTS, '../madness-shorts/', doneIn('animebook:progress:' + new URL('../madness-shorts/', location.href).pathname));</script>