From 71a77608f83f54bf78b67b6f5742cf04ddd919cc Mon Sep 17 00:00:00 2001 From: ypshim Date: Wed, 21 Oct 2026 17:31:24 +0900 Subject: [PATCH] feat(view): load bundled sample from ?sample=1 deep link Co-Authored-By: Claude Haiku 5.5 --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) 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(); +}