Update web/index.html
Browse files- web/index.html +23 -1
web/index.html
CHANGED
|
@@ -18,7 +18,15 @@
|
|
| 18 |
<link rel="stylesheet" href="css/quill.snow.css">
|
| 19 |
<link rel="stylesheet" href="css/daterangepicker.css">
|
| 20 |
<link rel="stylesheet" href="css/app-light.css" id="lightTheme">
|
| 21 |
-
<link rel="stylesheet" href="css/app-dark.css" id="darkTheme" disabled
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
</head>
|
| 23 |
<body class="vertical light ">
|
| 24 |
<div class="wrapper">
|
|
@@ -2032,6 +2040,20 @@
|
|
| 2032 |
});
|
| 2033 |
});
|
| 2034 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2035 |
</script>
|
| 2036 |
</body>
|
| 2037 |
</html>
|
|
|
|
| 18 |
<link rel="stylesheet" href="css/quill.snow.css">
|
| 19 |
<link rel="stylesheet" href="css/daterangepicker.css">
|
| 20 |
<link rel="stylesheet" href="css/app-light.css" id="lightTheme">
|
| 21 |
+
<link rel="stylesheet" href="css/app-dark.css" id="darkTheme" disabled
|
| 22 |
+
|
| 23 |
+
<script>
|
| 24 |
+
(function() {
|
| 25 |
+
if (localStorage.getItem('theme') === 'dark') {
|
| 26 |
+
document.documentElement.style.visibility = 'hidden';
|
| 27 |
+
}
|
| 28 |
+
})();
|
| 29 |
+
</script>
|
| 30 |
</head>
|
| 31 |
<body class="vertical light ">
|
| 32 |
<div class="wrapper">
|
|
|
|
| 2040 |
});
|
| 2041 |
});
|
| 2042 |
})();
|
| 2043 |
+
|
| 2044 |
+
function applyTheme(theme) {
|
| 2045 |
+
const lightTheme = document.getElementById('lightTheme');
|
| 2046 |
+
const darkTheme = document.getElementById('darkTheme');
|
| 2047 |
+
if (theme === 'dark') {
|
| 2048 |
+
lightTheme.disabled = true;
|
| 2049 |
+
darkTheme.disabled = false;
|
| 2050 |
+
} else {
|
| 2051 |
+
lightTheme.disabled = false;
|
| 2052 |
+
darkTheme.disabled = true;
|
| 2053 |
+
}
|
| 2054 |
+
// 👇 Revelar la página una vez aplicado el tema
|
| 2055 |
+
document.documentElement.style.visibility = 'visible';
|
| 2056 |
+
}
|
| 2057 |
</script>
|
| 2058 |
</body>
|
| 2059 |
</html>
|