Spaces:
Sleeping
Sleeping
Update plot_week.html
Browse files- plot_week.html +9 -1
plot_week.html
CHANGED
|
@@ -96,7 +96,8 @@ body {
|
|
| 96 |
<form class="form-inline">
|
| 97 |
<button id="st_onl" class="btn btn-outline-success" type="button">Онлайн</button>
|
| 98 |
<button id="st_set" class="btn btn-outline-success" type="button">Настройки</button>
|
| 99 |
-
<button id="st_plot" class="btn btn-success
|
|
|
|
| 100 |
</form>
|
| 101 |
</div>
|
| 102 |
</nav>
|
|
@@ -225,6 +226,13 @@ body {
|
|
| 225 |
window.location.href = targetUrl;
|
| 226 |
});
|
| 227 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
</body>
|
| 229 |
|
| 230 |
</html>
|
|
|
|
| 96 |
<form class="form-inline">
|
| 97 |
<button id="st_onl" class="btn btn-outline-success" type="button">Онлайн</button>
|
| 98 |
<button id="st_set" class="btn btn-outline-success" type="button">Настройки</button>
|
| 99 |
+
<button id="st_plot" class="btn btn-success" type="button">Графики</button>
|
| 100 |
+
<button id="st_table" class="btn btn-outline-success" type="button">Таблица</button>
|
| 101 |
</form>
|
| 102 |
</div>
|
| 103 |
</nav>
|
|
|
|
| 226 |
window.location.href = targetUrl;
|
| 227 |
});
|
| 228 |
</script>
|
| 229 |
+
<script>
|
| 230 |
+
document.getElementById("st_table").addEventListener("click", function() {
|
| 231 |
+
var baseUrl = window.location.origin;
|
| 232 |
+
var targetUrl = baseUrl + "/table";
|
| 233 |
+
window.location.href = targetUrl;
|
| 234 |
+
});
|
| 235 |
+
</script>
|
| 236 |
</body>
|
| 237 |
|
| 238 |
</html>
|