@@ -268,6 +268,15 @@ var colorThemes = {
268268 'link' : '#808080' ,
269269 'sidebarlink' : '#808080' ,
270270 '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'
271280 }
272281} ;
273282
@@ -385,11 +394,6 @@ function makeSettingsPage() {
385394 changeStyleForElement ( currentButton , 'color' , '#ffffff' ) ;
386395 buttonHover ( currentButton , themeData . button ) ;
387396 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- }
393397 currentButton = null ;
394398 }
395399 var save = document . getElementById ( 'savecolortheme' ) ;
@@ -421,15 +425,19 @@ function makeSettingsPage() {
421425 document . getElementById ( 'customtheme_bgtype' ) . click ( ) ;
422426 document . getElementById ( 'savecolortheme' ) . onclick = function ( ) {
423427 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+ }
427434 output . background = document . getElementById ( 'bgsrc_input' ) . firstChild . value ;
428435 output . textbg = document . getElementById ( 'textbg_input' ) . value ;
429436 output . text = document . getElementById ( 'text_input' ) . value ;
430437 output . link = document . getElementById ( 'link_input' ) . value ;
431438 output . sidebarlink = document . getElementById ( 'sidebarlink_input' ) . value ;
432439 output . button = document . getElementById ( 'button_input' ) . value ;
440+ console . log ( JSON . stringify ( output ) ) ;
433441 setCookie ( 'customColorTheme' , JSON . stringify ( output ) , 1000 ) ;
434442 setCookie ( 'colorTheme' , 'Custom' , 1000 ) ;
435443 colorTheme ( ) ;
@@ -464,7 +472,7 @@ function showMessage (content, closeMessage) {
464472 close . id = 'close' ;
465473 close . className = 'noColorChange' ;
466474 gray . style = `
467- background: rgba(60,60,60 ,0.6 );
475+ background: rgba(0,0,0 ,0.7 );
468476 position: fixed;
469477 top: 0px;
470478 left: 0px;
0 commit comments