feat(view): load bundled sample from ?sample=1 deep link

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
ypshimandClaude Haiku 5.5 committed 2026-10-21 17:31:24 +09:00
1 parent ad8e437c99
commit 71a77608f8
1 file changed
+5
+5
View File
@@ -253,3 +253,8 @@ $<HTMLSelectElement>('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') {
$<HTMLButtonElement>('sample').click();
}