Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +30 -17
online.html
CHANGED
|
@@ -205,44 +205,32 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
| 205 |
</script>
|
| 206 |
|
| 207 |
|
| 208 |
-
<nav class="navbar navbar-light bg-light">
|
| 209 |
<a class="navbar-brand" href="/online">
|
| 210 |
<img src="https://huggingface.co/spaces/igs-img/stor/resolve/main/list.png" width="30" height="30" class="d-inline-block align-top" alt="">
|
| 211 |
MackorLab
|
| 212 |
</a>
|
| 213 |
<form class="form-inline">
|
| 214 |
-
<button
|
| 215 |
-
|
| 216 |
<button id="st_plot" class="btn btn-outline-success" type="button">Графики</button>
|
| 217 |
|
| 218 |
-
|
| 219 |
-
<!-- Весь блок с кнопкой и меню обёрнут в .dropdown-wrapper -->
|
| 220 |
<div class="dropdown-wrapper d-inline-block position-relative">
|
| 221 |
<button class="btn btn-outline-success dropdown-toggle" type="button" id="dropdownToggle">
|
| 222 |
Настройки
|
| 223 |
</button>
|
| 224 |
<ul class="dropdown-menu" aria-labelledby="dropdownToggle">
|
| 225 |
-
<li><a
|
| 226 |
<li><a class="dropdown-item">Камера</a></li>
|
| 227 |
</ul>
|
| 228 |
</div>
|
| 229 |
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
<button id="st_table" class="btn btn-outline-success" type="button">Таблица</button>
|
| 241 |
</form>
|
| 242 |
</nav>
|
| 243 |
|
| 244 |
|
| 245 |
|
|
|
|
| 246 |
|
| 247 |
<div class="container mt-3">
|
| 248 |
|
|
@@ -1190,6 +1178,31 @@ function updateAlW(value) {
|
|
| 1190 |
setInterval(updateImage, 10000);
|
| 1191 |
});
|
| 1192 |
</script>
|
| 1193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1194 |
</body>
|
| 1195 |
</html>
|
|
|
|
| 205 |
</script>
|
| 206 |
|
| 207 |
|
| 208 |
+
<nav class="navbar navbar-light bg-light px-3">
|
| 209 |
<a class="navbar-brand" href="/online">
|
| 210 |
<img src="https://huggingface.co/spaces/igs-img/stor/resolve/main/list.png" width="30" height="30" class="d-inline-block align-top" alt="">
|
| 211 |
MackorLab
|
| 212 |
</a>
|
| 213 |
<form class="form-inline">
|
| 214 |
+
<button id="st_onl" class="btn btn-success" type="button">Онлайн</button>
|
|
|
|
| 215 |
<button id="st_plot" class="btn btn-outline-success" type="button">Графики</button>
|
| 216 |
|
|
|
|
|
|
|
| 217 |
<div class="dropdown-wrapper d-inline-block position-relative">
|
| 218 |
<button class="btn btn-outline-success dropdown-toggle" type="button" id="dropdownToggle">
|
| 219 |
Настройки
|
| 220 |
</button>
|
| 221 |
<ul class="dropdown-menu" aria-labelledby="dropdownToggle">
|
| 222 |
+
<li><a id="st_set" class="dropdown-item">Система</a></li>
|
| 223 |
<li><a class="dropdown-item">Камера</a></li>
|
| 224 |
</ul>
|
| 225 |
</div>
|
| 226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
<button id="st_table" class="btn btn-outline-success" type="button">Таблица</button>
|
| 228 |
</form>
|
| 229 |
</nav>
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
+
|
| 234 |
|
| 235 |
<div class="container mt-3">
|
| 236 |
|
|
|
|
| 1178 |
setInterval(updateImage, 10000);
|
| 1179 |
});
|
| 1180 |
</script>
|
| 1181 |
+
|
| 1182 |
+
|
| 1183 |
+
|
| 1184 |
+
// Выпадающее меню
|
| 1185 |
+
<script>
|
| 1186 |
+
document.addEventListener('DOMContentLoaded', function () {
|
| 1187 |
+
const toggleBtn = document.getElementById('dropdownToggle');
|
| 1188 |
+
const dropdown = document.querySelector('.dropdown-menu');
|
| 1189 |
+
|
| 1190 |
+
toggleBtn.addEventListener('click', function (e) {
|
| 1191 |
+
if (window.innerWidth <= 768) {
|
| 1192 |
+
e.preventDefault();
|
| 1193 |
+
dropdown.classList.toggle('show');
|
| 1194 |
+
}
|
| 1195 |
+
});
|
| 1196 |
+
|
| 1197 |
+
document.addEventListener('click', function (e) {
|
| 1198 |
+
if (window.innerWidth <= 768) {
|
| 1199 |
+
if (!e.target.closest('.dropdown-wrapper')) {
|
| 1200 |
+
dropdown.classList.remove('show');
|
| 1201 |
+
}
|
| 1202 |
+
}
|
| 1203 |
+
});
|
| 1204 |
+
});
|
| 1205 |
+
</script>
|
| 1206 |
+
|
| 1207 |
</body>
|
| 1208 |
</html>
|