Spaces:
Sleeping
Sleeping
Update plot_week.html
Browse files- plot_week.html +12 -1
plot_week.html
CHANGED
|
@@ -78,7 +78,8 @@ body {
|
|
| 78 |
</a>
|
| 79 |
<form class="form-inline">
|
| 80 |
<button id="st_onl" class="btn btn-success mr-2" type="button">Онлайн</button>
|
| 81 |
-
<button id="st_set" class="btn btn-
|
|
|
|
| 82 |
</form>
|
| 83 |
</div>
|
| 84 |
</nav>
|
|
@@ -210,5 +211,15 @@ body {
|
|
| 210 |
window.location.href = targetUrl;
|
| 211 |
});
|
| 212 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
</body>
|
| 214 |
</html>
|
|
|
|
| 78 |
</a>
|
| 79 |
<form class="form-inline">
|
| 80 |
<button id="st_onl" class="btn btn-success mr-2" type="button">Онлайн</button>
|
| 81 |
+
<button id="st_set" class="btn btn-success mr-2" type="button">Настройки</button>
|
| 82 |
+
<button id="st_plot" class="btn btn-outline-success" type="button">Графики</button>
|
| 83 |
</form>
|
| 84 |
</div>
|
| 85 |
</nav>
|
|
|
|
| 211 |
window.location.href = targetUrl;
|
| 212 |
});
|
| 213 |
</script>
|
| 214 |
+
<script>
|
| 215 |
+
document.getElementById("st_plot").addEventListener("click", function() {
|
| 216 |
+
// Получаем основной URL без пути и параметров
|
| 217 |
+
var baseUrl = window.location.origin;
|
| 218 |
+
// Добавляем необходимый путь к основному URL
|
| 219 |
+
var targetUrl = baseUrl + "/plot_week";
|
| 220 |
+
// Переходим по сформированному URL
|
| 221 |
+
window.location.href = targetUrl;
|
| 222 |
+
});
|
| 223 |
+
</script>
|
| 224 |
</body>
|
| 225 |
</html>
|