Skip to content

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

9.8 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Shooting an Elephant</title>
<meta name="description" content="A short interactive documentary of George Orwell’s 1936 essay, in his own words: the reader holds the rifle.">
<link rel="stylesheet" href="lib/fonts.css">
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
<style>
  :root { --ink: #f3ede0; --soft: #bccdb9; --paper: #1d3527; --card: #172b20; --line: #355443; --accent: #c0392b; --accent-text: #ec7b6b;
    --on-ink: #1d3527; --ink-hover: #fffaf0; --shadow: #0006; --select: #f3ede055;
    --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: dark; }
  * { box-sizing: border-box; }
  html, body { overflow-x: clip; }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--ui); }
  ::selection { background: var(--select); }
  a { color: var(--accent); }
  a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
  h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p { text-wrap: pretty; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 40px; }
  .cover { display: block; border-radius: 10px; }
  .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
  .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
  .back:hover { color: var(--ink); }
  h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
  .lede { margin: 0; font-size: 20px; color: var(--soft); }
  .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
  .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .watch:hover { background: var(--ink-hover); }
  .watch:active { transform: translateY(1px); }
  .watch:focus-visible { border-radius: 99px; }
  .watch svg { width: 11px; height: 13px; fill: currentColor; }
  .seen { color: var(--accent-text); font-style: normal; }
  main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
  h2 { margin: 40px 0 16px; font: 700 32px/1.2 var(--serif); }
  @media (prefers-reduced-motion: reduce) { .watch { transition: none; } .watch:active { transform: none; } }
  @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } }
  .credits { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; line-height: 1.6; }
  .credits > p { max-width: 70ch; } .credits h3 { margin: 24px 0 6px; font: 600 16px/1.3 var(--ui); color: var(--ink); }
  .credits ul { margin: 0; padding-left: 18px; columns: 2 340px; } .credits a { color: inherit; }
</style>
</head>
<body>
<header class="hero">
  <a class="cover" href="ch01/" tabindex="-1"><img src="img/cover.webp" width="1400" height="788" alt="An elephant grazing in a flooded paddy field, in black and white."></a>
  <div>
    <a class="back" href="../">← Bookshelf</a>
    <h1>Shooting an Elephant</h1>
    <p class="lede">George Orwell’s 1936 essay, told in his own words: a young police officer in Burma, an elephant in a paddy field, and a crowd that wants a shot. This time the reader holds the rifle.</p>
    <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
      <span>9 minutes</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
  </div>
</header>
<section class="credits">
  <h2>Sources and credits</h2>
  <p>The words are George Orwell’s, from “Shooting an Elephant” (<i>New Writing</i>, 1936), cut but not rewritten, read by an ElevenLabs v4 voice (“daniel”); the crowd’s laughter is six more ElevenLabs voices. Archive pictures, music and two sound recordings are public-domain or CC0 works from Wikimedia Commons, listed below. Where no photograph exists, the scenes are reconstructions made with an image model (gpt-image via OpenRouter): Orwell as the young officer, the orderly, the football match, the rampage, the body, the double rifle, the club, the painted town of Moulmein, and the grazing elephant and every stage of its shooting, including the cover; the novice who turns and grins is an altered archive photograph. The silhouettes, maps and theatre are drawn in code, as are the other sound effects. 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%3AOrwellBurmaPassport.jpg">OrwellBurmaPassport.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_Funeral_procession_1900.jpg">Burmese Funeral procession 1900.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_monks_and_novices.jpg">Burmese monks and novices.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_showing_British_acquisitions_%281826-1890%29.jpg">Burma showing British acquisitions (1826-1890).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_Military_Police_1898.jpg">Burma Military Police 1898.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARangoon_Government_House.jpg">Rangoon Government House.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APrivate_audience-room_in_the_Palace_at_Mandalay%2C_used_as_the_British_Head-quarters_mess_ILN-1886-0320-0024.jpg">Private audience-room in the Palace at Mandalay, used as the British Head-quarters mess ILN-1886-0320-0024.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Burmese_Lady%2C_photograph_by_Philip_Adolphe_Klier.jpg">A Burmese Lady, photograph by Philip Adolphe Klier.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AImperial_Federation%2C_Map_of_the_World_Showing_the_Extent_of_the_British_Empire_in_1886_%28levelled%29.jpg">Imperial Federation, Map of the World Showing the Extent of the British Empire in 1886 (levelled).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACandlestick_Telephone_with_Note_Pad.png">Candlestick Telephone with Note Pad.png</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWinchester_1873_Rifle.jpg">Winchester 1873 Rifle.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant%2C_India%2C_ca._1920_%28IMP-CSCNWW33-OS16-17%29.jpg">Elephant, India, ca. 1920 (IMP-CSCNWW33-OS16-17).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_coolie_in_Calcutta_in_the_1920s.jpg">A coolie in Calcutta in the 1920s.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWhite_Horse_Final1923.jpg">White Horse Final1923.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFlickr_-_%E2%80%A6trialsanderrors_-_Kellar%2C_Levitation%2C_magician_poster%2C_ca._1894.jpg">Flickr - …trialsanderrors - Kellar, Levitation, magician poster, ca. 1894.jpg</a>, Public domain</li></ul>
  <h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Crown_of_India_Suite%2C_2._Menuetto_-_U.S._Marine_Band.ogg">The Crown of India Suite, 2. Menuetto - U.S. Marine Band.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMusopen_-_In_the_Hall_Of_The_Mountain_King.ogg">Musopen - In the Hall Of The Mountain King.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_II._The_Death_of_Aase_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - II. The Death of Aase (Musopen Symphony).flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_I._Morning_Mood_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - I. Morning Mood (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></ul>
  <h3>Sound</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AGunshots_8.ogg">Gunshots 8.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant_voice_-_trumpeting.ogg">Elephant voice - trumpeting.ogg</a>, CC0</li></ul>
</section>

<script>
'use strict';
// One entry per finished episode, in order: its folder, title, a still (16:9) with alt text, and one line.
const EPISODES = [
  { ch: 'ch01', title: 'Shooting an Elephant', minutes: 9, still: 'img/still-ch01.webp', alt: 'An elephant grazing in a flooded paddy field, in black and white.', line: 'Moulmein, 1920s: Orwell tells how he shot an elephant “solely to avoid looking a fool.” You aim, and you fire.' },
];
// The player records finished episodes under the same key as here (engine progress(): lib/book.css --progress-key,
// else this folder's path).
const key = getComputedStyle(document.documentElement).getPropertyValue('--progress-key').trim().replace(/^["']|["']$/g, '')
  || 'animebook:progress:' + new URL('.', location.href).pathname;
let done = [];
try { done = JSON.parse(localStorage.getItem(key) || '{}').done || []; } catch {}
if (EPISODES.some(e => done.includes(+e.ch.slice(2)))) document.getElementById('seen').hidden = false;
</script>
</body>
</html>