Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +11 -1
online.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
<form class="form-inline">
|
| 24 |
<button id="st_onl" class="btn btn-success" type="button" >Онлайн</button>
|
| 25 |
<button id="st_set" class="btn btn-outline-success" type="button" >Настройки</button>
|
| 26 |
-
|
| 27 |
</form>
|
| 28 |
</nav>
|
| 29 |
|
|
@@ -370,6 +370,16 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 370 |
window.location.href = targetUrl;
|
| 371 |
});
|
| 372 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
|
| 374 |
|
| 375 |
|
|
|
|
| 23 |
<form class="form-inline">
|
| 24 |
<button id="st_onl" class="btn btn-success" type="button" >Онлайн</button>
|
| 25 |
<button id="st_set" class="btn btn-outline-success" type="button" >Настройки</button>
|
| 26 |
+
<button id="st_plot" class="btn btn-outline-success" type="button">Графики</button>
|
| 27 |
</form>
|
| 28 |
</nav>
|
| 29 |
|
|
|
|
| 370 |
window.location.href = targetUrl;
|
| 371 |
});
|
| 372 |
</script>
|
| 373 |
+
<script>
|
| 374 |
+
document.getElementById("st_plot").addEventListener("click", function() {
|
| 375 |
+
// Получаем основной URL без пути и параметров
|
| 376 |
+
var baseUrl = window.location.origin;
|
| 377 |
+
// Добавляем необходимый путь к основному URL
|
| 378 |
+
var targetUrl = baseUrl + "/plot_week";
|
| 379 |
+
// Переходим по сформированному URL
|
| 380 |
+
window.location.href = targetUrl;
|
| 381 |
+
});
|
| 382 |
+
</script>
|
| 383 |
|
| 384 |
|
| 385 |
|