diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-03 22:04:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-03 22:04:27 +0200 |
| commit | cc48190e506e4925d8416fc7e6a66a04359916b6 (patch) | |
| tree | fd02c9fb17b21bd79f63c49edabb030a39dc246e /web | |
| parent | 3107b37b0fe3d8d27bcba3257a1ebac327344a53 (diff) | |
Tweak HTML for HTTP interface.
Diffstat (limited to 'web')
| -rw-r--r-- | web/index.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/web/index.html b/web/index.html index 0eea15aab..2235d2975 100644 --- a/web/index.html +++ b/web/index.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <html> +<head> <script> setInterval(function() { status = fetch("/api/v1/status").then(response => { @@ -75,16 +76,15 @@ td { </style> - <head> <title>%1</title> - </head> - <body> - <button name="play" value="play" onclick="play()">Play</button> - <button name="Stop" value="Stop" onclick="stop()">Stop</button> - <table> - <tr><td>DCP</td><td><p id="dcp_name"></td></tr> - <tr><td>State</td><td><p id="playing"></td></tr> - <tr><td>Position</td><td><p id="position"></td></tr> - </table> - </body> +</head> +<body> + <button name="play" value="play" onclick="play()">Play</button> + <button name="stop" value="stop" onclick="stop()">Stop</button> + <table> + <tr><td>DCP</td><td><p id="dcp_name"></td></tr> + <tr><td>State</td><td><p id="playing"></td></tr> + <tr><td>Position</td><td><p id="position"></td></tr> + </table> +</body> </html> |
