@@ -213,17 +213,17 @@ async function renderRom(data) {
213
213
$ ( '#side' ) . empty ( ) ;
214
214
// Render Legend
215
215
var keys = [ [ 'All Art Downloaded' , 'green' ] , [ 'Art Available for Download' , 'red' ] , [ 'No Art Available' , 'gray' ] ]
216
- var header = $ ( '<div>' )
216
+ var header = $ ( '<div>' ) . attr ( 'id' , 'header' ) ;
217
217
for await ( var key of keys ) {
218
- var item = $ ( '<div>' ) . addClass ( 'inline' ) . css ( 'background-color' , key [ 1 ] ) . text ( key [ 0 ] ) ;
218
+ var item = $ ( '<div>' ) . css ( 'background-color' , key [ 1 ] ) . text ( key [ 0 ] ) ;
219
219
header . append ( item ) ;
220
220
}
221
- $ ( '#main ' ) . append ( header , '<br>' )
222
- var container = $ ( '<div>' ) . attr ( 'id' , 'container' ) ;
221
+ var container = $ ( '<div> ' ) . addClass ( 'wrapper' ) ;
222
+ container . append ( header ) ;
223
223
$ ( '#main' ) . append ( container ) ;
224
- var left = $ ( '<div>' ) . attr ( 'id' , 'left' ) . append ( '<p>Identified Roms</p>' ) ;
225
- var right = $ ( '<div>' ) . attr ( 'id' , 'right' ) . append ( '<p>Unidentified Roms</p>' ) ;
226
- $ ( '# container' ) . append ( left , right ) ;
224
+ var identified = $ ( '<div>' ) . attr ( 'id' , 'left' ) . append ( '<p>Identified Roms: </p>' ) ;
225
+ var unidentified = $ ( '<div>' ) . attr ( 'id' , 'right' ) . append ( '<p>Unidentified Roms: </p>' ) ;
226
+ container . append ( identified , unidentified ) ;
227
227
// Process buttons
228
228
var folderName = $ ( '#main' ) . data ( 'name' ) ;
229
229
var downloadArtButton = $ ( '<button>' ) . addClass ( 'button hover' ) . attr ( 'onclick' , 'downloadArt(\'' + folderName + '\');' ) . text ( 'Download All Available Art' ) ;
@@ -242,13 +242,13 @@ async function renderRom(data) {
242
242
var color = 'gray' ;
243
243
} ;
244
244
var item = $ ( '<p>' ) . css ( 'background-color' , color ) . text ( idItem ) ;
245
- $ ( '#left' ) . append ( item )
245
+ identified . append ( item )
246
246
} ;
247
247
for await ( var noIdItem of Object . keys ( data [ 1 ] ) ) {
248
248
var item = $ ( '<p>' ) . text ( noIdItem ) ;
249
249
var identifyButton = $ ( '<button>' ) . addClass ( 'button hover' ) . attr ( 'onclick' , 'identifyRom(\'' + data [ 1 ] [ noIdItem ] . replace ( "'" , "|" ) + '\',\'' + noIdItem . replace ( "'" , "|" ) + '\');' ) . text ( 'identify' ) ;
250
250
item . append ( identifyButton ) ;
251
- $ ( '#right' ) . append ( item )
251
+ unidentified . append ( item )
252
252
} ;
253
253
} ;
254
254
0 commit comments