From 9ee34939cd1ba119580cad83d058ecd3a5d55a77 Mon Sep 17 00:00:00 2001 From: Ivor Berry <11559977+ivorb@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:17:09 -0500 Subject: [PATCH 1/2] Convert page: save decks for the session; preview in an iframe so it no longer restyles the page --- README.md | 3 + convert.html | 233 ++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 186 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index 93d0fcd..ac38f74 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,9 @@ Open `convert.html` on the served site (or `node tools/pptx-to-html.mjs talk.ppt - **Look through** the generated `slides.html` and the string table, and see what the converter could not handle. - **Download** a single HTML file you can double-click, or the deck folder as a ZIP. +- **Save in this session** to come back to a conversion without downloading it. Saved + decks are listed on the page and kept in this browser tab only; closing the tab clears + them. The folder holds `slides.html`, `strings.json` and `images/`. `strings.json` lists every paragraph, speaker note and alt text under a stable ID, in the format described diff --git a/convert.html b/convert.html index 39150a3..86b91fb 100644 --- a/convert.html +++ b/convert.html @@ -116,7 +116,22 @@ #preview { position: fixed; inset: 0; z-index: 50; background: var(--brand-bg); } #preview.hidden { display: none; } + #preview iframe { width: 100%; height: 100%; border: 0; display: block; } #closePreview { position: fixed; top: 14px; right: 16px; z-index: 60; background: rgba(0, 0, 0, 0.6); } + + .saved { list-style: none; margin: 0; padding: 0; } + .saved li { + display: flex; + align-items: center; + gap: 14px; + padding: 10px 0; + border-top: 1px solid var(--brand-border); + } + .saved li:first-child { border-top: 0; padding-top: 0; } + .saved .what { flex: 1; min-width: 0; } + .saved .what b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .saved .what span { color: var(--brand-muted); font-size: 0.82rem; } + .saved button { padding: 6px 12px; font-size: 0.85rem; } @@ -140,6 +155,14 @@

Convert a PowerPoint to HTML

+