DmitrMakeev
commited on
Commit
•
f2a5c5d
1
Parent(s):
15b747c
Update settings.html
Browse files- settings.html +15 -10
settings.html
CHANGED
@@ -34,7 +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>
|
40 |
|
@@ -221,23 +221,28 @@ input[type="number"] {
|
|
221 |
|
222 |
<script>
|
223 |
document.getElementById("st_onl").addEventListener("click", function() {
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
225 |
});
|
226 |
</script>
|
227 |
-
|
228 |
-
|
229 |
<script>
|
230 |
document.getElementById("st_set").addEventListener("click", function() {
|
231 |
-
|
|
|
|
|
|
|
|
|
|
|
232 |
});
|
233 |
</script>
|
234 |
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
window.location.href = "https://vk-ai-system-flask-inference-api3.hf.space/settings";
|
239 |
-
});
|
240 |
-
</script>
|
241 |
|
242 |
|
243 |
|
|
|
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>
|
40 |
|
|
|
221 |
|
222 |
<script>
|
223 |
document.getElementById("st_onl").addEventListener("click", function() {
|
224 |
+
// Получаем основной URL без пути и параметров
|
225 |
+
var baseUrl = window.location.origin;
|
226 |
+
// Добавляем необходимый путь к основному URL
|
227 |
+
var targetUrl = baseUrl + "/online";
|
228 |
+
// Переходим по сформированному URL
|
229 |
+
window.location.href = targetUrl;
|
230 |
});
|
231 |
</script>
|
|
|
|
|
232 |
<script>
|
233 |
document.getElementById("st_set").addEventListener("click", function() {
|
234 |
+
// Получаем основной URL без пути и параметров
|
235 |
+
var baseUrl = window.location.origin;
|
236 |
+
// Добавляем необходимый путь к основному URL
|
237 |
+
var targetUrl = baseUrl + "/settings";
|
238 |
+
// Переходим по сформированному URL
|
239 |
+
window.location.href = targetUrl;
|
240 |
});
|
241 |
</script>
|
242 |
|
243 |
|
244 |
+
|
245 |
+
|
|
|
|
|
|
|
246 |
|
247 |
|
248 |
|