From 7958ceb77849c94726d6e71d1a8144b5a1dedf37 Mon Sep 17 00:00:00 2001
From: BryanMurphy <123925276+BPMData@users.noreply.github.com>
Date: Wed, 18 Nov 2026 17:17:12 -0500
Subject: [PATCH] Add a laser pointer: tap the selected color again (v52)
Tap the pen or highlighter color you already have selected and its ring
turns black, red, black. What you draw then stays for two seconds after
the pen lifts and fades away by itself. It is never saved, printed or
added to Undo. Works the same in the PDF app and the HTML overlay.
Co-Authored-By: Claude Opus 5.5
---
CHANGELOG.md | 1 +
README.md | 1 +
app/index.html | 4 +-
app/ink.js | 16 +++++-
app/main.js | 22 ++++++---
app/report/index.html | 2 +-
app/sw.js | 20 ++++----
app/version.json | 2 +-
index.html | 104 ++++++++++++++++++++++++++++++++++++---
overlay/ink_overlay.html | 104 ++++++++++++++++++++++++++++++++++++---
shared/ink-core.js | 66 ++++++++++++++++++++++++-
shared/strings.js | 4 ++
shared/toolbar.css | 5 ++
tests/laser.spec.js | 82 ++++++++++++++++++++++++++++++
tests/overlay.spec.js | 2 +-
tests/timer.spec.js | 2 +-
16 files changed, 399 insertions(+), 38 deletions(-)
create mode 100644 tests/laser.spec.js
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a4460c7..bfafb97 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## Unreleased
+- **Laser pointer** (v52, PDF app and HTML overlay). Tap the pen or highlighter color you already have selected, and its ring turns black, red, black. What you draw now stays for two seconds after you lift the pen, then fades away by itself. It is never saved, printed or added to Undo. Tap the color again, or pick another color or tool, to go back to writing. Your palm still erases.
- **Blue toolbar and pink eraser** (v51, PDF app and HTML overlay). The toolbar, its menus, Settings, the Timer and the Chapters / Find panel are now dark navy with light sky-blue buttons and black text, instead of black and yellow, to match the boat icon. The Eraser button is eraser pink. A selected tool has a white ring. Pen, highlighter and cover colors are unchanged.
- **New boat icon** (v48). The PDF app, the demo page and the "Board not working?" page now use the OverBoard sailboat icon in the browser tab, on the home screen and when installed. The PDF app's start screen shows it next to the OverBoard PDF title. The sail is a little smaller and sits a little higher than in the first version of the icon.
- **"Save notebook…" for blank notebooks** (v46, PDF app). In a notebook started from the start screen, the button that reads **Save ink into PDF…** for other PDFs now reads **Save notebook…**, and its window explains that the notebook is only kept in this browser until you save it as a real file. The file keeps the notebook's own name (no `_board`). Reopened in OverBoard, it's still a notebook: your writing comes back and you can keep adding pages. Once saving is on, the button shows **Saving into PDF ✓** as before.
diff --git a/README.md b/README.md
index 61018a6..3415264 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,7 @@ The ink tool that ships with a lot of classroom smartboards draws on a see-throu
- **Highlighter** that sits behind the printed text, so words stay readable
- **Cover**: tap the **▾** beside Highlighter and pick a cover to black out answers; wipe it away with your palm to reveal them. The same menu sets **highlight strength** (10–100%)
- **Select**: circle ink with the pen (or tap one mark), then **send a copy to another class period**, copy and paste it onto another page, drag it somewhere else, or delete it. A dashed blue box shows what's selected, with its menu beside it (a right-click on the box opens it too)
+- **Laser pointer**: tap the pen or highlighter color you already have selected (its ring turns black, red, black) and what you draw fades away by itself a few seconds later. Tap it again to go back to writing
- **Undo and Redo** (↶ ↷ on the toolbar, or Ctrl/⌘+Z and Ctrl/⌘+Y, Ctrl/⌘+R or Ctrl/⌘+Shift+Z). Reloading from the keyboard is turned off, so a slip can't throw away the page
- **8 colors + a custom color picker**, pen size and smoothing controls (hold − / + to repeat)
- **Separate ink for each class period** on the same worksheet: P1–P4 to start, or set your own in **Settings & help ▸ Settings…** (1–12 periods, any names)
diff --git a/app/index.html b/app/index.html
index 64ec8cf..c6f06b1 100644
--- a/app/index.html
+++ b/app/index.html
@@ -5,7 +5,7 @@
OverBoard PDF
-
+
@@ -47,7 +47,7 @@
Open again
Your PDF and your ink stay in this browser on this computer. Nothing is uploaded.
Have a Word file? In Word, choose File → Save as PDF, then drop the PDF here.
Have an HTML worksheet? Drop it here to get a _board.html copy you can write on.
- About OverBoard · Board not working? · v51