Update web/index.html
Browse files- web/index.html +49 -11
web/index.html
CHANGED
|
@@ -21,11 +21,18 @@
|
|
| 21 |
<link rel="stylesheet" href="css/daterangepicker.css">
|
| 22 |
<style id="themeBlock">html{visibility:hidden}</style>
|
| 23 |
<style>
|
| 24 |
-
.circle {
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
</style>
|
| 30 |
<script>
|
| 31 |
(function(){
|
|
@@ -76,7 +83,7 @@
|
|
| 76 |
<!-- nav bar -->
|
| 77 |
<div class="w-100 mb-4 d-flex">
|
| 78 |
<a class="navbar-brand mx-auto mt-2 flex-fill text-center">
|
| 79 |
-
<img src="assets/images/LOGO.png" alt="Logo">
|
| 80 |
</a>
|
| 81 |
</div>
|
| 82 |
|
|
@@ -1067,6 +1074,9 @@
|
|
| 1067 |
|
| 1068 |
setTimeout(() => {
|
| 1069 |
try {
|
|
|
|
|
|
|
|
|
|
| 1070 |
const options = {
|
| 1071 |
chart: {
|
| 1072 |
type: 'area',
|
|
@@ -1119,7 +1129,7 @@
|
|
| 1119 |
style: {
|
| 1120 |
fontSize: '12px',
|
| 1121 |
fontFamily: 'inherit',
|
| 1122 |
-
colors:
|
| 1123 |
}
|
| 1124 |
},
|
| 1125 |
title: {
|
|
@@ -1127,7 +1137,7 @@
|
|
| 1127 |
style: {
|
| 1128 |
fontSize: '14px',
|
| 1129 |
fontFamily: 'inherit',
|
| 1130 |
-
color:
|
| 1131 |
}
|
| 1132 |
}
|
| 1133 |
},
|
|
@@ -1137,7 +1147,7 @@
|
|
| 1137 |
style: {
|
| 1138 |
fontSize: '14px',
|
| 1139 |
fontFamily: 'inherit',
|
| 1140 |
-
color:
|
| 1141 |
}
|
| 1142 |
},
|
| 1143 |
min: 0,
|
|
@@ -1147,7 +1157,7 @@
|
|
| 1147 |
style: {
|
| 1148 |
fontSize: '12px',
|
| 1149 |
fontFamily: 'inherit',
|
| 1150 |
-
colors:
|
| 1151 |
}
|
| 1152 |
}
|
| 1153 |
},
|
|
@@ -2083,7 +2093,35 @@
|
|
| 2083 |
});
|
| 2084 |
});
|
| 2085 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2086 |
</script>
|
| 2087 |
-
|
|
|
|
| 2088 |
</body>
|
| 2089 |
</html>
|
|
|
|
| 21 |
<link rel="stylesheet" href="css/daterangepicker.css">
|
| 22 |
<style id="themeBlock">html{visibility:hidden}</style>
|
| 23 |
<style>
|
| 24 |
+
.circle {
|
| 25 |
+
display: flex !important;
|
| 26 |
+
align-items: center !important;
|
| 27 |
+
justify-content: center !important;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
#leftSidebar.collapsed #sidebarLogo,
|
| 31 |
+
body.collapsed #leftSidebar #sidebarLogo,
|
| 32 |
+
#leftSidebar[style*="width: 0"] #sidebarLogo {
|
| 33 |
+
max-width: 36px !important;
|
| 34 |
+
width: 36px !important;
|
| 35 |
+
}
|
| 36 |
</style>
|
| 37 |
<script>
|
| 38 |
(function(){
|
|
|
|
| 83 |
<!-- nav bar -->
|
| 84 |
<div class="w-100 mb-4 d-flex">
|
| 85 |
<a class="navbar-brand mx-auto mt-2 flex-fill text-center">
|
| 86 |
+
<img src="assets/images/LOGO.png" alt="Logo" id="sidebarLogo" style="max-width:140px; transition: all 0.3s ease;">
|
| 87 |
</a>
|
| 88 |
</div>
|
| 89 |
|
|
|
|
| 1074 |
|
| 1075 |
setTimeout(() => {
|
| 1076 |
try {
|
| 1077 |
+
const isDark = localStorage.getItem('theme') === 'dark';
|
| 1078 |
+
const axisColor = isDark ? '#ffffff' : '#212529';
|
| 1079 |
+
|
| 1080 |
const options = {
|
| 1081 |
chart: {
|
| 1082 |
type: 'area',
|
|
|
|
| 1129 |
style: {
|
| 1130 |
fontSize: '12px',
|
| 1131 |
fontFamily: 'inherit',
|
| 1132 |
+
colors: axisColor
|
| 1133 |
}
|
| 1134 |
},
|
| 1135 |
title: {
|
|
|
|
| 1137 |
style: {
|
| 1138 |
fontSize: '14px',
|
| 1139 |
fontFamily: 'inherit',
|
| 1140 |
+
color: axisColor
|
| 1141 |
}
|
| 1142 |
}
|
| 1143 |
},
|
|
|
|
| 1147 |
style: {
|
| 1148 |
fontSize: '14px',
|
| 1149 |
fontFamily: 'inherit',
|
| 1150 |
+
color: axisColor
|
| 1151 |
}
|
| 1152 |
},
|
| 1153 |
min: 0,
|
|
|
|
| 1157 |
style: {
|
| 1158 |
fontSize: '12px',
|
| 1159 |
fontFamily: 'inherit',
|
| 1160 |
+
colors: axisColor
|
| 1161 |
}
|
| 1162 |
}
|
| 1163 |
},
|
|
|
|
| 2093 |
});
|
| 2094 |
});
|
| 2095 |
})();
|
| 2096 |
+
|
| 2097 |
+
|
| 2098 |
+
|
| 2099 |
+
|
| 2100 |
+
|
| 2101 |
+
|
| 2102 |
+
|
| 2103 |
+
(function() {
|
| 2104 |
+
var sidebar = document.getElementById('leftSidebar');
|
| 2105 |
+
var logo = document.getElementById('sidebarLogo');
|
| 2106 |
+
if (!sidebar || !logo) return;
|
| 2107 |
+
|
| 2108 |
+
function updateLogo() {
|
| 2109 |
+
var isCollapsed = sidebar.classList.contains('collapsed')
|
| 2110 |
+
|| document.body.classList.contains('collapsed')
|
| 2111 |
+
|| sidebar.offsetWidth < 100;
|
| 2112 |
+
|
| 2113 |
+
logo.style.maxWidth = isCollapsed ? '36px' : '140px';
|
| 2114 |
+
logo.style.width = isCollapsed ? '36px' : '';
|
| 2115 |
+
}
|
| 2116 |
+
|
| 2117 |
+
var observer = new MutationObserver(updateLogo);
|
| 2118 |
+
observer.observe(sidebar, { attributes: true, attributeFilter: ['class', 'style'] });
|
| 2119 |
+
observer.observe(document.body, { attributes: true, attributeFilter: ['class'] });
|
| 2120 |
+
|
| 2121 |
+
updateLogo(); // aplicar estado inicial
|
| 2122 |
+
})();
|
| 2123 |
</script>
|
| 2124 |
+
|
| 2125 |
+
|
| 2126 |
</body>
|
| 2127 |
</html>
|