Update exhibit

This commit is contained in:
2026-07-07 17:36:23 +10:00
parent 14d7185a6e
commit f7de2c3b1f
3 changed files with 217 additions and 0 deletions
+6
View File
@@ -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 = ''; } });
// ===========================================================================