Skip to content

Commit

Permalink
fix: remember radio button position
Browse files Browse the repository at this point in the history
  • Loading branch information
PandorasActorMS committed Oct 16, 2023
1 parent a40882f commit 1568299
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
<input type="radio" name="model" onchange="localStorage.setItem('model', 'gpt-4')"/>
<p>GPT 4</p>
</label>
<script>var radios= document.getElementsByName("model");
var val = localStorage.getItem('model');
if (val == 'gpt-4' ) {
radios[1].checked=true;
}
</script>
</div>
<details>
<summary>
Expand Down

0 comments on commit 1568299

Please sign in to comment.