Tweak HTML for HTTP interface.
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Apr 2025 20:04:27 +0000 (22:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 3 Apr 2025 20:04:27 +0000 (22:04 +0200)
web/index.html

index 0eea15aab35588786de6d0a3d6f84afa09c93c3b..2235d297543a5a465cd6b4ec84b8c398e9f5799e 100644 (file)
@@ -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>