ViannyCruz commited on
Commit
c16bdf7
·
verified ·
1 Parent(s): ccbd3bf

Update web/index.html

Browse files
Files changed (1) hide show
  1. web/index.html +9 -2
web/index.html CHANGED
@@ -25,8 +25,15 @@
25
  <link rel="stylesheet" href="css/jquery.timepicker.css">
26
  <link rel="stylesheet" href="css/quill.snow.css">
27
  <link rel="stylesheet" href="css/daterangepicker.css">
28
- <link rel="stylesheet" href="css/app-light.css" id="lightTheme">
29
- <link rel="stylesheet" href="css/app-dark.css" id="darkTheme" disabled
 
 
 
 
 
 
 
30
 
31
 
32
  </head>
 
25
  <link rel="stylesheet" href="css/jquery.timepicker.css">
26
  <link rel="stylesheet" href="css/quill.snow.css">
27
  <link rel="stylesheet" href="css/daterangepicker.css">
28
+ <script>
29
+ (function() {
30
+ var dark = localStorage.getItem('theme') === 'dark';
31
+ document.write(
32
+ '<link rel="stylesheet" href="css/app-' + (dark ? 'dark' : 'light') + '.css" id="' + (dark ? 'dark' : 'light') + 'Theme">' +
33
+ '<link rel="stylesheet" href="css/app-' + (dark ? 'light' : 'dark') + '.css" id="' + (dark ? 'light' : 'dark') + 'Theme" disabled>'
34
+ );
35
+ })();
36
+ </script>
37
 
38
 
39
  </head>