From c16925231e34f73c6e045ceaadca7585b9272fbc Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Thu, 29 Feb 2024 23:24:22 -0600 Subject: [PATCH] Add link to individual state --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index f92f938..fefee7d 100644 --- a/index.html +++ b/index.html @@ -36,6 +36,13 @@ await selectState(ss.value); document.getElementById('game').style.display = 'block'; }); + + // Check if there's a parameter in the URL already + const state = (new URLSearchParams(window.location.search)).get('state'); + if (state) { + ss.value = state; + document.getElementById('go-button').click(); + } })(); import { createApp } from 'https://unpkg.com/petite-vue?module'