Skip to content

Commit

Permalink
Fix up hidings
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Dec 19, 2024
1 parent 6c2b2ca commit 09a0716
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ <h1>Miracle: Sega Master System emulator</h1>
<a href="javascript:void(0)">A rom</a>
</li>
</ul>
<a
href="javascript:void(0)"
class="close_button"
onclick="hideRomChooser()"
<a id="hideRomChooser" href="javascript:void(0)" class="close_button"
>Close</a
>
</div>
Expand Down Expand Up @@ -207,7 +204,7 @@ <h2>a Sega Master System emulator in Javascript</h2>
</p>
</div>

<a href="javascript:void(0)" class="close_button" onclick="hideAbout()"
<a id="hideAbout" href="javascript:void(0)" class="close_button"
>Close</a
>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function hideRomChooser() {
$("#rom_chooser").hide();
clearFileUploadElement();
}
$("#hideRomChooser").on("click", hideRomChooser);

function showAbout() {
$("#about").show();
Expand All @@ -143,6 +144,7 @@ function showAbout() {
function hideAbout() {
$("#about").hide();
}
$("#hideAbout").on("click", hideAbout);

$(function () {
go();
Expand Down

0 comments on commit 09a0716

Please sign in to comment.