Board Thread:Wiki Management/@comment-5797509-20130603000529/@comment-5079138-20130605082455

Codefor night chat (sorry my space is hard to press so sometimes my words has missing spaces)

Color scheme can also changed. To learn the Hexadecimal code for color codes Click here. This is helpful to change the hex color colde like #00DF23, etc //Switch to night button var night_button = 'Switch to Night Chat' ; //Switch to day button var day_button = 'Switch to Day Chat' ; // //Color scheme for DAY Chat // //Link color var linkColorDay = <span class="st0" style="color:rgb(51,102,204);">'#006CB0' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//All text Color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var textColorDay <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#000000' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Self text background color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var selfTextColorDay <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#f5f5f5' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Chat background color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var backgroundColorDay <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#e1e8f2' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Chat foreground color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var foregroundColorDay <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#FFFFFF' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//User stats foreground color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var userStatsColorDay <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#cce1ef' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//END DAY Chat color scheme <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Color scheme for NIGHT Chat <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Link color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var linkColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#94E1FB' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//All text Color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var textColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#FFFFFF' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Self text background color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var selfTextColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#658DFF' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Chat background color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var backgroundColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#050210' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Chat foreground color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var foregroundColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#6265BB' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//User stats foreground color <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var userStatsColor <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'#0f50B0' <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//END NIGHT Chat color scheme <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// Change mod icons depending on the time <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// Written by Foodbandlt <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function nighttime_moon<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var night <span class="sy0" style="color:rgb(51,153,51);">= <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">new Date<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var nighthour<span class="sy0" style="color:rgb(51,153,51);">= night.<span class="me1" style="color:rgb(102,0,102);">getHours <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( nighthour <span class="sy0" style="color:rgb(51,153,51);">>= <span class="nu0" style="color:rgb(204,0,0);">19 <span class="sy0" style="color:rgb(51,153,51);">|| nighthour <span class="sy0" style="color:rgb(51,153,51);"><= <span class="nu0" style="color:rgb(204,0,0);">7 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.User.chat-mod .username' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">hasClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modday" <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">removeClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modday" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">addClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modnight" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">addClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modnight" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.User.chat-mod .username' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">hasClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modnight" <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">removeClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modnight" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">addClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modday" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">".User.chat-mod .username" <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">addClass <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"modday" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} setTimeout<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"nighttime_moon" <span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(204,0,0);">10 <span class="sy0" style="color:rgb(51,153,51);">* <span class="nu0" style="color:rgb(204,0,0);">60 <span class="sy0" style="color:rgb(51,153,51);">* <span class="nu0" style="color:rgb(204,0,0);">1000 <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} nighttime_moon<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Day and night color schemes <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Written by Foodbandlt <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function addDayStyle<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var styleElementDay <span class="sy0" style="color:rgb(51,153,51);">= document.<span class="me1" style="color:rgb(102,0,102);">createElement <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; styleElementDay.<span class="me1" style="color:rgb(102,0,102);">setAttribute <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"id" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">"day" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; styleElementDay.<span class="me1" style="color:rgb(102,0,102);">innerHTML <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'body{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ backgroundColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: ' <span class="sy0" style="color:rgb(51,153,51);">+ textColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ foregroundColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.Chat .you{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ selfTextColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}a{color: ' <span class="sy0" style="color:rgb(51,153,51);">+ linkColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.UserStatsMenu .info{background:' <span class="sy0" style="color:rgb(51,153,51);">+ userStatsColorDay<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}' <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'head' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">append <span class="br0" style="color:rgb(0,153,0);">( styleElementDay<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function addNightStyle<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var styleElement <span class="sy0" style="color:rgb(51,153,51);">= document.<span class="me1" style="color:rgb(102,0,102);">createElement <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; styleElement.<span class="me1" style="color:rgb(102,0,102);">setAttribute <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"id" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">"night" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; styleElement.<span class="me1" style="color:rgb(102,0,102);">innerHTML <span class="sy0" style="color:rgb(51,153,51);">= <span class="st0" style="color:rgb(51,102,204);">'body{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ backgroundColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: ' <span class="sy0" style="color:rgb(51,153,51);">+ textColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ foregroundColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.Chat .you{background: ' <span class="sy0" style="color:rgb(51,153,51);">+ selfTextColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}a{color: ' <span class="sy0" style="color:rgb(51,153,51);">+ linkColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}.UserStatsMenu .info{background:' <span class="sy0" style="color:rgb(51,153,51);">+ userStatsColor<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">';}' <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'head' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">append <span class="br0" style="color:rgb(0,153,0);">( styleElement<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function addDayNightButton<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.day-night-div' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">size <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">== <span class="nu0" style="color:rgb(204,0,0);">0 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'<div class="day-night-div" onclick="switch_view"><a class="day-night-button wikia-button">' <span class="sy0" style="color:rgb(51,153,51);">+ night_button<span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">'</a> ' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">prependTo <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.Rail' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style#night' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">size <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">== <span class="nu0" style="color:rgb(204,0,0);">0 <span class="sy0" style="color:rgb(51,153,51);">&& $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style#nightUser' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">size <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">== <span class="nu0" style="color:rgb(204,0,0);">0 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ addDayStyle<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function day_night<span class="br0" style="color:rgb(0,153,0);">( which<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( which <span class="sy0" style="color:rgb(51,153,51);">== <span class="st0" style="color:rgb(51,102,204);">"night" <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style#day' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">remove <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.Rail .day-night-div .day-night-button' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">text <span class="br0" style="color:rgb(0,153,0);">( day_button<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; addNightStyle<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'style#night' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">remove <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.Rail .day-night-div .day-night-button' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">text <span class="br0" style="color:rgb(0,153,0);">( night_button<span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; addDayStyle<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">function switch_view<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.Rail .day-night-div .day-night-button' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">text <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">== night_button<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ day_night<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"night" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ day_night<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"day" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.Rail .day-night-div' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">size <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">== <span class="nu0" style="color:rgb(204,0,0);">0 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ addDayNightButton<span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">}