From 0d01e23d7cdb361484bfb41822db30878b562d24 Mon Sep 17 00:00:00 2001 From: Andy Kopra Date: Sun, 11 Oct 2026 16:59:03 +0200 Subject: [PATCH] A host from the web site; the same page kept once; deleting from the Notebooks chooser From the development repository at 299f73d, 2026-10-11: hosting from the site documented; a page loaded from a notebook and left unchanged is not kept again; notebooks and pages are deleted from the chooser, to the system's Trash (--trash); the Notebooks button. Co-Authored-By: Claude Fable 5.1 --- README.md | 6 +- client/index.html | 4 +- client/js/browser_notebook.js | 41 ++++++- client/js/chooser.js | 205 ++++++++++++++++++++++++++++++++-- client/js/main.js | 7 +- client/js/notebook.js | 37 +++++- client/kokkoja.css | 41 ++++++- docs/guest.md | 9 +- docs/host.md | 57 ++++++++-- docs/implementation.md | 14 ++- docs/introduction.md | 17 +-- docs/quickstart.md | 13 ++- kokkoja.py | 131 +++++++++++++++++++++- tests/test_end_to_end.py | 98 +++++++++++++++- tests/test_local_program.py | 94 +++++++++++++++- 15 files changed, 711 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index c4fcbd7..505f975 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,11 @@ may be used. ## In short A guest needs nothing but a web browser: open the invitation link, enter -a name, join. +a name, join. A host can start a session from the same web site, +`https://kokkoja.andykopra.com/`, with the notebooks kept in the +browser. -A host needs Python 3 and this directory: +A host who wants notebooks as files needs Python 3 and this directory: python3 kokkoja.py --relay wss://kokkoja.andykopra.com/relay diff --git a/client/index.html b/client/index.html index f0109d4..132dd78 100644 --- a/client/index.html +++ b/client/index.html @@ -93,7 +93,7 @@ + data-help="Start a new page for everyone from a page kept in a notebook, with everything on it. The current page is kept in each notebook.">Notebooks