From f7de2c3b1f3638493f4da1cc5c97bad517487f54 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Tue, 7 Jul 2026 17:36:23 +1000 Subject: [PATCH] Update exhibit --- public/admin.html | 1 + public/anchors-print.html | 210 ++++++++++++++++++++++++++++++++++++++ public/js/admin.js | 6 ++ 3 files changed, 217 insertions(+) create mode 100644 public/anchors-print.html diff --git a/public/admin.html b/public/admin.html index 1d9c6c7..fd822cd 100644 --- a/public/admin.html +++ b/public/admin.html @@ -125,6 +125,7 @@
+ diff --git a/public/anchors-print.html b/public/anchors-print.html new file mode 100644 index 0000000..42411a0 --- /dev/null +++ b/public/anchors-print.html @@ -0,0 +1,210 @@ + + + + + +Newbury Crests — print sheet + + + +
+

Newbury Crests — print sheet

+
+ + + + + +
Print at 100% / actual size (no "fit to page"). Measure a printed marker to confirm scale before building. Matte paper or matte UV — avoid gloss (glare breaks detection).
+
+ +
Loading anchors…
+ + + + + + diff --git a/public/js/admin.js b/public/js/admin.js index f7c747a..9211042 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -721,6 +721,12 @@ $('reloadBtn').addEventListener('click', async () => { toast('Reloaded from server'); }); +const printAnchorsBtn = document.getElementById('printAnchorsBtn'); +if (printAnchorsBtn) printAnchorsBtn.addEventListener('click', () => { + if (dirty) toast('Tip: save first so the print sheet matches your latest anchors', ''); + window.open('anchors-print.html', '_blank'); +}); + window.addEventListener('beforeunload', (e) => { if (dirty) { e.preventDefault(); e.returnValue = ''; } }); // ===========================================================================