@@ -268,6 +268,15 @@ var colorThemes = {
268
268
'link' : '#808080' ,
269
269
'sidebarlink' : '#808080' ,
270
270
'button' : '#404040'
271
+ } ,
272
+ 'Neon' : {
273
+ 'backgroundtype' : 'image' ,
274
+ 'background' : '/images/bg/neon.jpg' ,
275
+ 'textbg' : '#000000' ,
276
+ 'text' : '#ffffff' ,
277
+ 'link' : '#fffa00' ,
278
+ 'sidebarlink' : '#00ccf5' ,
279
+ 'button' : '#dc00f0'
271
280
}
272
281
} ;
273
282
@@ -385,11 +394,6 @@ function makeSettingsPage() {
385
394
changeStyleForElement ( currentButton , 'color' , '#ffffff' ) ;
386
395
buttonHover ( currentButton , themeData . button ) ;
387
396
document . getElementById ( 'button_div' ) . appendChild ( currentButton ) ;
388
- for ( var j = 0 ; j < 3 ; j ++ ) {
389
- document . getElementById ( 'button_div' ) . appendChild (
390
- document . createElement ( 'br' )
391
- ) ;
392
- }
393
397
currentButton = null ;
394
398
}
395
399
var save = document . getElementById ( 'savecolortheme' ) ;
@@ -421,15 +425,19 @@ function makeSettingsPage() {
421
425
document . getElementById ( 'customtheme_bgtype' ) . click ( ) ;
422
426
document . getElementById ( 'savecolortheme' ) . onclick = function ( ) {
423
427
var output = { } ;
424
- '[IMAGE]' == document . getElementById ( 'bgtype_display' ) . innerHTML
425
- ? output . backgroundtype = 'image'
426
- : output . backgroundtype == 'color' ;
428
+ if ( document . getElementById ( 'bgtype_display' ) . innerHTML === '[IMAGE]' ) {
429
+ output . backgroundtype = 'image'
430
+ }
431
+ else {
432
+ output . backgroundtype = 'color' ;
433
+ }
427
434
output . background = document . getElementById ( 'bgsrc_input' ) . firstChild . value ;
428
435
output . textbg = document . getElementById ( 'textbg_input' ) . value ;
429
436
output . text = document . getElementById ( 'text_input' ) . value ;
430
437
output . link = document . getElementById ( 'link_input' ) . value ;
431
438
output . sidebarlink = document . getElementById ( 'sidebarlink_input' ) . value ;
432
439
output . button = document . getElementById ( 'button_input' ) . value ;
440
+ console . log ( JSON . stringify ( output ) ) ;
433
441
setCookie ( 'customColorTheme' , JSON . stringify ( output ) , 1000 ) ;
434
442
setCookie ( 'colorTheme' , 'Custom' , 1000 ) ;
435
443
colorTheme ( ) ;
@@ -464,7 +472,7 @@ function showMessage (content, closeMessage) {
464
472
close . id = 'close' ;
465
473
close . className = 'noColorChange' ;
466
474
gray . style = `
467
- background: rgba(60,60,60 ,0.6 );
475
+ background: rgba(0,0,0 ,0.7 );
468
476
position: fixed;
469
477
top: 0px;
470
478
left: 0px;
0 commit comments