slidetake 0.2.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Slidetake</title>
7
- <meta name="description" content="Write in markdown. Present on a spatial canvas. Record without timeline editing: retake by slide, and get a frame-exact cut with YouTube chapters. Free and open source.">
7
+ <meta name="description" content="Write in markdown. Present on a spatial canvas. Record without timeline editing: retake by slide, and get a frame-exact cut with YouTube chapters. Open source.">
8
8
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
9
9
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
10
10
  <meta name="theme-color" content="#09090b">
@@ -18,10 +18,12 @@
18
18
  <meta property="og:image:height" content="630">
19
19
  <meta name="twitter:card" content="summary_large_image">
20
20
  <script>
21
- // Google Analytics, on slidetake.com only (not localhost, previews or self-hosted copies).
22
- // The page address it records drops the #hash, which can hold a whole deck, and ?obs=, which can hold
23
- // an OBS password.
24
- if (/^(www\.)?slidetake\.com$/.test(location.hostname)) {
21
+ // Google Analytics, on slidetake.com only (not localhost, previews or self-hosted copies), and never for a
22
+ // reader who turned it off (the Analytics button; slidetake:analytics=off in this browser). The page
23
+ // address it records drops the #hash, which can hold a whole deck, and ?obs=, which can hold an OBS password.
24
+ var analyticsOff = false;
25
+ try { analyticsOff = localStorage.getItem('slidetake:analytics') === 'off'; } catch (e) {}
26
+ if (/^(www\.)?slidetake\.com$/.test(location.hostname) && !analyticsOff) {
25
27
  var u = new URL(location.href); u.hash = ''; u.searchParams.delete('obs');
26
28
  var ga = document.createElement('script'); ga.async = true;
27
29
  ga.src = 'https://www.googletagmanager.com/gtag/js?id=G-3S9FY4MQLS';
@@ -37,7 +39,7 @@
37
39
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
38
40
  <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.2/marked.min.js"></script>
39
41
  <style>
40
- /* Every colour comes from these tokens. Slidetake's own is terminal green: bright on zinc in dark mode,
42
+ /* Every colour comes from these tokens. Slidetake's own is seafoam green: bright on zinc in dark mode,
41
43
  deep on white in light mode. A host page passes its own (window.SLIDETAKE.colors) and a deck can carry
42
44
  its own (accent: in its top block); see applyColors in app.js. */
43
45
  :root{
@@ -47,14 +49,14 @@
47
49
  --panel-line:#27272a;
48
50
  --node-bg:#18181b;
49
51
  --node-border:#323238;
50
- --accent:#4ade80;
51
- --accent-teal:#86efac; /* headings below h2 */
52
+ --accent:#29b685; /* 6.9:1 on the card: an accent, kept below body text so it doesn't glare */
53
+ --accent-teal:#3bc493; /* headings below h2 */
52
54
  --text:#e4e4e7;
53
55
  --text-muted:#a1a1aa;
54
56
  --danger:#e0645c;
55
57
  --code-bg:#0f0f12;
56
58
  --overlay:rgba(17,17,19,.9); /* breadcrumbs, nav bar, minimap */
57
- --on-accent:#052e16; /* text on an accent-filled button */
59
+ --on-accent:#022c22; /* text on an accent-filled button */
58
60
  --card-shadow:0 6px 24px rgba(0,0,0,.35);
59
61
  --brand-shadow:0 1px 6px rgba(0,0,0,.6);
60
62
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
@@ -64,18 +66,18 @@
64
66
  /* Tokens derived from others are declared on body, not :root: a custom property resolves var() where
65
67
  it is declared, so on :root these would freeze the default palette's colours. */
66
68
  body{
67
- --accent-line:#15803d; /* borders and connector lines on the active path */
69
+ --accent-line:#047857; /* borders and connector lines on the active path */
68
70
  --accent-ring:var(--accent); /* the current slide's border, glow and the progress bar */
69
71
  --edge:var(--node-border); /* connector lines off the active path */
70
72
  --header-bg:none; /* a host's band of colour behind the header (an image layer) */
71
73
  --header-ink:var(--text); /* text on that band */
72
74
  }
73
- /* Light mode (L, mode: light, ?mode=light): #15803d carries text (5.0:1 on white); the brighter green
75
+ /* Light mode (L, mode: light, ?mode=light): #047857 carries text (5.5:1 on white); the brighter seafoam
74
76
  only rings and lines, which never need to be read. */
75
77
  body[data-mode="light"]{
76
78
  --bg:#fafaf9; --grid-dot:#e7e5e4; --panel:#ffffff; --panel-line:#e4e4e7;
77
79
  --node-bg:#ffffff; --node-border:#e4e4e7; --edge:#d4d4d8;
78
- --accent:#15803d; --accent-teal:#166534; --accent-line:#4ade80; --accent-ring:#22c55e;
80
+ --accent:#047857; --accent-teal:#065f46; --accent-line:#34d399; --accent-ring:#10b981;
79
81
  --text:#27272a; --text-muted:#71717a; --danger:#c2410c;
80
82
  --code-bg:#f4f4f5; --overlay:rgba(255,255,255,.92); --on-accent:#ffffff;
81
83
  --card-shadow:0 4px 18px rgba(24,24,27,.08); --brand-shadow:0 1px 4px rgba(255,255,255,.9);
@@ -110,10 +112,25 @@
110
112
  --text:var(--header-ink);--text-muted:color-mix(in srgb, var(--header-ink) 72%, transparent);
111
113
  --node-border:color-mix(in srgb, var(--header-ink) 28%, transparent);}
112
114
  .brand{display:flex;align-items:baseline;gap:10px;}
113
- .brand .mark{font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:.02em;color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:7px;align-self:center;}
114
- .brand .mark .logo{width:20px;height:20px;fill:var(--accent);flex:none;}
115
+ /* the name and the links beside it share one baseline: the mark's baseline is its word's, the logo centred beside it */
116
+ .brand .mark{font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:.02em;color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:7px;}
117
+ .brand .mark .word{align-self:baseline;}
118
+ .brand .mark .logo{width:20px;height:20px;fill:var(--accent);flex:none;align-self:center;}
115
119
  .brand .mark .word > span{color:var(--accent);}
116
- .brand .tagline{font-family:var(--mono);font-size:13px;color:var(--text-muted);}
120
+ /* Slidetake's two-tone name in its own decks' titles, as in the header */
121
+ .node .body .st-take{color:var(--accent);}
122
+ /* the Record button's red, where a deck names the button; deeper on white so it reads */
123
+ .node .body .st-rec{color:#f87171;}
124
+ body[data-mode="light"] .node .body .st-rec{color:#dc2626;}
125
+ /* a heart in the deck's own colour, where an emoji would keep its fixed green */
126
+ .node .body .st-heart{display:inline-block;width:.9em;height:.9em;vertical-align:-.08em;background:var(--accent);
127
+ -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35 10.55 20.03C5.4 15.36 2 12.27 2 8.5 2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35 10.55 20.03C5.4 15.36 2 12.27 2 8.5 2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center/contain no-repeat;}
128
+ /* Features, Showcase, Docs and GitHub (what it is, see it, how to use it, the source) sit with the name:
129
+ they're about Slidetake, not about the deck on screen */
130
+ .brand .site-links{display:flex;align-items:center;gap:16px;align-self:center;margin-left:8px;}
131
+ .brand .site-link{font-family:var(--mono);font-size:13px;color:var(--text-muted);text-decoration:none;display:inline-flex;align-items:center;}
132
+ .brand .site-link:hover, .brand .site-link:focus-visible{color:var(--accent);}
133
+ .brand .site-link svg{width:15px;height:15px;display:block;margin-right:5px;}
117
134
  .hdr-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
118
135
  .btn{
119
136
  background:transparent;color:var(--text);
@@ -159,15 +176,31 @@
159
176
  #doc-state .edited{color:var(--accent);}
160
177
  #continue{color:var(--accent);border-color:var(--accent-line);}
161
178
  #continue[hidden]{display:none;}
179
+ #btn-analytics[hidden]{display:none;}
162
180
  .modal ul.templates{list-style:none;padding:0;display:grid;gap:8px;margin:12px 0;}
163
181
  .modal ul.templates a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--panel-line);border-radius:8px;text-decoration:none;color:var(--text);}
164
182
  .modal ul.templates a:hover{border-color:var(--accent);}
165
183
  .modal ul.templates span{font-size:12px;color:var(--text-muted);}
184
+ /* the analytics choice: two cards, the chosen one in the accent */
185
+ .modal .choices{display:grid;gap:8px;margin:12px 0;}
186
+ .modal .choice{display:flex;flex-direction:column;gap:4px;text-align:left;padding:10px 12px;border:1px solid var(--panel-line);border-radius:8px;
187
+ background:transparent;color:var(--text);font:inherit;cursor:pointer;}
188
+ .modal .choice:hover{border-color:var(--accent-line);}
189
+ .modal .choice[aria-checked="true"]{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 8%, transparent);}
190
+ .modal .choice strong{font-family:var(--display);font-size:14px;}
191
+ .modal .choice span{font-size:12px;line-height:1.55;color:var(--text-muted);}
192
+ .modal .note{font-size:12px;}
166
193
  #editor-pane.unsaved .pane-bar{box-shadow:inset 0 -2px 0 var(--accent);}
167
194
  #editor-pane.unsaved #btn-share, #editor-pane.unsaved #btn-save{border-color:var(--accent);color:var(--accent);}
168
195
  .btn.small{padding:3px 9px;font-size:11px;}
169
196
  .btn.icon{padding:4px 9px;min-width:30px;display:inline-flex;align-items:center;justify-content:center;}
170
197
  .btn.icon svg{width:15px;height:15px;display:block;}
198
+ /* in the header, icon buttons stand as tall as the layout switch and the text buttons beside them */
199
+ .hdr-actions .btn.icon{height:32px;min-width:32px;padding:0 8px;}
200
+ /* every header control is exactly 32px, whatever the font's line height, so they line up on any machine */
201
+ .hdr-actions > .btn, .hdr-actions > .seg{height:32px;}
202
+ .hdr-actions > .btn:not(.icon){padding-top:0;padding-bottom:0;}
203
+ .hdr-actions .seg-btn{height:100%;display:flex;align-items:center;padding-top:0;padding-bottom:0;}
171
204
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
172
205
  .pane-label{
173
206
  font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;
@@ -542,7 +575,7 @@
542
575
  #credit .logo{width:18px;height:18px;fill:var(--accent);}
543
576
  #credit .word > span{color:var(--accent);}
544
577
  #credit:hover{opacity:.85;}
545
- html.embed #btn-docs, html.embed #btn-github{display:none !important;}
578
+ html.embed .site-links, html.embed #btn-github, html.embed #btn-analytics{display:none !important;}
546
579
  /* a reader's page (embedded, not recording): no bottom bar, except the arrows on touch screens */
547
580
  html.embed.no-record #navbar{display:none;}
548
581
  @media (pointer:coarse){
@@ -570,6 +603,9 @@
570
603
  background:color-mix(in srgb, var(--accent-teal) 4%, transparent);
571
604
  }
572
605
  #pip[hidden]{display:none;}
606
+ /* a message in the box (no camera found, waiting for permission, a layout picked with V) */
607
+ #pip.msg span{padding:10px 14px;text-align:center;text-transform:none;letter-spacing:0;font-size:12px;line-height:1.45;color:var(--accent);
608
+ background:color-mix(in srgb, var(--panel) 88%, transparent);border-radius:6px;max-width:92%;max-height:92%;overflow:hidden;}
573
609
  #pip.circle{aspect-ratio:1;border-radius:50%;}
574
610
  #pip.top-left{top:16px;left:16px;}
575
611
  #pip.top-right{top:16px;right:16px;}
@@ -621,7 +657,6 @@
621
657
  #editor-resizer{display:none;}
622
658
  #editor-pane.collapsed{height:0;}
623
659
  #stage-wrap{flex:1;}
624
- .brand .tagline{display:none;}
625
660
  #minimap{display:none;}
626
661
  #navbar .lbl{display:none;}
627
662
  }
@@ -632,26 +667,30 @@
632
667
  <h1>Slidetake</h1>
633
668
  <p><strong>Write in markdown. Present on a spatial canvas. Record without timeline editing.</strong></p>
634
669
  <p>For developers and technical educators who explain things on video. Your headings become a map you move through; with OBS, every slide is a take, so a fumbled line is retaken on the spot, and Slidetake writes the frame-exact cut, YouTube chapters and description.</p>
635
- <p>Slidetake needs JavaScript. Read the <a href="/help.md">guide</a>, the <a href="/llms.txt">summary</a>, or the source on <a href="https://github.com/slidetake/slidetake">GitHub</a>.</p>
670
+ <p>Slidetake needs JavaScript. Read the <a href="/docs.md">docs</a>, the <a href="/llms.txt">summary</a>, or the source on <a href="https://github.com/slidetake/slidetake">GitHub</a>.</p>
636
671
  </noscript>
637
672
 
638
673
  <header>
639
674
  <div class="brand">
640
675
  <a class="mark" href="/" title="Slidetake home"><svg class="logo" viewBox="0 0 64 64" aria-hidden="true"><path d="M 10 8 H 38 C 41.3 8 44 10.7 44 14 V 18 H 22 C 16.5 18 12 22.5 12 28 V 36 H 10 C 6.7 36 4 33.3 4 30 V 14 C 4 10.7 6.7 8 10 8 Z" opacity="0.4"/><path fill-rule="evenodd" d="M 22 22 H 54 C 57.3 22 60 24.7 60 28 V 50 C 60 53.3 57.3 56 54 56 H 22 C 18.7 56 16 53.3 16 50 V 28 C 16 24.7 18.7 22 22 22 Z M 26 34 C 28.2 34 30 32.2 30 30 C 30 27.8 28.2 26 26 26 C 23.8 26 22 27.8 22 30 C 22 32.2 23.8 34 26 34 Z M 38 40 C 36.9 40 36 40.9 36 42 V 48 C 36 49.1 36.9 50 38 50 H 50 C 51.1 50 52 49.1 52 48 V 42 C 52 40.9 51.1 40 50 40 H 38 Z"/></svg><span class="word">Slide<span>take</span></span></a>
641
- <div class="tagline">plain markdown → spatial deck → video, no timeline editing</div>
676
+ <nav class="site-links" aria-label="Slidetake">
677
+ <a class="site-link" id="btn-features" href="/features" title="Every feature, and what it's for"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/></svg><span>Features</span></a>
678
+ <a class="site-link" id="btn-showcase" href="/showcase" title="Showcase: every feature in one deck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 3h20"/><path d="M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3"/><path d="m7 21 5-5 5 5"/></svg><span>Showcase</span></a>
679
+ <a class="site-link" id="btn-docs" href="/docs" title="Docs: step by step, itself a deck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg><span>Docs</span></a>
680
+ <a class="site-link" id="btn-github" href="https://github.com/slidetake/slidetake" target="_blank" rel="noopener noreferrer" title="GitHub repository"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg><span>GitHub</span></a>
681
+ </nav>
642
682
  </div>
643
683
  <div class="hdr-actions">
644
684
  <input type="file" id="file-input" accept=".md,.markdown,.txt,text/markdown" hidden>
645
685
  <div class="seg" id="layout-toggle">
646
- <button class="seg-btn" data-mode="tree" title="Tree (1)">tree</button>
647
- <button class="seg-btn" data-mode="radial" title="Radial (2)">radial</button>
648
- <button class="seg-btn" data-mode="path" title="Path: slides in presenting order (3)">path</button>
649
- <button class="seg-btn" data-mode="focus" title="Focus: one slide at a time, no travel (4)">focus</button>
686
+ <button class="seg-btn" data-mode="focus" title="Focus: one slide at a time, no travel (1)">focus</button>
687
+ <button class="seg-btn" data-mode="path" title="Path: slides in presenting order (2)">path</button>
688
+ <button class="seg-btn" data-mode="radial" title="Radial: rings out from the first card (3)">radial</button>
689
+ <button class="seg-btn" data-mode="tree" title="Tree: a top-down chart (4)">tree</button>
650
690
  </div>
651
- <a class="btn" id="btn-docs" href="/help" target="_blank" rel="noopener" title="Docs: the full guide, itself a deck">Docs</a>
652
- <button class="btn" id="btn-edit-toggle" title="Editor: write, open, share (E)">✎ Editor</button>
653
- <a class="btn icon" id="btn-github" href="https://github.com/slidetake/slidetake" target="_blank" rel="noopener noreferrer" title="GitHub repository"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg><span class="sr-only">GitHub repository</span></a>
691
+ <button class="btn icon" id="btn-analytics" title="Privacy &amp; analytics" aria-label="Privacy &amp; analytics" hidden><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/></svg></button>
654
692
  <button class="btn icon" id="btn-mode" title="Light / dark (L)" aria-label="Light / dark"></button>
693
+ <button class="btn" id="btn-edit-toggle" title="Editor: write, open, share (E)">✎ Editor</button>
655
694
  </div>
656
695
  </header>
657
696
 
@@ -704,7 +743,7 @@
704
743
  <tr><td><kbd>→</kbd> <kbd>←</kbd> <kbd>Space</kbd></td><td>next / previous step</td></tr>
705
744
  <tr><td><kbd>↓</kbd> <kbd>↑</kbd></td><td>first child / parent</td></tr>
706
745
  <tr><td><kbd>O</kbd></td><td>the whole map; <kbd>O</kbd> or <kbd>Esc</kbd> goes back</td></tr>
707
- <tr><td><kbd>1</kbd>–<kbd>4</kbd></td><td>tree, radial, path, focus</td></tr>
746
+ <tr><td><kbd>1</kbd>–<kbd>4</kbd></td><td>focus, path, radial, tree</td></tr>
708
747
  <tr><td><kbd>F</kbd></td><td>fullscreen; <kbd>F</kbd> or <kbd>Esc</kbd> leaves</td></tr>
709
748
  <tr><td><kbd>+</kbd> <kbd>−</kbd></td><td>bigger / smaller slides</td></tr>
710
749
  <tr><td><kbd>E</kbd></td><td>editor: write, open, share</td></tr>
@@ -713,7 +752,26 @@
713
752
  <tr><td><kbd>K</kbd> <kbd>?</kbd></td><td>this card; again or <kbd>Esc</kbd> closes it</td></tr>
714
753
  </table>
715
754
  <p>Drag to pan, scroll or pinch to zoom, click a card to fly to it.</p>
716
- <p><a href="/help" target="_blank" rel="noopener">The full guide →</a> writing decks, sharing, recording, camera, review and cut.</p>
755
+ <p><a href="https://slidetake.com/docs" target="_blank" rel="noopener">The docs →</a> writing decks, sharing, recording, camera, review and cut.</p>
756
+ </div>
757
+ </div>
758
+
759
+ <div id="analytics-dialog" class="modal" role="dialog" aria-labelledby="analytics-title">
760
+ <div class="panel">
761
+ <button class="close" data-close aria-label="Close">✕</button>
762
+ <h2 id="analytics-title">Privacy &amp; analytics</h2>
763
+ <p>Your decks, copies and recordings never leave this browser. This is only about counting visits to slidetake.com.</p>
764
+ <div class="choices" role="radiogroup" aria-label="Privacy &amp; analytics">
765
+ <button class="choice" role="radio" data-analytics="on">
766
+ <strong>Allow analytics</strong>
767
+ <span>Standard Google Analytics (<code>G-3S9FY4MQLS</code>), to see which pages get read and where readers come from. Sets the <code>_ga</code> cookies. The address it records leaves out the part after <code>#</code> and <code>?obs=</code>, so never a deck or an OBS password.</span>
768
+ </button>
769
+ <button class="choice" role="radio" data-analytics="off">
770
+ <strong>Turn analytics off</strong>
771
+ <span>Nothing more is sent from this browser, and the <code>_ga</code> cookies are removed. Cloudflare, which serves the site, still sees each request the way any web server does.</span>
772
+ </button>
773
+ </div>
774
+ <p class="note" id="analytics-note"><code>slidetake:analytics</code> in this browser remembers your choice. Everything else is on the <a href="/privacy">privacy page</a>.</p>
717
775
  </div>
718
776
  </div>
719
777
 
@@ -726,7 +784,7 @@
726
784
  <li><a href="/new?template=blank"><strong>Blank</strong><span>A first card, a section and a detail.</span></a></li>
727
785
  <li><a href="/new?template=talk"><strong>Talk</strong><span>Why it matters, the idea, trade-offs, summary.</span></a></li>
728
786
  <li><a href="/new?template=recording"><strong>Recording</strong><span>Camera steps, an overview moment and a closing on camera.</span></a></li>
729
- <li><a href="/examples"><strong>Examples</strong><span>Everything a deck can hold: diagrams, charts, images, YouTube.</span></a></li>
787
+ <li><a href="/showcase"><strong>Showcase</strong><span>Every feature in one deck: diagrams, charts, images, YouTube, camera.</span></a></li>
730
788
  </ul>
731
789
  <p>Or <strong>⇣ Load</strong> a deck from a link, or <strong>Open</strong> a file from this computer.</p>
732
790
  </div>
@@ -853,10 +911,16 @@
853
911
  "use strict";
854
912
  (() => {
855
913
  // src/sample.md
856
- var sample_default = "---\ntitle: Slidetake \u2014 write in markdown, record without timeline editing\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slidetake\n\n**Write in markdown. Present on a spatial canvas. Record without timeline editing.**\n\nFor developers and technical educators who explain things on video. You're inside a Slidetake deck right now: press \u2192 to walk it, **O** for the map.\n\n## \u2702\uFE0F Stop editing on a timeline\n\n**Retake by slide.** The slide is the timeline marker, so a fumbled line costs one press, not an editing session.\n\n### Every slide is a take\n\nStumbled on a slide? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n### Pick, don't scrub\n\nChoose the best take of each slide. Slidetake writes the frame-exact **ffmpeg** cut, the YouTube **chapters** and the description.\n\n## \u{1F5FA}\uFE0F A map, not a stack\n\n<!-- view: overview -->\n\nYour headings are the hierarchy: zoom out for the whole system, zoom in for one part. This slide just showed you the map.\n\n### Headings become cards\n\n`#` is the first card, `##` branches from it, `###` goes a level deeper. No layout to draw.\n\n### A path your viewer can follow\n\n\u2192 always walks the same order, and **path** lays it out as a staircase, so the audience never loses its place.\n\n## \u{1F3A5} The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, or off. Turn on **Camera** and watch this slide do it.\n\n### Broadcast-quality recording\n\n**[OBS](https://obsproject.com)** records at full quality; Slidetake drives it. No scenes to switch, no recording to watch.\n\n### One session, one finished video\n\nWrite, present and record in one sitting. What comes out is ready to upload.\n\n## \u270D\uFE0F Plain text in\n\nMarkdown you already know: headings, lists, tables, code, diagrams, charts, images and YouTube links. [See every example \u2192](/examples)\n\n### Your copy\n\nType in any deck, this one included, and it becomes your own copy. The original stays as it is.\n\n### Open and share\n\n**\u21E3 Load** a GitHub file or gist, start from a template, and **Share** a link with the deck inside it.\n\n## \u{1F49B} Free and open\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake).\n\nEverything else is in the guide: **[slidetake.com/help](/help)**.\n";
914
+ var sample_default = '---\ntitle: Slidetake \u2014 write in markdown, record without timeline editing\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span>\n\n**Write in markdown. Present on a spatial canvas. Record without timeline editing.**\n\nFor developers and technical educators who explain things on video. You\'re inside a Slidetake deck right now. Press \u2192 to walk it, **O** for the map.\n\n## \u2702\uFE0F Record without timeline editing\n\n**Retake by slide.** The slide is the timeline marker, so a fumbled line costs one press, not an editing session.\n\n### OBS records, the deck drives it\n\n**[OBS Studio](https://obsproject.com)** records at full quality. Press **<span class="st-rec">\u25CF Record</span>** and Slidetake starts it, moves through your slides and stops it at the end. No scenes to switch, no recording to watch.\n\n### Every slide is a take\n\nStumbled on a slide? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n### Pick, don\'t scrub\n\nChoose the best take of each slide. Slidetake writes the frame-exact **[ffmpeg](https://ffmpeg.org)** cut, the YouTube **chapters** and the description.\n\n### One session, one finished video\n\nWrite, present and record in one sitting. What comes out is ready to upload.\n\n## \u{1F5FA}\uFE0F A map, not a stack\n\n<!-- view: overview -->\n\nYour headings are the hierarchy: zoom out for the whole system, zoom in for one part. This slide just showed you the map.\n\n### Headings become cards\n\n`#` is the first card, `##` branches from it, `###` goes a level deeper. No layout to draw.\n\n### A path your viewer can follow\n\n\u2192 always walks the same order, and **path** lays it out as a staircase, so the audience never loses its place.\n\n## \u{1F3A5} The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, or off. Turn on **Camera** and watch this slide do it.\n\n### Camera moves, step by step\n\n<!-- camera: 40%, full, on -->\n\nWith **Camera** on, press \u2192: this slide puts you large in the corner, then full screen, then back to the corner. One comment, one press per move:\n\n```md\n### Camera moves, step by step\n<!-- camera: 40%, full, on -->\n```\n\nCombine `on`, `off`, `full`, a size like `40%`, a corner, `flip` or `circle`.\n\n## \u270D\uFE0F Plain markdown in\n\nMarkdown you already know: headings, lists, tables, code, steps, diagrams (Graphviz, D2, SVG), charts, images and YouTube links. [See them all in the showcase \u2192](/showcase)\n\n### A few comments do the rest\n\nMarkdown has no word for "reveal one at a time" or "move the camera", so a handful of HTML comments say it. They stay invisible anywhere else markdown is read:\n\n```md\n<!-- steps --> \u2190 one item per press\n<!-- camera: full, on --> \u2190 move the camera\n<!-- view: overview --> \u2190 the map first\n<!-- view: full --> \u2190 a big-image card\n```\n\n## \u{1F3A8} Your colours\n\nOne line, `accent: "#3b82f6"`, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site\'s palette.\n\n`brand:` and `logo:` put your name and logo in the corner of every slide, so every frame of the video carries them.\n\n## \u{1F310} Run it anywhere\n\nThree places, one deck format: a markdown file.\n\n### slidetake.com: write, view, share\n\nWrite a deck in the **\u270E Editor**, or view one straight from a link: a GitHub file, a gist or any markdown URL. **Share** a link with the deck inside it. Nothing to install.\n\n### Your computer: all that, plus AI\n\nThe same app on your own files, offline:\n\n```sh\nnpx slidetake deck.md\n```\n\nImages next to the markdown load as they are. Save in any editor and the deck reloads where you are; type in the browser and it saves to the file. So an AI agent can write `deck.md` while you watch it take shape.\n\n### Your website: users view, you record\n\n`slidetake.js` puts decks inside your own pages, in your site\'s colours. Users get a clean viewer; add `?obs` to the address and the same page records your video.\n\n## <span class="st-heart" aria-hidden="true"></span> Open source\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake). Nothing to sign up for, and your decks stay yours: [Privacy](/privacy).\n\nNext, every feature and what it saves you: **[Features \u2192](/features)**\n';
915
+
916
+ // src/docs.md
917
+ var docs_default = "---\ntitle: Slidetake Docs\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Docs\n\nEverything in order: **get started \u2192 write \u2192 present \u2192 record \u2192 share**. Press \u2192 to walk it, \u2193 \u2191 to go into a step and back out, **O** for the map.\n\n## 1\uFE0F\u20E3 Get started\n\nThree places to use Slidetake, one deck format for all of them: a markdown file. And any AI can write the deck.\n\n| Where | Best for |\n|---|---|\n| **slidetake.com** | writing in the Editor, viewing any deck from a link, sharing |\n| **Your computer** | the same on your own files and images, offline, with an AI agent writing alongside |\n| **Your website** | decks your users view, and the page you record from |\n\n### On slidetake.com\n\nOpen a deck straight from a link: a GitHub file, a gist or any markdown URL. Or press **\u270E Editor** and type: the first keystroke makes it [your copy](#your-copy), kept in this browser.\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist's first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/new` | a template: blank, talk or recording |\n\n### On your computer\n\nKeep the deck and its images together in a folder, and run one command there:\n\n```sh\nnpx slidetake deck.md\n```\n\nIt opens on `http://localhost:4300` with the files next to the deck served beside it, so `![](diagram.png)` just works. Save the file in any editor and the deck reloads where you are; type in the browser's editor and it saves to the file. Nothing leaves your machine. Needs Node 20 or later.\n\n`npx slidetake` in a folder opens its `index.md`, `deck.md`, `slides.md` or `README.md`. `--open` opens the browser; `--port 5000` picks the port.\n\n### On your website\n\n`slidetake.js` turns a deck on any page into a Slidetake deck. Describe the deck, then load the script:\n\n```html\n<script>\nwindow.SLIDETAKE = {\n markdown: \"# My deck\\n\\n## A section\",\n settings: {title: \"My deck\"},\n base: location.href, // where relative images resolve\n trail: [{label: \"My site\", url: \"/\"}],\n themeKey: \"my-site-theme\", // optional: your site's light/dark key\n colors: {accent: \"#2563eb\"} // optional: your colours\n};\n<\/script>\n<script src=\"https://cdn.jsdelivr.net/npm/slidetake/dist/slidetake.js\"><\/script>\n```\n\nUsers get a viewer with no recording controls; `?obs` on the page's address brings them back for you. The hugo-continuum theme writes this for slide pages with `engine: slidetake`, so a Hugo site previews decks locally with `hugo server`.\n\n### With AI\n\nThe deck is plain markdown, so any AI can write one. Point it at the format, [slidetake.com/llms.txt](/llms.txt), and say what the talk is about.\n\n- **With an agent that edits files** (Claude Code and the like): *\"Write a Slidetake deck about X in talk/deck.md, following slidetake.com/llms.txt\"*, then `npx slidetake talk/deck.md`. Ask for changes and the open deck reloads as the file is saved.\n- **In a chat** (Claude, no tools): ask for the deck as one markdown block, then on slidetake.com press **\u270E Editor**, select all and paste. It's your copy at once; **Share** gives a link with the deck inside it.\n- **Images:** an agent places them next to the file; in a chat, use full image URLs, or `base:` pointing at where they live.\n\n## 2\uFE0F\u20E3 Write a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 branches from Product\n### Enterprise \u2190 branches from Pricing\n## Roadmap {#plan} \u2190 branches from Product, id \"plan\"\n\nSee the [roadmap](#plan).\n```\n\n### Cards\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card's id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n- Cards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what's on the card. [See every one in the showcase \u2192](/showcase)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` before a list | one item per press |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram |\n| ` ```echarts ` with JSON options | a chart, in the deck's colours for dark and light |\n| ` ```svg ` or `![](drawing.svg)` | an SVG drawing |\n| an image alone | an image card: a phone shot sits beside the heading and caption, a landscape one spans the card between them, a 16:9 one fills it |\n| an image and text | a split card: the image sits on the side written first |\n| a list of images | a gallery; with `<!-- steps -->` a carousel, one image per press |\n| images in one paragraph | a grid, up to four a row |\n| `<!-- view: full -->` in a card | a 16:9 card for a big image, without the camera unless the card asks for it |\n| a YouTube link alone on a line | the video: the next press plays it, leaving pauses it |\n\nThe first and last cards animate in on their own. The alt text of an image is its caption.\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\ntitle: My talk \u2190 the page title, and the video's\nduration: 10m \u2190 talk length, for the timer\naccent: \"#3b82f6\" \u2190 the deck's colour (Slidetake's own is green)\nbrand: example.com/talks \u2190 text in the top-right corner\nlogo: https://\u2026/logo.png \u2190 image beside it\nbase: https://\u2026/deck-folder/ \u2190 where relative images live, for a file opened from elsewhere\n---\n```\n\n`accent` is one colour; Slidetake makes it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams. Camera and recording settings are in [step 4](#4-record-a-video).\n\n### Decks from elsewhere\n\n**reveal.js** decks open as they are: `---` starts a slide and `--` a vertical one beneath it. Fragments (`fade-up`, `grow`, \u2026), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, `data-gsap` entrances and `title-scramble` all work.\n\n**Older `+++` decks**, with `id`, `parent`, `x`, `y` frontmatter, still load.\n\n## 3\uFE0F\u20E3 Present\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; **O** again or Esc goes back |\n| F | fullscreen; **F** again or Esc leaves |\n| K or ? | these keys; again closes them |\n| 1 2 3 4 | focus, path, radial, tree |\n| + \u2212 | bigger / smaller slides (remembered) |\n| E \xB7 L | editor \xB7 light / dark |\n| C \xB7 V \xB7 R | camera \xB7 camera layouts \xB7 record |\n\n### Layouts\n\n**Focus** doesn't travel at all: the next slide fades in where the last one was.\n\n**Path**, the default, is made for presenting and video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Radial** rings out from the first card, and **tree** is a top-down chart.\n\nThe layout you pick is remembered in this browser, for every deck.\n\n### On screen\n\nText keeps one size within a section and only changes when the section does; charts and diagrams are fitted on their own.\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n### Progress and timer\n\nIn fullscreen the cursor and controls hide after two seconds without the mouse moving, and a thin bar along the bottom fills with every press.\n\nWith `duration: 10m` (or `90s`, `1h`, `12:30`), a lighter layer of the same colour grows behind it with the clock: if it shows past the solid fill, you're behind; if it reaches the end, the bar pulses. The timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## 4\uFE0F\u20E3 Record a video\n\nRecording takes **[OBS Studio](https://obsproject.com)** (free and open source). OBS records at full quality; Slidetake drives it, slide by slide, so there's no timeline to edit afterwards.\n\n### Set up OBS\n\n1. In OBS, turn on Tools \u2192 WebSocket Server Settings.\n2. In Slidetake, press **\u25CF Record** and enter OBS's host, port and password. Tick *Remember* to skip this next time.\n3. Use a 16:9 screen (YouTube is 16:9): the Record dialog checks yours. If it isn't, move the window to one that is, physical or virtual (say 1920\xD71080), and press **F** there.\n\n`?obs=localhost:4455` (or `?obs=host:port:password`) in the address fills this in and connects as the page opens.\n\nFrom https://slidetake.com, OBS must be on the same computer: browsers block secure pages from reaching plain `ws://` addresses elsewhere. For OBS on another machine, use `npx slidetake`, which serves over http.\n\n### Add your camera\n\n**C** (or **Camera**) turns your webcam on in its box, and OBS records you and the slides together. The camera is off every time the page opens; until it's on, the deck's camera settings are ignored, so readers get slides using the whole screen.\n\n```yaml\n---\npip: bottom-right \u2190 camera corner, or none\npip_size: 24% \u2190 camera box width\npip_shape: rect \u2190 rect (16:9) or circle\npip_mirror: yes \u2190 mirror the webcam\ncamera: 24%, 40%, full, off \u2190 layouts V cycles through\n---\n```\n\nSlides are always placed clear of the brand and the camera box.\n\n### Move the camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 camera fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, on the other side\n```\n\nWords you can combine: `on`, `off`, `full`, a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`. List them with commas to step through them on one slide: `full, on` opens on you, and the next \u2192 shrinks the camera to its corner and shows the slide.\n\n**V** steps through the deck's `camera:` list by hand.\n\n### Take by take\n\n**\u25CF Record** (or **R**) connects to OBS, counts down and starts recording. From then on the deck drives everything: camera layouts, reveals and slides follow \u2192 (a Bluetooth clicker works).\n\n- **\u2190** takes the current slide again, keeping every attempt\n- **B** pauses and resumes\n- one press past the last step stops OBS\n\nClicks, dragging and the map are locked so the take only moves forward.\n\n### Review, cut and publish\n\nThen the review opens: every slide with its takes (the last one picked), previews from the OBS file, a ready-to-run **[ffmpeg](https://ffmpeg.org)** command for the picked takes (frame-exact), and the YouTube title, description with **chapters** and links, and tags. Sessions are kept in this browser, so a take can be reviewed again later from \u25CF Record.\n\nThe description comes from the deck's top block:\n\n| Key | Used for |\n|---|---|\n| `title` | the video title |\n| `summary` | the description's first paragraph |\n| `related` | a list of `[Title](url)` links |\n| `tags` | tags (any other list ending in `_tags` is added too) |\n| `permalink` or `site` | the link back to the deck |\n\n## 5\uFE0F\u20E3 Share and keep\n\nEvery deck you open is **read-only**: Slidetake's own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n### Your copy\n\n**Type in a deck**, and it becomes your copy, at `/edit`. It lives in this browser, remembers where it came from, and is there whenever you come back: **Your copy \u2192** in the editor takes you to it.\n\n- There's one copy at a time; the editor bar says whose it is, and marks **edited** while it has changes you haven't saved or shared.\n- **Reset to original** throws your edits away.\n- Starting a new copy asks first if the old one has edits you haven't kept.\n\n### Save and share\n\n**Save** downloads the markdown. **Share** copies a link: the short link while your copy still matches an online original, otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link never reaches a server. **Open** loads a markdown file from your computer into your copy.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=focus` (path, radial, tree) | picks the layout; path is the default |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F512} Your data\n\nNo accounts, and no decks kept: your copy and settings stay in this browser, and decks inside links never reach a server. `npx slidetake` keeps everything on your machine. What slidetake.com does collect (Google Analytics, which the **Privacy & analytics** button in the header turns off), and which services a deck can reach, is all on the [privacy page](/privacy).\n\nSlidetake is open source: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake).\n";
857
918
 
858
- // src/help.md
859
- var help_default = "---\ntitle: Slidetake help\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slidetake help\n\nThe details behind the [home deck](/): writing, sharing, presenting, recording and the camera. Press \u2192 to read in order, \u2193 \u2191 to go into a section and back out, or **O** for the whole map.\n\n## \u270D\uFE0F Writing a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 branches from Product\n### Enterprise \u2190 branches from Pricing\n## Roadmap {#plan} \u2190 branches from Product, id \"plan\"\n\nSee the [roadmap](#plan).\n```\n\n### Rules\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card's id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what's on the card. [See every one \u2192](/examples)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` before a list | one item per press |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram |\n| ` ```echarts ` with JSON options | a chart, in the deck's colors for dark and light |\n| ` ```svg ` or `![](drawing.svg)` | an SVG drawing |\n| an image alone | an image card: a phone shot sits beside the heading and caption, a landscape one spans the card between them, a 16:9 one fills it |\n| an image and text | a split card: the image sits on the side written first |\n| a list of images | a gallery; with `<!-- steps -->` a carousel, one image per press, laid out like an image card |\n| `<!-- view: full -->` in a card | a 16:9 card for a big image, without the camera unless the card asks for it; an image narrower than 16:9 sits on the right, with the text beside it |\n| images in one paragraph | a grid, up to four a row |\n| a YouTube link alone on a line | the video: the next press plays it, leaving pauses it |\n\nThe first and last cards animate in on their own. The alt text of an image is its caption.\n\n### reveal.js decks\n\nDecks written for reveal.js open as they are: `---` starts a slide and `--` a vertical one beneath it, and the first slide becomes the root card.\n\nSupported: fragments (`fade-up`, `fade-in-then-out`, `grow`, \u2026, one per \u2192), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, Graphviz `dot` diagrams, ECharts charts, `data-gsap` entrance animations and `title-scramble`.\n\n### Older +++ decks\n\nDecks that separate slides with `+++` and use `id`, `parent`, `x`, `y` frontmatter still load.\n\n### Wide content\n\nCards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n## \u{1F517} Opening, editing and sharing\n\nEvery deck you open is **read-only**: Slidetake's own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n**Type in it**, and it becomes **your copy**, at `/edit`. Your copy lives in this browser, remembers where it came from, and is there whenever you come back: the **Your copy \u2192** button at the top takes you to it.\n\n### Where decks come from\n\nPress **\u270E Editor**, then **\u21E3 Load**, and paste a link: a GitHub file or folder, a gist, or any URL that lets other sites read it. Or link straight to a deck:\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist's first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/share#deflate:\u2026` | a shared deck, carried inside the link |\n| `/new` | a template: blank, talk or recording |\n\nImages next to the deck load as they are. **Open** opens a markdown file from your computer, straight into your copy.\n\n### Your copy\n\nThere's one working copy at a time. The editor bar says whose copy it is, and marks **edited** while it has changes you haven't saved or shared.\n\n- **Reset to original** throws your edits away and goes back to the deck you started from.\n- Starting a new copy, by typing in another deck or opening a file, asks first if the old one has edits you haven't kept.\n\n### Saving and sharing\n\n**Save** downloads your markdown as a file. **Share** copies a link: the short link while your copy still matches an online original, and otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link is never sent to a server, so nothing is uploaded. Shared links never include `?obs=`.\n\nFor a file from your computer whose images sit next to it online, add `base: https://\u2026/deck-folder/` to its top block.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=tree` (radial, path, focus) | picks the layout |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F9ED} Moving around\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; O or Esc goes back to your slide |\n| 1 2 3 4 | tree, radial, path, focus |\n| F | fullscreen |\n| + \u2212 | bigger / smaller slides (remembered) |\n| E | editor |\n| L | light / dark |\n| K or ? | keys (also \u2328 Keys on screen) |\n| C \xB7 V \xB7 R | camera, camera layouts, record |\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n### Layouts\n\n**Tree** is a top-down chart and **radial** rings out from the root.\n\n**Path** is made for video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Focus** doesn't travel at all: the next slide fades in where the last one was.\n\n### Steady text\n\nText keeps one size within a section and only changes when the section does. Charts and diagrams are fitted on their own.\n\n### Map moments\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n## \u{1F3AC} Presenting\n\n**F** goes fullscreen, and **F** again (or **Esc**) leaves. The current slide fills the screen, and the cursor and controls hide after two seconds without the mouse moving.\n\n### Progress and talk timer\n\nWhile presenting, a thin bar along the bottom fills with every press.\n\nGive the deck a length, `duration: 10m` (or `90s`, `1h`, `12:30`), and a lighter layer of the same colour grows behind it with the clock: if the lighter stretch shows past the solid fill, you're behind; if it reaches the end, the bar pulses.\n\nThe timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## \u23FA\uFE0F Recording\n\nRecording needs **[OBS Studio](https://obsproject.com)** (free) with its WebSocket server on: in OBS, Tools \u2192 WebSocket Server Settings. OBS records; Slidetake drives it.\n\n### Connecting to OBS\n\nPress **\u25CF Record** and enter where OBS is: host, port and the password from OBS's WebSocket settings. Tick *Remember* to skip this next time.\n\n`?obs=localhost:4455` (or `?obs=host:port:password`) in the address fills this in and connects as the page opens.\n\n### A 16:9 screen\n\nYouTube is 16:9, and many laptop screens aren't. The Record dialog checks yours: if it isn't 16:9, move the window to a screen that is, physical or virtual (say 1920\xD71080), and press **F** there.\n\n### OBS on another computer\n\nFrom https://slidetake.com, OBS must be on the same computer (`localhost`): browsers block secure pages from reaching plain `ws://` addresses elsewhere. For OBS on another machine, serve a local copy of [`dist/index.html`](https://github.com/slidetake/slidetake) over http.\n\n### Taking a take\n\n**\u25CF Record** (or **R**) connects to OBS, counts down and starts recording. From then on the deck drives everything: camera layouts, reveals and slides follow \u2192 (a Bluetooth clicker works).\n\n- **\u2190** takes the current slide again, keeping every attempt\n- **B** pauses and resumes\n- one press past the last step stops OBS\n\nClicks, dragging and the map are locked so the take only moves forward.\n\n### Review and cut\n\nThen the review opens: every slide with its takes (the last one picked), previews from the OBS file, a ready-to-run **ffmpeg** command for the picked takes (frame-exact), and the YouTube title, description with **chapters** and links, and tags.\n\nSessions are kept in this browser, so a take can be reviewed again later from \u25CF Record.\n\n## \u{1F4F7} Camera\n\n**C** (or **Camera** in the bottom bar) turns your webcam on in its box; a plain screen recording then captures you and the slides together. The camera is off every time the page opens, and until it's on, the deck's camera settings are ignored, so readers get slides using the whole screen.\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\nbrand: example.com/talks \u2190 text in the top-right corner\nlogo: https://\u2026/logo.png \u2190 image beside it\npip: bottom-right \u2190 camera corner, or none\npip_size: 24% \u2190 camera box width\npip_shape: rect \u2190 rect (16:9) or circle\npip_mirror: yes \u2190 mirror the webcam\ncamera: 24%, 40%, full, off \u2190 layouts V cycles through\naccent: \"#3b82f6\" \u2190 the deck's colour, instead of Slidetake's green\n---\n```\n\n`accent` is one colour; Slidetake sets it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams.\n\nSlides are always placed clear of the brand and the camera box.\n\n### Camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 camera fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, on the other side\n```\n\nWords you can combine: `on`, `off`, `full`, a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`.\n\n### Several steps on one slide\n\nList layouts with commas to step through them: `full, on` opens full screen on you, and the next \u2192 shrinks the camera to its corner and shows the slide. `on, full, on, off` ends a closing slide on you, then the slide again, then without the camera.\n\n**V** steps through the deck's `camera:` list for the current slide.\n\n## \u{1F4CB} Publish pack\n\nThe review fills the YouTube description from the deck's top block:\n\n| Key | Used for |\n|---|---|\n| `title` | the video title |\n| `summary` | the description's first paragraph |\n| `related` | a list of `[Title](url)` links |\n| `tags` | tags (any other list ending in `_tags` is added too) |\n| `permalink` or `site` | the link back to the deck |\n\n## \u{1F512} Your data\n\nYour draft and settings stay in this browser. Decks inside links live in the part of the address after `#`, which browsers never send to a server. Slidetake has no accounts and stores no decks.\n\nslidetake.com counts visits with Google Analytics. What it records leaves out the `#` part and `?obs=`, so neither your deck nor an OBS password reaches it. Copies you host yourself send nothing.\n\nSlidetake is open source: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake).\n";
919
+ // src/features.md
920
+ var features_default = "---\ntitle: Slidetake Features\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Features\n\nThe complete list, one line each. Press \u2192 to walk it, **O** for the map.\n\n## \u2702\uFE0F Record without timeline editing\n\n| Feature | Advantage |\n|---|---|\n| **Takes per slide** (\u2190) | every attempt kept; recording never stops |\n| **OBS, driven by the deck** | it starts and stops for you; you only talk |\n| **Pause and resume** (B) | step away without a gap to cut |\n| **Clicker support** | any Bluetooth presenter remote moves the deck |\n| **16:9 check** | the Record dialog warns before a video with bars |\n| **Review** | every slide's takes, previewed from the OBS file |\n| **Frame-exact [ffmpeg](https://ffmpeg.org) cut** | one command, no video editor |\n| **Publish pack** | YouTube title, description, chapters, links and tags from the deck |\n| **Saved sessions** | review a recording again later |\n\n## \u{1F5FA}\uFE0F A map, not a stack\n\n| Feature | Advantage |\n|---|---|\n| **Four layouts** | focus, path (the default), radial, tree |\n| **The map** (O) | the whole talk at a glance, and back |\n| **Map moments** (`view: overview`) | open a chapter on the big picture |\n| **Steady text** | one size per section, so slides don't jump |\n| **Short flights** | camera moves made to read well on video |\n| **Progress and timer** | a bar that fills, and a clock that tells you if you're behind |\n\n## \u{1F3A5} The camera is part of the deck\n\n| Feature | Advantage |\n|---|---|\n| **Webcam in its box** | you and the slides in one recording, no compositing |\n| **Camera per slide** | corner, size, side, circle, full screen or off |\n| **Steps on one slide** | open on you, then reveal the slide |\n| **V** | try camera layouts live without editing |\n| **Off until you turn it on** | readers never see an empty camera box |\n\n## \u270D\uFE0F Plain markdown in\n\n| Feature | Advantage |\n|---|---|\n| **One file** | any editor, versioned in git, reviewed like code |\n| **Steps, diagrams, charts** | Graphviz, D2, SVG and ECharts as text |\n| **Image cards** | laid out by shape: beside text, across the card, galleries, carousels, grids |\n| **Full-screen cards** (`view: full`) | a 16:9 frame for a big image |\n| **YouTube** | plays on the next press, pauses when you leave |\n| **reveal.js and `+++` decks** | open as they are |\n\n## \u{1F3A8} Your colours\n\n| Feature | Advantage |\n|---|---|\n| **Dark and light** (L) | follows the reader, or your site |\n| **`accent:`** | one colour, shaded for both modes, charts and diagrams included |\n| **`brand:` and `logo:`** | your name on every frame |\n| **Site colours** | embedded decks wear your site's palette and header |\n\n## \u{1F310} Run it anywhere\n\n| Where | Also gives you |\n|---|---|\n| **slidetake.com** | share links that carry the whole deck; your copy of any deck, kept in this browser |\n| **Your computer** | relative images, reload on save, browser edits saved to the file; OBS on another machine |\n| **Your website** | `?obs` turns your page into the recorder; the hugo-continuum theme with one frontmatter key |\n\n## \u{1F512} Private and open\n\n| Feature | Advantage |\n|---|---|\n| **No accounts, no stored decks** | nothing to sign up for or lose ([privacy](/privacy)) |\n| **Decks inside links** | the deck stays in the `#` part, never sent to a server |\n| **Analytics you can turn off** | one button on slidetake.com |\n| **Open source, Apache 2.0** | read it, host it, change it: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake) |\n\nNext, see them working: **[Showcase \u2192](/showcase)**\n";
921
+
922
+ // src/privacy.md
923
+ var privacy_default = "---\ntitle: Slidetake Privacy\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Privacy\n\nSlidetake has no accounts and keeps no decks. This page lists everything that leaves your browser, and where it goes.\n\n*Last updated 27 October 2026.*\n\n## \u{1F4CA} What slidetake.com collects\n\nslidetake.com counts visits with **Google Analytics**: the page's address, your browser and screen, and roughly where you are. Google Analytics sets its own cookies (`_ga`) to tell visits apart.\n\nThe address it records leaves out the part after `#` and `?obs=`, so neither a deck carried in a link nor an OBS password reaches it.\n\n**You can turn it off:** the **Privacy & analytics** button in the header (the pulse icon) \u2192 *Turn analytics off*. Nothing more is sent from that browser, the `_ga` cookies are removed, and the tag isn't loaded on later visits. Cloudflare, which serves the site, still sees each request the way any web server does.\n\nThat is the only analytics. A copy of Slidetake you host yourself, the embed on your own site, and `npx slidetake` send none.\n\n## \u{1F4BE} What stays in your browser\n\nKept in this browser's storage on your device, and never sent anywhere:\n\n| What | Why |\n|---|---|\n| Your copy of a deck | so it's there when you come back |\n| Theme, layout, slide size, editor width | your preferences |\n| Recorded sessions and publish-pack settings | to review takes later |\n| OBS host, port and password | only if you tick *Remember*, stored as plain text |\n| Your analytics choice | so *off* stays off |\n\nClearing this site's data in your browser removes all of it.\n\n## \u{1F310} Services a deck can reach\n\nOpening Slidetake, or a deck that uses these, loads files from other services. Each sees your IP address, as with any web request.\n\n| Service | When |\n|---|---|\n| Google Fonts | every page, for the typefaces |\n| cdnjs, jsDelivr | every page (animation, markdown) and for diagrams, charts and OBS |\n| esm.sh | a deck with a D2 diagram |\n| GitHub | opening a GitHub file or gist |\n| YouTube (youtube-nocookie.com) | a deck with a YouTube link; YouTube's own cookies only once you play it |\n| The deck's own address | opening a deck from a link, and its images |\n\nOBS is reached only on the address you give it, normally your own computer.\n\n## \u{1F517} Decks in links\n\nA shared link carries the whole deck after `#`. Browsers never send that part of an address to a server, so the deck travels from you to whoever opens the link without passing through slidetake.com.\n\n## \u{1F4BB} On your computer\n\n`npx slidetake` runs on your machine, serves only the deck's folder, and listens only on `localhost`. It sends nothing to slidetake.com or anyone else. The deck's own diagrams, charts and fonts load from the services above as on the web.\n\n## \u2709\uFE0F Questions\n\nOpen an issue on [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake/issues). Slidetake is open source, so everything above can be checked in its code.\n";
860
924
 
861
925
  // examples/blank.md
862
926
  var blank_default = "---\ntitle: My deck\n---\n\n# My deck\n\nStart typing: this becomes your own copy, and the template stays as it is.\n\n## A section\n\nEvery heading is a card. `##` sections branch from the first card.\n\n### A detail\n\n`###` branches from the section above it.\n";
@@ -868,14 +932,14 @@
868
932
  var recording_default = "---\ntitle: Video title\nduration: 10m\npip: bottom-right\npip_size: 24%\ncamera: 24%, 40%, full, off\n---\n\n<!-- camera: full, on -->\n\n# Video title\n\nOpens full screen on you; the next press shows this slide with you in the corner.\n\n## \u{1F4CC} Disclaimer\n\n<!-- camera: off, on -->\n\nOpens without the camera, so the text has the whole screen; the next press brings you back.\n\n## \u{1F9ED} Contents\n\n- Part one\n- Part two\n- Part three\n\n## \u{1F539} Part one\n\n<!-- view: overview -->\n\nThe overview comment pulls back to the whole map first: a good start to a chapter.\n\n### A detail\n\nSlides you talk over in the corner.\n\n## \u{1F538} Part two\n\n### A detail\n\n## \u{1F537} Part three\n\n### A detail\n\n## \u{1F64F} Thanks for watching\n\n<!-- camera: on, full, on, off -->\n\nEnds on you full screen, then back to the slide, then without the camera.\n";
869
933
 
870
934
  // examples/showcase.md
871
- var showcase_default = '---\ntitle: Slidetake examples\nbrand: slidetake\nduration: 10m\n---\n\n# Slidetake examples\n\nEverything a deck can hold, written in plain markdown. Open **\u270E Editor** to see the source of any card, or press **O** for the map.\n\n## \u270D\uFE0F Text\n\nParagraphs, **bold**, *italic*, `code`, [links](https://slidetake.com) and lists, as markdown writes them.\n\n- One point\n- Another point\n - A detail under it\n\n### Steps\n\nPut `<!-- steps -->` before a list and it reveals one item per press:\n\n<!-- steps -->\n- First, the problem\n- Then, the idea\n- Finally, the result\n\n### Quotes and tables\n\n> A quote stands out from the text around it.\n\n| Plan | Price | Users |\n|---|---:|---:|\n| Free | \u20B90 | 1 |\n| Team | \u20B9499 | 10 |\n\n### Code\n\n```python\ndef take(slide):\n return slide.best_attempt()\n```\n\n## \u{1F9ED} Diagrams\n\nWrite the diagram in a fenced block named after its language.\n\n### Graphviz\n\n```dot\ndigraph {\n rankdir=LR\n node [shape=box style=rounded]\n Markdown -> Deck -> Takes -> Video\n}\n```\n\n### D2\n\n```d2\ndirection: right\nwrite: Write {shape: rectangle}\npresent: Present\nrecord: Record\nwrite -> present -> record: one session\n```\n\n### SVG\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 120">\n <rect x="10" y="20" width="90" height="80" rx="10" fill="#22c55e"/>\n <rect x="115" y="20" width="90" height="80" rx="10" fill="#22c55e" opacity=".7"/>\n <rect x="220" y="20" width="90" height="80" rx="10" fill="#22c55e" opacity=".4"/>\n</svg>\n```\n\n## \u{1F4CA} Charts\n\nECharts, as a fenced `echarts` block of JSON options.\n\n### A bar chart\n\n```echarts\n{\n "xAxis": {"type": "category", "data": ["Jan", "Feb", "Mar", "Apr", "May"]},\n "yAxis": {"type": "value"},\n "series": [{"type": "bar", "data": [12, 19, 15, 24, 30]}]\n}\n```\n\n### A donut\n\n```echarts\n{\n "series": [{"type": "pie", "radius": ["45%", "70%"],\n "data": [{"name": "Equity", "value": 85}, {"name": "Debt", "value": 5}, {"name": "Gold", "value": 10}]}]\n}\n```\n\n## \u{1F5BC}\uFE0F Images\n\nThe layout comes from what\'s on the slide; the alt text is the caption.\n\n### One image\n\n![An image alone fills the card edge to edge](https://slidetake.com/og.jpg)\n\n### Image and text\n\n![Written first, so it sits on the left](https://slidetake.com/og.jpg)\n\nAn image beside text makes a split card. Write the text first and the image moves to the right.\n\n### A gallery\n\nA list of images is a gallery. With `<!-- steps -->` it becomes a carousel: one image at a time, the next on each press.\n\n<!-- steps -->\n- ![The logo](https://slidetake.com/favicon.svg)\n- ![The home-screen icon](https://slidetake.com/apple-touch-icon.png)\n- ![The link preview](https://slidetake.com/og.jpg)\n\n### A grid\n\nSeveral images in one paragraph sit side by side, up to four a row:\n\n![Logo](https://slidetake.com/favicon.svg) ![Icon](https://slidetake.com/apple-touch-icon.png) ![Preview](https://slidetake.com/og.jpg)\n\n### Full screen\n\n<!-- view: full -->\n\n![A card tagged view: full is a 16:9 frame for a big image](https://slidetake.com/og.jpg)\n\n## \u25B6\uFE0F YouTube\n\nA YouTube link alone on a line becomes the video. The next press plays it; leaving the slide pauses it.\n\nhttps://www.youtube.com/watch?v=jNQXAC9IVRw\n\n## \u{1F3A5} Camera and map\n\n<!-- camera: on, full, on -->\n<!-- view: overview -->\n\nTwo comments do what markdown can\'t: `<!-- camera: on, full, on -->` moves the presenter\'s camera, and `<!-- view: overview -->` shows the whole map first.\n\n## \u{1F680} Start your own\n\nPress **New** for a template (blank, talk or recording), or type in this deck to make it your copy.\n\nThe templates and this deck live in [examples/](https://github.com/slidetake/slidetake/tree/main/examples) on GitHub.\n';
935
+ var showcase_default = '---\ntitle: Slidetake Showcase\nbrand: slidetake\nduration: 10m\n---\n\n# ![](https://slidetake.com/favicon.svg) Slide<span class="st-take">take</span> Showcase\n\nEverything a deck can hold, written in plain markdown and working on screen. Open **\u270E Editor** to see the source of any card. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Text\n\nParagraphs, **bold**, *italic*, `code`, [links](https://slidetake.com) and lists, as markdown writes them.\n\n- One point\n- Another point\n - A detail under it\n\n### Steps\n\nPut `<!-- steps -->` before a list and it reveals one item per press:\n\n<!-- steps -->\n- First, the problem\n- Then, the idea\n- Finally, the result\n\n### Quotes and tables\n\n> A quote stands out from the text around it.\n\n| Plan | Price | Users |\n|---|---:|---:|\n| Starter | \u20B90 | 1 |\n| Team | \u20B9499 | 10 |\n\n### Code\n\n```python\ndef take(slide):\n return slide.best_attempt()\n```\n\n## \u{1F4D0} Diagrams\n\nWrite the diagram in a fenced block named after its language.\n\n### Graphviz\n\n```dot\ndigraph {\n rankdir=LR\n node [shape=box style=rounded]\n Markdown -> Deck -> Takes -> Video\n}\n```\n\n### D2\n\n```d2\ndirection: right\nwrite: Write {shape: rectangle}\npresent: Present\nrecord: Record\nwrite -> present -> record: one session\n```\n\n### SVG\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 120">\n <rect x="10" y="20" width="90" height="80" rx="10" fill="#10b981"/>\n <rect x="115" y="20" width="90" height="80" rx="10" fill="#10b981" opacity=".7"/>\n <rect x="220" y="20" width="90" height="80" rx="10" fill="#10b981" opacity=".4"/>\n</svg>\n```\n\n## \u{1F4CA} Charts\n\nECharts, as a fenced `echarts` block of JSON options.\n\n### A bar chart\n\n```echarts\n{\n "xAxis": {"type": "category", "data": ["Jan", "Feb", "Mar", "Apr", "May"]},\n "yAxis": {"type": "value"},\n "series": [{"type": "bar", "data": [12, 19, 15, 24, 30]}]\n}\n```\n\n### A donut\n\n```echarts\n{\n "series": [{"type": "pie", "radius": ["45%", "70%"],\n "data": [{"name": "Equity", "value": 85}, {"name": "Debt", "value": 5}, {"name": "Gold", "value": 10}]}]\n}\n```\n\n## \u{1F5BC}\uFE0F Images\n\nThe layout comes from what\'s on the slide; the alt text is the caption.\n\n### One image\n\n![An image alone fills the card edge to edge](https://slidetake.com/og.jpg)\n\n### Image and text\n\n![Written first, so it sits on the left](https://slidetake.com/og.jpg)\n\nAn image beside text makes a split card. Write the text first and the image moves to the right.\n\n### A gallery\n\nA list of images is a gallery. With `<!-- steps -->` it becomes a carousel: one image at a time, the next on each press.\n\n<!-- steps -->\n- ![The logo](https://slidetake.com/favicon.svg)\n- ![The home-screen icon](https://slidetake.com/apple-touch-icon.png)\n- ![The link preview](https://slidetake.com/og.jpg)\n\n### A grid\n\nSeveral images in one paragraph sit side by side, up to four a row:\n\n![Logo](https://slidetake.com/favicon.svg) ![Icon](https://slidetake.com/apple-touch-icon.png) ![Preview](https://slidetake.com/og.jpg)\n\n### Full screen\n\n<!-- view: full -->\n\n![A card tagged view: full is a 16:9 frame for a big image](https://slidetake.com/og.jpg)\n\n## \u25B6\uFE0F YouTube\n\nA YouTube link alone on a line becomes the video. The next press plays it; leaving the slide pauses it.\n\nhttps://www.youtube.com/watch?v=jNQXAC9IVRw\n\n## \u{1F3A5} Camera\n\n<!-- camera: on, full, on -->\n\nTry it: press **C** to turn on your camera, then \u2192. This card puts you in the corner, then full screen, then back, from one comment: `<!-- camera: on, full, on -->`.\n\n## \u{1F5FA}\uFE0F Layouts and the map\n\n<!-- view: overview -->\n\nThis card began by pulling back to the whole map: `<!-- view: overview -->` does that. Try it: press **1** to **4** for focus, path (the default), radial and tree, and **O** to zoom out and back.\n\n## \u{1F3A8} Colours\n\nTry it: press **L** now. Dark and light switch, charts and diagrams included.\n\nA deck sets its own colour with one line, `accent: "#3b82f6"`, shaded for both modes. See it in [blue](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTummn6YENodCoYVCAjksC9Zak5VY1zKacXZN2Gt-QH9if0kl2aSBnPTGevPmjZ_KshTsuMUKvnewbQcUummw4wrk4mL7eXn3UYoyksTiiSBurCMw2OzBagLfIeCRg4bWRagZ2CKw7xXUL7RqBbozgPcYRrau28Gdb1t_oAo4iqisQSpLNFYHzvRUGad3Qf8-h18BiaAofhRFnAKECFvPFshqg3QenS7gmrEnIb6-KkughKEsL0UZu658a4pCwToO2tPmzVuy_tBowrM8yaI20RUB6z1OLnzrhxB7rz0YjzR5n3b1Xab0mm0krGanIa2lgx_mmlpnEEY_vA6pJRtcTdsJUdc1ZkjiQR5XR0eyggfJY48RyEYz7nwYpQJpNOv4bS1_-i7VNwOm4xZNruyQjm_Byc0pgvGF1r2O6cmTEiAJg8N0u_5_vdXh-ZT3Cj4p-KDgi4J3y81pc0peZ_NzGNm-WQrjAjbsfFfF5XeWxSE4RigvoY9hxReQYKT4YKr8XihGGOlPile62QuxTkfKNP-1ORf4-_jnWUyLKQ86E_8A), [coral](/share#deflate:ZVJNa9wwEL3rV0y1hzZGSkn6EWJKYHMoFFooJNDDsrATa7IS61pGI2fXhL32B-Qn9pdUkk0TyElvrDdv3vhJay2iiy3V8K2DxgdsBTYNdbEGubi_vPhw9lkKnVhi8cwQt9YxGGp2YJHBdwR0iAGhdQlihGgJou8VbF6JbRRgZ4AeKIzRum4L975t_Z5riElEFQ1WRaKxGGKh58o43Ab8fQo_AzFDVX2vqjQFmAjufLTAFg3xabK6gJtIPQvx5Y3WwBmD1ldCp65r35qqUrBKg3a8fveerd83yHRSJllCk1wxRNzR5MK3fgip98aD8cST92lX3xVKj9EmwnJ2GvJaGPww19w6QzD64W3ILcXgctpOiM1mQwWyeJSH5cGxrOFRxrGnBGSDkbY-jFKBNBgxfVvJH77L9e1A-fhFplR2yMfX4OT6mMD4SusB29RxVAIkU3CUb1fP13cYXk75qOBCwScFlwrOztfH9TF7nc3PYRT75lwYF6iJznd1Wn5ro9gHFwn0FfQprPQCMkwUH0xd3gunCBP9v-I1NjshVvnImZa_NucCf_88vYhpMeXBJ-If) or [violet](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTmlo-mFKYHMoFFooJJDDsmCtNVmJdS2jGe-uCXvtD-hP7C-pJJt0ISe9sd68eeOnsiwFO26xgm8d7J1vkYVuGuy4Arn4tLluHj9IUUaaWJxRxL11BAabHVhN4DsEPHLQ0LoINQNbBPa9gvqFWq1AdwZwj2Fk67otPPq29QeqgKOIyhqkskRjdeBMT5Vxehv0r0v4GZAIiuJ7UcQpQIiw8WyBrDZIl9HrAu4YexLiy6uyBEoYyvJGlLHr1remKBSs4qAdrd-8JesPjSa8yJMsahNdEbDe4eTCt34IsffOg_FIk_dpV99lSq_ZRsJydhrSWjr4Ya6pdQZh9MPrkFqyweW0nRB1XWOGJJ7kcXl0JCt4kjz2GIFsNOPWh1EqkEazjt9W8ofvUn0_YDoe0OTKDun4GpxcnyIYX2jtdRs7TkqAJAwO0-3q__VGh_Mp7xV8VHCt4LOCd1fr0_qUvM7m5zCyfXMljAvYsPNdFZffWhaH4BihvIE-hhVfQIKR4oOp8nuhGGGkPyve6mYnxCodKdP81-Zc4O_vP2cxLaY86EL8Aw).\n\n## \u2702\uFE0F Record a video\n\nTry it with [OBS](https://obsproject.com) open and its WebSocket server on: press **\u25CF Record**. This deck records slide by slide; stumble, press \u2190, say it again. At the end the review hands you the cut and the YouTube chapters. Step by step: [Docs \u2192 Record a video](/docs#4-record-a-video).\n\n## \u{1F310} Open from anywhere\n\nTry it: this deck is a file on GitHub, and opens from there too: **[slidetake.com/gh/slidetake/slidetake/examples/showcase.md](/gh/slidetake/slidetake/examples/showcase.md)**. Gists, any markdown URL, and a link with the deck inside it open the same way, and `npx slidetake deck.md` opens one from your computer.\n\n## \u{1F680} Start your own\n\nOpen **\u270E Editor** and press **New** for a template (blank, talk or recording), or type in this deck to make it your copy.\n\nThe templates and this deck live in [examples/](https://github.com/slidetake/slidetake/tree/main/examples) on GitHub.\n\nNext, how it all works, step by step: **[Docs \u2192](/docs)**\n';
872
936
 
873
937
  // src/core/text.js
874
938
  function slugify(s) {
875
939
  return s.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-+|-+$/g, "") || "card";
876
940
  }
877
941
  function plainText(s) {
878
- return s.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_`~]/g, "").trim();
942
+ return s.replace(/<[^>]*>/g, "").replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_`~]/g, "").trim();
879
943
  }
880
944
  function escapeHtml(s) {
881
945
  return String(s).replace(/[&<>"]/g, (c) => (
@@ -1301,8 +1365,11 @@
1301
1365
  if (!owner || !repo || !ref) return null;
1302
1366
  return { kind: "url", url: RAW + [owner, repo, ref, ...rest].map(encodeURIComponent).join("/") };
1303
1367
  }
1304
- if (parts.length === 1 && parts[0] === "help") return { kind: "builtin", id: "help" };
1305
- if (parts.length === 1 && parts[0] === "examples") return { kind: "builtin", id: "showcase" };
1368
+ if (parts.length === 1 && (parts[0] === "docs" || parts[0] === "help")) return { kind: "builtin", id: "docs" };
1369
+ if (parts[0] === "showcase" && parts.length === 1) return { kind: "builtin", id: "showcase" };
1370
+ if (parts[0] === "examples" && (parts.length === 1 || parts.length === 2 && parts[1] === "showcase")) return { kind: "builtin", id: "showcase" };
1371
+ if (parts.length === 1 && parts[0] === "features") return { kind: "builtin", id: "features" };
1372
+ if (parts.length === 1 && parts[0] === "privacy") return { kind: "builtin", id: "privacy" };
1306
1373
  if (parts[0] === "gist" && parts[1] && /^[\da-f]+$/i.test(parts[1])) {
1307
1374
  return parts[2] ? { kind: "gist", id: parts[1], file: parts[2] } : { kind: "gist", id: parts[1] };
1308
1375
  }
@@ -1311,7 +1378,7 @@
1311
1378
  function shortLink(source) {
1312
1379
  if (source.kind === "builtin") {
1313
1380
  if (source.id === "home") return "/";
1314
- if (source.id === "showcase") return "/examples";
1381
+ if (source.id === "showcase") return "/showcase";
1315
1382
  if (source.id.startsWith("template:")) return "/new?template=" + source.id.slice(9);
1316
1383
  return "/" + source.id;
1317
1384
  }
@@ -1396,8 +1463,10 @@
1396
1463
  switch (origin.kind) {
1397
1464
  case "builtin":
1398
1465
  if (origin.id === "home") return "Home";
1399
- if (origin.id === "help") return "Help";
1400
- if (origin.id === "showcase") return "the examples";
1466
+ if (origin.id === "docs" || origin.id === "help") return "the docs";
1467
+ if (origin.id === "showcase") return "the showcase";
1468
+ if (origin.id === "features") return "the features";
1469
+ if (origin.id === "privacy") return "the privacy page";
1401
1470
  return "the " + origin.id.replace(/^template:/, "") + " template";
1402
1471
  case "gist":
1403
1472
  return "a gist" + (origin.file ? " (" + origin.file + ")" : "");
@@ -1565,12 +1634,13 @@
1565
1634
 
1566
1635
  // src/app.js
1567
1636
  var EMBED = window.SLIDETAKE || null;
1637
+ var LOCAL = window.SLIDETAKE_LOCAL || null;
1568
1638
  var LOGO = document.querySelector("header .mark .logo").outerHTML;
1569
1639
  document.documentElement.classList.toggle("embed", !!EMBED);
1570
1640
  var RECORDING_UI = !EMBED || EMBED.recording === true || new URLSearchParams(location.search).has("obs");
1571
1641
  document.documentElement.classList.toggle("no-record", !RECORDING_UI);
1572
1642
  var reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1573
- var BUILTIN = { home: sample_default, help: help_default, showcase: showcase_default, "template:blank": blank_default, "template:talk": talk_default, "template:recording": recording_default };
1643
+ var BUILTIN = { home: sample_default, docs: docs_default, features: features_default, privacy: privacy_default, showcase: showcase_default, "template:blank": blank_default, "template:talk": talk_default, "template:recording": recording_default };
1574
1644
  var editor = document.getElementById("editor");
1575
1645
  var stage = document.getElementById("stage");
1576
1646
  var world = document.getElementById("world");
@@ -1598,7 +1668,8 @@
1598
1668
  var order = [];
1599
1669
  var roots = [];
1600
1670
  var currentId = null;
1601
- var layoutMode = "tree";
1671
+ var LAYOUTS = ["focus", "path", "radial", "tree"];
1672
+ var layoutMode = "path";
1602
1673
  var presenting = false;
1603
1674
  var deck = {};
1604
1675
  var cameraOff = true;
@@ -1763,7 +1834,7 @@
1763
1834
  const n = nodes.get(currentId);
1764
1835
  const own = cameraSteps(n);
1765
1836
  if (own.length) return own[Math.min(currentStep().cam, own.length - 1)];
1766
- if (n && n.el.classList.contains("card-full")) return "off";
1837
+ if (n && n.el && n.el.classList.contains("card-full")) return "off";
1767
1838
  for (let i = order.indexOf(currentId) - 1; i >= 0; i--) {
1768
1839
  const steps = cameraSteps(nodes.get(order[i]));
1769
1840
  if (steps.length) return steps[steps.length - 1];
@@ -1796,7 +1867,7 @@
1796
1867
  const first = !pipEl.hidden && pipEl.offsetWidth ? pipEl.getBoundingClientRect() : null;
1797
1868
  const st = pipState = computePipState();
1798
1869
  const valid = CORNERS.includes(st.corner);
1799
- pipEl.className = valid ? [st.corner, st.circle && "circle", cameraStream && "live", st.mirror && "mirror", st.full && "full"].filter(Boolean).join(" ") : "";
1870
+ pipEl.className = valid ? [st.corner, st.circle && "circle", cameraStream && "live", st.mirror && "mirror", st.full && "full", pipEl.classList.contains("msg") && "msg"].filter(Boolean).join(" ") : "";
1800
1871
  pipEl.style.width = st.size + "%";
1801
1872
  pipEl.hidden = !valid || cameraOff || st.off;
1802
1873
  stageWrap.dataset.pip = pipEl.hidden || st.full ? "none" : st.corner;
@@ -2109,7 +2180,7 @@
2109
2180
  const v = el.getAttribute(attr);
2110
2181
  if (!v || /^(#|[a-z][a-z0-9+.-]*:|\/\/)/i.test(v)) return;
2111
2182
  if (!base) {
2112
- if (attr === "src") unresolved++;
2183
+ if (attr === "src" && !v.startsWith("/")) unresolved++;
2113
2184
  return;
2114
2185
  }
2115
2186
  let site = base;
@@ -2233,7 +2304,10 @@
2233
2304
  valueAxis: axis,
2234
2305
  logAxis: axis,
2235
2306
  timeAxis: axis,
2236
- line: { symbolSize: 6, lineStyle: { width: 2.5 } }
2307
+ line: { symbolSize: 6, lineStyle: { width: 2.5 } },
2308
+ // ECharts' own pie labels are #333 with a white outline: a dark smudge in a white halo on a dark card
2309
+ pie: { label: { color: t.text, textBorderWidth: 0 }, labelLine: { lineStyle: { color: t.muted } } },
2310
+ funnel: { label: { color: t.text, textBorderWidth: 0 } }
2237
2311
  });
2238
2312
  }
2239
2313
  var D2_URL = "https://esm.sh/@terrastruct/d2@0.1.33";
@@ -2948,6 +3022,15 @@
2948
3022
  }
2949
3023
  }
2950
3024
  editor.addEventListener("input", () => {
3025
+ if (isLocalDeck()) {
3026
+ view.text = editor.value;
3027
+ clearTimeout(debounceTimer);
3028
+ debounceTimer = setTimeout(() => {
3029
+ saveLocal(editor.value);
3030
+ rebuild(true);
3031
+ }, 300);
3032
+ return;
3033
+ }
2951
3034
  if (view.kind !== "copy" && !forkToCopy()) return;
2952
3035
  copy.text = editor.value;
2953
3036
  updateDocState();
@@ -3177,6 +3260,30 @@
3177
3260
  function openModal(m) {
3178
3261
  m.classList.add("open");
3179
3262
  }
3263
+ var GA_ID = "G-3S9FY4MQLS";
3264
+ var analyticsDialog = document.getElementById("analytics-dialog");
3265
+ var analyticsOn = () => load("slidetake:analytics") !== "off";
3266
+ function setAnalytics(on) {
3267
+ save("slidetake:analytics", on ? "on" : "off");
3268
+ if (!on) {
3269
+ window["ga-disable-" + GA_ID] = true;
3270
+ const domains = ["", "; Domain=" + location.hostname, "; Domain=." + location.hostname.replace(/^www\./, "")];
3271
+ document.cookie.split(";").map((c) => c.split("=")[0].trim()).filter((n) => n === "_ga" || n.startsWith("_ga_")).forEach((n) => domains.forEach((d) => {
3272
+ document.cookie = n + "=; Max-Age=0; Path=/" + d;
3273
+ }));
3274
+ }
3275
+ showAnalyticsChoice();
3276
+ }
3277
+ function showAnalyticsChoice() {
3278
+ analyticsDialog.querySelectorAll("[data-analytics]").forEach((b) => b.setAttribute("aria-checked", String(b.dataset.analytics === "on" === analyticsOn())));
3279
+ }
3280
+ analyticsDialog.querySelectorAll("[data-analytics]").forEach((b) => b.onclick = () => setAnalytics(b.dataset.analytics === "on"));
3281
+ var analyticsBtn = document.getElementById("btn-analytics");
3282
+ analyticsBtn.hidden = !/^(www\.)?slidetake\.com$/.test(location.hostname);
3283
+ analyticsBtn.onclick = () => {
3284
+ showAnalyticsChoice();
3285
+ openModal(analyticsDialog);
3286
+ };
3180
3287
  function closeModals() {
3181
3288
  document.querySelectorAll(".modal.open").forEach((m) => m.classList.remove("open"));
3182
3289
  }
@@ -3798,16 +3905,29 @@
3798
3905
  var camBtn = document.getElementById("btn-camera");
3799
3906
  var pipMsg = document.getElementById("pip-msg");
3800
3907
  var pipMsgTimer = null;
3908
+ var pipLabel = pipEl.querySelector("span");
3801
3909
  function showPipMsg(text, sticky) {
3802
3910
  if (rec.active) return;
3911
+ clearTimeout(pipMsgTimer);
3912
+ if (!pipEl.hidden && !pipEl.classList.contains("live")) {
3913
+ pipMsg.classList.remove("show");
3914
+ pipLabel.textContent = text;
3915
+ pipEl.classList.add("msg");
3916
+ if (!sticky) pipMsgTimer = setTimeout(resetPipLabel, 9e3);
3917
+ return;
3918
+ }
3803
3919
  pipMsg.textContent = text;
3804
3920
  pipMsg.classList.add("show");
3805
- clearTimeout(pipMsgTimer);
3806
3921
  if (!sticky) pipMsgTimer = setTimeout(() => pipMsg.classList.remove("show"), 9e3);
3807
3922
  }
3923
+ function resetPipLabel() {
3924
+ pipLabel.textContent = "PIP camera";
3925
+ pipEl.classList.remove("msg");
3926
+ }
3808
3927
  function hidePipMsg() {
3809
3928
  clearTimeout(pipMsgTimer);
3810
3929
  pipMsg.classList.remove("show");
3930
+ resetPipLabel();
3811
3931
  }
3812
3932
  function cameraHelp() {
3813
3933
  let embedded = false;
@@ -3830,7 +3950,7 @@
3830
3950
  if (cameraStream || cameraOff) return;
3831
3951
  {
3832
3952
  if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
3833
- showPipMsg("Camera not available on this page." + cameraHelp());
3953
+ showPipMsg("Camera not available on this page." + cameraHelp(), true);
3834
3954
  return;
3835
3955
  }
3836
3956
  if (camBtn.disabled) return;
@@ -3842,7 +3962,8 @@
3842
3962
  } catch (e) {
3843
3963
  const name = e && e.name;
3844
3964
  showPipMsg(
3845
- name === "NotAllowedError" || name === "SecurityError" ? "Camera access was blocked." + cameraHelp() : name === "NotFoundError" || name === "OverconstrainedError" ? "No camera was found. Check that a webcam is connected." : name === "NotReadableError" ? "The camera is busy \u2014 close other apps using it (Zoom, OBS, FaceTime) and try again." : "Could not start the camera" + (name ? " (" + name + ")" : "") + "." + cameraHelp()
3965
+ name === "NotAllowedError" || name === "SecurityError" ? "Camera access was blocked." + cameraHelp() : name === "NotFoundError" || name === "OverconstrainedError" ? "No camera was found. Check that a webcam is connected." : name === "NotReadableError" ? "The camera is busy \u2014 close other apps using it (Zoom, OBS, FaceTime) and try again." : "Could not start the camera" + (name ? " (" + name + ")" : "") + "." + cameraHelp(),
3966
+ true
3846
3967
  );
3847
3968
  return;
3848
3969
  } finally {
@@ -3874,7 +3995,10 @@
3874
3995
  function setCameraEnabled(on) {
3875
3996
  if (on && !RECORDING_UI) return;
3876
3997
  cameraOff = !on;
3877
- if (cameraOff) stopWebcam();
3998
+ if (cameraOff) {
3999
+ stopWebcam();
4000
+ hidePipMsg();
4001
+ }
3878
4002
  camManual = null;
3879
4003
  camCycle = -1;
3880
4004
  stepPos = Math.min(stepPos, Math.max(0, slideSteps(nodes.get(currentId)).length - 1));
@@ -3951,14 +4075,8 @@
3951
4075
  setPresent(!presenting);
3952
4076
  } else if (k === "r" || k === "R") {
3953
4077
  openRecordDialog();
3954
- } else if (k === "1") {
3955
- setMode("tree");
3956
- } else if (k === "2") {
3957
- setMode("radial");
3958
- } else if (k === "3") {
3959
- setMode("path");
3960
- } else if (k === "4") {
3961
- setMode("focus");
4078
+ } else if (/^[1-4]$/.test(k)) {
4079
+ setMode(LAYOUTS[+k - 1]);
3962
4080
  } else if (k === "c" || k === "C") {
3963
4081
  setCameraEnabled(cameraOff);
3964
4082
  } else if (k === "v" || k === "V") {
@@ -4056,10 +4174,10 @@
4056
4174
  }
4057
4175
  };
4058
4176
  var savedMode = load("slidetake:layout");
4059
- layoutMode = ["tree", "radial", "path", "focus"].includes(savedMode) ? savedMode : "tree";
4177
+ layoutMode = LAYOUTS.includes(savedMode) ? savedMode : "path";
4060
4178
  document.querySelectorAll("#layout-toggle .seg-btn").forEach((x) => x.classList.toggle("active", x.dataset.mode === layoutMode));
4061
4179
  var params = new URLSearchParams(location.search);
4062
- if (["tree", "radial", "path", "focus"].includes(params.get("layout"))) {
4180
+ if (LAYOUTS.includes(params.get("layout"))) {
4063
4181
  layoutMode = params.get("layout");
4064
4182
  document.querySelectorAll("#layout-toggle .seg-btn").forEach((x) => x.classList.toggle("active", x.dataset.mode === layoutMode));
4065
4183
  }
@@ -4109,7 +4227,9 @@
4109
4227
  function updateDocState() {
4110
4228
  if (EMBED) return;
4111
4229
  let html;
4112
- if (view.kind === "copy") {
4230
+ if (isLocalDeck()) {
4231
+ html = '<span class="mine">' + escapeHtml(LOCAL.file) + '</span> <span class="ro">\xB7 on this computer, saved as you type</span>';
4232
+ } else if (view.kind === "copy") {
4113
4233
  html = '<span class="mine">Your copy of ' + escapeHtml(originLabel(copy.origin)) + "</span>" + (isEdited(copy) ? ' <span class="edited">\xB7 edited</span>' : "");
4114
4234
  } else {
4115
4235
  const name = view.kind === "share" ? "a shared deck" : originLabel(view.source);
@@ -4156,8 +4276,34 @@
4156
4276
  updateDocState();
4157
4277
  }
4158
4278
  window.addEventListener("popstate", () => location.reload());
4279
+ function isLocalDeck() {
4280
+ return !!(LOCAL && view && view.kind === "source" && view.source.kind === "url" && new URL(view.source.url, location.href).pathname === LOCAL.deck);
4281
+ }
4282
+ function saveLocal(text) {
4283
+ fetch(LOCAL.save, { method: "PUT", body: text }).catch(() => showToast("Could not save " + LOCAL.file + ": is npx slidetake still running?", 6e3));
4284
+ }
4285
+ if (LOCAL && window.EventSource) {
4286
+ new EventSource(LOCAL.events).onmessage = async (e) => {
4287
+ if (!isLocalDeck()) return;
4288
+ const name = (JSON.parse(e.data).file || "").replace(/\\/g, "/");
4289
+ if (name === LOCAL.file) {
4290
+ const text = await (await fetch(LOCAL.deck, { cache: "no-store" })).text();
4291
+ if (text === editor.value) return;
4292
+ editor.value = view.text = text;
4293
+ rebuild(true);
4294
+ return;
4295
+ }
4296
+ world.querySelectorAll("img").forEach((img) => {
4297
+ const u = new URL(img.src);
4298
+ if (decodeURIComponent(u.pathname).endsWith("/" + name)) {
4299
+ u.searchParams.set("t", String(Date.now()));
4300
+ img.src = u.href;
4301
+ }
4302
+ });
4303
+ };
4304
+ }
4159
4305
  async function fetchSource(source) {
4160
- if (source.kind === "builtin") return BUILTIN[source.id] ?? BUILTIN.home;
4306
+ if (source.kind === "builtin") return BUILTIN[source.id === "help" ? "docs" : source.id] ?? BUILTIN.home;
4161
4307
  if (source.kind === "gist") {
4162
4308
  const res2 = await fetch("https://api.github.com/gists/" + encodeURIComponent(source.id));
4163
4309
  if (!res2.ok) throw new Error(res2.status === 404 ? "no such gist" : res2.status + " " + res2.statusText);
@@ -4177,6 +4323,9 @@
4177
4323
  return view.text;
4178
4324
  }
4179
4325
  async function loadInitialDeck() {
4326
+ if (LOCAL && route.page === "source" && route.source.kind === "builtin" && route.source.id === "home" && location.pathname === "/") {
4327
+ route.source = { kind: "url", url: LOCAL.deck };
4328
+ }
4180
4329
  if (EMBED) {
4181
4330
  deckBase = EMBED.base || location.href;
4182
4331
  view = { kind: "source", source: { kind: "url", url: deckBase }, text: settingsBlock(EMBED.settings || {}) + String(EMBED.markdown || "") };