diff --git a/src/main.ts b/src/main.ts index d343aa4..c1b96bf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -253,3 +253,8 @@ $('pier').addEventListener('change', (ev) => showPier((ev.tar buildPartToggles(); buildViewButtons(); renderResults(null); + +// Deep link for the bundled sample: open with ?sample=1 to load P1 without clicking. +if (new URLSearchParams(window.location.search).get('sample') === '1') { + $('sample').click(); +}