Skip to content

Commit 09a0716

Browse files
committed
Fix up hidings
1 parent 6c2b2ca commit 09a0716

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ <h1>Miracle: Sega Master System emulator</h1>
157157
<a href="javascript:void(0)">A rom</a>
158158
</li>
159159
</ul>
160-
<a
161-
href="javascript:void(0)"
162-
class="close_button"
163-
onclick="hideRomChooser()"
160+
<a id="hideRomChooser" href="javascript:void(0)" class="close_button"
164161
>Close</a
165162
>
166163
</div>
@@ -207,7 +204,7 @@ <h2>a Sega Master System emulator in Javascript</h2>
207204
</p>
208205
</div>
209206

210-
<a href="javascript:void(0)" class="close_button" onclick="hideAbout()"
207+
<a id="hideAbout" href="javascript:void(0)" class="close_button"
211208
>Close</a
212209
>
213210
</div>

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function hideRomChooser() {
135135
$("#rom_chooser").hide();
136136
clearFileUploadElement();
137137
}
138+
$("#hideRomChooser").on("click", hideRomChooser);
138139

139140
function showAbout() {
140141
$("#about").show();
@@ -143,6 +144,7 @@ function showAbout() {
143144
function hideAbout() {
144145
$("#about").hide();
145146
}
147+
$("#hideAbout").on("click", hideAbout);
146148

147149
$(function () {
148150
go();

0 commit comments

Comments
 (0)