Skip to content

Commit

Permalink
query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
UUoocl authored Sep 22, 2024
1 parent 4c38a4c commit 23dd480
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@ <h1>Apple Shortcuts Input</h1>

</article>

<script>
const params = new URLSearchParams(window.location.search); //parse params
const q = params.get("q"); //get q param
document.getElementbyid("PW").value = q; //assign q value to input when loading
</script>

<script src='lib/obs-ws.js'></script>
<script src='lib/obsConnect.js'></script>
<script src='lib/getLocalAV.js'></script>
Expand Down

0 comments on commit 23dd480

Please sign in to comment.