File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,7 @@ <h1>Miracle: Sega Master System emulator</h1>
157
157
< a href ="javascript:void(0) "> A rom</ a >
158
158
</ li >
159
159
</ 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 "
164
161
> Close</ a
165
162
>
166
163
</ div >
@@ -207,7 +204,7 @@ <h2>a Sega Master System emulator in Javascript</h2>
207
204
</ p >
208
205
</ div >
209
206
210
- < a href ="javascript:void(0) " class ="close_button " onclick =" hideAbout() "
207
+ < a id =" hideAbout " href ="javascript:void(0) " class ="close_button "
211
208
> Close</ a
212
209
>
213
210
</ div >
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ function hideRomChooser() {
135
135
$ ( "#rom_chooser" ) . hide ( ) ;
136
136
clearFileUploadElement ( ) ;
137
137
}
138
+ $ ( "#hideRomChooser" ) . on ( "click" , hideRomChooser ) ;
138
139
139
140
function showAbout ( ) {
140
141
$ ( "#about" ) . show ( ) ;
@@ -143,6 +144,7 @@ function showAbout() {
143
144
function hideAbout ( ) {
144
145
$ ( "#about" ) . hide ( ) ;
145
146
}
147
+ $ ( "#hideAbout" ) . on ( "click" , hideAbout ) ;
146
148
147
149
$ ( function ( ) {
148
150
go ( ) ;
You can’t perform that action at this time.
0 commit comments