summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/index.html b/index.html
index 6376df2..513d5ec 100644
--- a/index.html
+++ b/index.html
@@ -35,6 +35,7 @@
<script src="ka.js"></script>
<script>
const waiting = app.children[0];
+ let isLoading = 0;
const routes = {
"/": () => div(
h2("Lorem Ipsum"),
@@ -47,8 +48,23 @@
p("Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."),
p("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),
),
- //"/network": () => div(),
- //"/config": () => div(),
+ "/network": () => div(
+ isLoading ? waiting
+ : table(
+ tr(
+ td("IP"),
+ td(input("text").$value("127.0.0.1")),
+ )
+ ).$cls("network"),
+ ),
+ "/config": () => {
+ isLoading = 1;
+ setTimeout(() => {
+ isLoading = 0;
+ app.reload();
+ }, 10000);
+ return div();
+ },
"/waiting": () => waiting,
"": () => div(
h1("Несъществуваща страница"),