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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -20540,7 +20540,7 @@ the GM's eye: it's level 10 and a Bestiary ( { if (currentIdx > 0) goTo(PAGES[currentIdx - 1], true); });
- btnNext.addEventListener('click', () => { if (currentIdx < total - 1) goTo(PAGES[currentIdx + 1], true); });
+ btnPrev.addEventListener('click', () => { if (currentIdx > 0) goTo(PAGES[currentIdx - 1], true, true); });
+ btnNext.addEventListener('click', () => { if (currentIdx < total - 1) goTo(PAGES[currentIdx + 1], true, true); });
document.addEventListener('keydown', e => {
if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return;
- if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') { if (currentIdx > 0) goTo(PAGES[currentIdx - 1], true); }
- if (e.key === 'ArrowRight' || e.key === 'ArrowDown') { if (currentIdx < total - 1) goTo(PAGES[currentIdx + 1], true); }
+ if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') { if (currentIdx > 0) goTo(PAGES[currentIdx - 1], true, true); }
+ if (e.key === 'ArrowRight' || e.key === 'ArrowDown') { if (currentIdx < total - 1) goTo(PAGES[currentIdx + 1], true, true); }
});
- // Track current page by scroll position
+ // Track current page by scroll position (replaceState — no new history entry)
content.addEventListener('scroll', () => {
const containerTop = content.getBoundingClientRect().top;
let found = 0;
@@ -20583,13 +20584,22 @@ the GM's eye: it's level 10 and a Bestiary ( {
+ const pm = location.hash.match(/^#page-(\d+)$/);
+ if (pm) {
+ const n = parseInt(pm[1], 10);
+ if (PAGES.includes(n)) goTo(n, false, false);
+ }
+ });
+
// Initial navigation from URL hash
const m = location.hash.match(/^#page-(\d+)$/);
const startPage = m ? parseInt(m[1], 10) : PAGES[0];
- goTo(PAGES.includes(startPage) ? startPage : PAGES[0], false);
+ goTo(PAGES.includes(startPage) ? startPage : PAGES[0], false, false);