Spaces:
Running
Running
Update settings.html
Browse files- settings.html +11 -7
settings.html
CHANGED
|
@@ -34,6 +34,7 @@ input[type="number"] {
|
|
| 34 |
<form class="form-inline">
|
| 35 |
<button id="st_onl" class="btn btn-outline-success" type="button" >Онлайн</button>
|
| 36 |
<button id="st_set" class="btn btn-success" type="button" >Настройки</button>
|
|
|
|
| 37 |
|
| 38 |
</form>
|
| 39 |
</nav>
|
|
@@ -238,17 +239,20 @@ input[type="number"] {
|
|
| 238 |
window.location.href = targetUrl;
|
| 239 |
});
|
| 240 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
<script>
|
| 253 |
// Функция, которая будет выполняться при загрузке страницы
|
| 254 |
window.onload = function() {
|
|
|
|
| 34 |
<form class="form-inline">
|
| 35 |
<button id="st_onl" class="btn btn-outline-success" type="button" >Онлайн</button>
|
| 36 |
<button id="st_set" class="btn btn-success" type="button" >Настройки</button>
|
| 37 |
+
<button id="st_plot" class="btn btn-outline-success" type="button">Графики</button>
|
| 38 |
|
| 39 |
</form>
|
| 40 |
</nav>
|
|
|
|
| 239 |
window.location.href = targetUrl;
|
| 240 |
});
|
| 241 |
</script>
|
| 242 |
+
<script>
|
| 243 |
+
document.getElementById("st_plot").addEventListener("click", function() {
|
| 244 |
+
// Получаем основной URL без пути и параметров
|
| 245 |
+
var baseUrl = window.location.origin;
|
| 246 |
+
// Добавляем необходимый путь к основному URL
|
| 247 |
+
var targetUrl = baseUrl + "/plot_week";
|
| 248 |
+
// Переходим по сформированному URL
|
| 249 |
+
window.location.href = targetUrl;
|
| 250 |
+
});
|
| 251 |
+
</script>
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
<script>
|
| 257 |
// Функция, которая будет выполняться при загрузке страницы
|
| 258 |
window.onload = function() {
|