Skip to content

Commit

Permalink
- Attempt 5: Removal of The JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Supraboy981322 authored Feb 22, 2024
1 parent f6844a0 commit 365384c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions proto-and-wip/emulators/gba.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
<script src="https://andychase.me/gbajs2/resources/xhr.js"></script>
<script src="https://andychase.me/gbajs2/resources/biosbin.js"></script>
<script>
window.onload = (event) => {
document.getElementsByClassName("pixelCheck").checked = true;
document.getElementByClassName("soundCheck").checked = true;
};

let gba
let runCommands = [];
let debug = null;
Expand Down Expand Up @@ -382,11 +379,11 @@
<button onclick="screenshot()">Screenshot</button>
<button onclick="fullScreen()">Full screen</button>
<label id="pixelated">
<input class="pixelCheck" type="checkbox" onchange="setPixelated(this.checked)" />
<input class="pixelCheck" type="checkbox" onload="setPixelated(this.checked)" />
<p>Pixelated</p>
</label>
<div id="sound">
<input class="soundCheck" type="checkbox" onchange="gba.audio.masterEnable = this.checked; if (gba.audio.context.state !== 'running') {gba.audio.context.resume();}" />
<input class="soundCheck" type="checkbox" onload="gba.audio.masterEnable = this.checked; if (gba.audio.context.state !== 'running') {gba.audio.context.resume();}" />
<p>Sound</p>
<input type="range" min="0" max="1" value="1" step="any" onchange="setVolume(this.value)" oninput="setVolume(this.value)" />
</div>
Expand Down

0 comments on commit 365384c

Please sign in to comment.