2727
2828function getTheme ( ) {
2929 function changeTheme ( themeUrl ) {
30- var elm = document . getElementById ( "style" ) ;
30+ const elm = document . getElementById ( "style" ) ;
3131 elm && elm . remove ( ) ;
3232
33- var newCss = document . createElement ( "link" ) ;
33+ const newCss = document . createElement ( "link" ) ;
3434 newCss . id = "style" ;
3535 newCss . rel = "stylesheet" ;
3636 newCss . type = "text/css" ;
3737 newCss . href = themeUrl ;
3838 document . head . appendChild ( newCss ) ;
3939 }
40- var index = document . getElementById ( "select" ) . selectedIndex ;
40+ const index = document . getElementById ( "select" ) . selectedIndex ;
4141 switch ( index ) {
4242 case 0 :
4343 changeTheme ( 'css/light-snake.css?' + Math . random ( ) ) ;
5757 case 5 :
5858 changeTheme ( 'css/Senura-snake.css?' + Math . random ( ) ) ;
5959 break ;
60- case 6 :
60+ case 6 :
6161 changeTheme ( 'css/head-snake.css?' + Math . random ( ) ) ;
6262 break ;
63+ case 7 :
64+ changeTheme ( "css/black-snake.css?" + Math . random ( ) ) ;
65+ case 8 :
66+ changeTheme ( 'css/neon-snake.css?' + Math . random ( ) ) ;
67+ break ;
6368 default :
6469 changeTheme ( 'css/main-snake.css?' + Math . random ( ) ) ;
6570 break ;
7075}
7176
7277if ( navigator . onLine && window . location . hostname === 'patorjk.com' ) {
73- var _gaq = _gaq || [ ] ;
78+ const _gaq = _gaq || [ ] ;
7479 _gaq . push ( [ '_setAccount' , 'UA-3312460-1' ] ) ;
7580 _gaq . push ( [ '_trackPageview' ] ) ;
7681
7782 ( function ( ) {
78- var ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
83+ const ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
7984 ga . src = ( 'https:' == document . location . protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js' ;
80- var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
85+ const s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
8186 } ) ( ) ;
8287}
8388</ script >
9499 < option > Matrix Theme by Geahad Haymor</ option >
95100 < option > Theme by Senura Ratnayake</ option >
96101 < option > Snake Head Theme by Rb64</ option >
102+ < option > Black and purple Theme by LucassSantoss</ option >
103+ < option > Neon Theme by Daisy21000</ option >
97104 </ select >
98105 </ div >
99106 < div style ="display:inline-block;margin-right:10px; ">
@@ -126,7 +133,7 @@ <h2>Select which mode you would like to play in.</h2>
126133 < script type ="text/javascript " src ="./js/init.js "> </ script >
127134 < script type ="text/javascript ">
128135 function go_full_screen ( ) {
129- var elem = document . documentElement ;
136+ const elem = document . documentElement ;
130137 try {
131138 if ( elem . requestFullscreen ) {
132139 elem . requestFullscreen ( ) ;
@@ -144,4 +151,4 @@ <h2>Select which mode you would like to play in.</h2>
144151 }
145152 </ script >
146153</ body >
147- </ html >
154+ </ html >
0 commit comments