SOURCE / PINNED RELEASE
Made of little things.
Morse Tree
- Release
- 52c388d28ec3…
- Author-recorded commit
- fd8192a198f7…
- License
- LICENSE
- Author’s source reference
- nostr://npub1eg5pfnws6tg6rtp33tugpppqtv5u05crmf983qp438cdycwzngys0gxzcs/wss%3A%2F%2Fgit.napplet.soy%2F/n-6ab5aa84ba1
Archive hash verified: 9d22ca7f5a712965…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Morse Tree</title>
<meta name="description" content="Learn Morse code on its binary tree: dots go left, dashes go right. Tap a letter to hear it and see it flashed from the boat; key dots and dashes on one straight key with real Morse timing to walk the tree and write." />
</head>
<body>
<main id="app" class="app">
<section class="tape" aria-label="Written text">
<div class="tape-paper">
<div id="tapeText" class="tape-text" aria-live="polite"></div>
</div>
<div class="tape-actions">
<button id="playTape" type="button" class="chip" title="Play the written text" aria-label="Play the written text">▶</button>
<button id="backspace" type="button" class="chip" title="Delete last letter (Backspace)" aria-label="Delete last letter">⌫</button>
<button id="clearTape" type="button" class="chip" title="Clear the tape" aria-label="Clear the tape">✕</button>
</div>
</section>
<section id="sea" class="sea" aria-label="A house on the cliff and a boat signal each other with Morse light">
<svg class="house" viewBox="0 0 120 80" role="img" aria-label="The house: the lamp on its balcony flashes when you key">
<title>The house</title>
<polygon class="beam" points="64,16 190,1 190,33" />
<path class="cliff" d="M-4 84 L-4 34 Q22 26 50 31 Q74 35 86 50 Q96 64 104 84 Z" />
<rect class="wall" x="16" y="17" width="34" height="15" rx="1.5" />
<polygon class="roof" points="11,18 33,5 55,18" />
<rect class="window" x="22" y="21" width="7" height="6" rx="1" />
<rect class="door" x="37" y="22" width="7" height="10" rx="1" />
<rect class="balcony" x="50" y="24" width="15" height="2.4" rx="1" />
<polyline class="post" points="51,24 51,20 64,20 64,24" />
<line class="post rail" x1="55.5" y1="20" x2="55.5" y2="24" />
<line class="post rail" x1="60" y1="20" x2="60" y2="24" />
<circle class="glow" cx="64" cy="16" r="13" />
<circle class="lamp" cx="64" cy="16" r="4.2" />
</svg>
<span class="waves"></span>
<svg class="boat" viewBox="0 0 120 80" role="img" aria-label="The boat: its lamp flashes the Morse you receive">
<title>The boat</title>
<g class="boat-body">
<polygon class="beam" points="70,25 -70,8 -70,44" />
<line class="mast" x1="40" y1="52" x2="40" y2="10" />
<polyline class="rig" points="12,50 40,12 104,50" />
<rect class="cabin" x="56" y="33" width="30" height="19" rx="2" />
<rect class="window" x="61" y="38" width="7" height="6" rx="1" />
<rect class="window" x="73" y="38" width="7" height="6" rx="1" />
<path class="hull" d="M6 51 L114 51 L101 70 L19 70 Z" />
<line class="post" x1="70" y1="33" x2="70" y2="29" />
<circle class="glow" cx="70" cy="25" r="13" />
<circle class="lamp" cx="70" cy="25" r="4.2" />
</g>
</svg>
</section>
<section id="stage" class="stage">
<svg id="tree" class="tree" role="group" aria-label="Morse code tree: dot goes left, dash goes right"></svg>
<div id="compact" class="compact" aria-hidden="true"></div>
</section>
<div id="banner" class="banner" aria-live="polite"></div>
<section class="timing" aria-label="Your timing">
<span id="rhythm" class="rhythm">rhythm</span>
<svg id="strip" class="strip" aria-hidden="true"></svg>
</section>
<section class="keys" aria-label="Morse key">
<div class="tools" role="toolbar" aria-label="Options">
<button id="quizToggle" type="button" class="chip" title="Listening quiz (Shift+Q)" aria-pressed="false">🎧</button>
<button id="lightQuizToggle" type="button" class="chip" title="Light quiz: read the lamp on the boat (Shift+L)" aria-pressed="false">🚢</button>
<button id="speedToggle" type="button" class="chip chip-text" title="Speed in words per minute">8</button>
<button id="soundToggle" type="button" class="chip" title="Sound on/off" aria-pressed="true">🔊</button>
</div>
<button id="morseKey" type="button" class="key" aria-label="Morse key: tap for dot, hold for dash (Space)">
<span class="key-label"><span class="key-dit">tap ●</span><span class="key-dah">hold ▬</span></span>
<span class="meter" aria-hidden="true">
<span id="meterFill" class="meter-fill"></span>
<span class="meter-ideal ideal-dit"></span>
<span class="meter-split"></span>
<span class="meter-ideal ideal-dah"></span>
</span>
</button>
</section>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
