diff options
Diffstat (limited to 'rootfs/srv/http/index.html')
-rw-r--r-- | rootfs/srv/http/index.html | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/rootfs/srv/http/index.html b/rootfs/srv/http/index.html index f60b829..0812323 100644 --- a/rootfs/srv/http/index.html +++ b/rootfs/srv/http/index.html @@ -1,10 +1,17 @@ <!DOCTYPE html> <html> -<head> - <meta charset='utf-8'> - <title>Hello world!</title> -</head> -<body> - <p>Turn leds <a href="/on">on</a> or <a href="/off">off</a></p> -</body> + <head> + <meta charset='utf-8'> + <title>Hello world!</title> + <style>form { display: inline; }</style> + </head> + <body> + <!-- invisible iframe hack to request /on and /off in background w/o JS --> + <iframe name="dummy" style="display: none;"></iframe> + Turn leds + <form action="/on" target="dummy"><button type="submit">on</button></form> + or + <form action="/off" target="dummy"><button type="submit">off</button></form> + </body> </html> + |