File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ <h1 class="logo">
8686 < input type ="checkbox " id ="theme-toggle-btn " style ="display: none " />
8787 < div id ="theme-toggle-slider "> </ div >
8888 </ label >
89- < span id ="theme-text "> Enable Light Mode</ span >
89+ < span id ="theme-text "> Dark Mode</ span >
9090 </ div >
9191 < select name ="language " id ="language ">
9292 < option value ="css "> Beautify CSS</ option >
Original file line number Diff line number Diff line change @@ -422,13 +422,9 @@ function switchTheme(themeToggleEvent) {
422422 $ ( '.CodeMirror' ) . addClass ( 'cm-s-darcula' ) ;
423423 $ ( 'body' ) . addClass ( 'dark-mode' ) ;
424424 $ ( '.logo' ) . children ( 'img' ) . attr ( "src" , "web/banner-dark.svg" ) ;
425-
426- $ ( '#theme-text' ) . text ( 'Enable Light Mode' ) ;
427425 } else {
428426 $ ( '.CodeMirror' ) . removeClass ( 'cm-s-darcula' ) ;
429427 $ ( 'body' ) . removeClass ( 'dark-mode' ) ;
430428 $ ( '.logo' ) . children ( 'img' ) . attr ( "src" , "web/banner-light.svg" ) ;
431-
432- $ ( '#theme-text' ) . text ( 'Enable Dark Mode' ) ;
433429 }
434430}
You can’t perform that action at this time.
0 commit comments