connect.html 1.1 KB

12345678910111213141516171819202122232425262728
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>goRoku Controller</title>
  8. <!--<link rel="stylesheet" href="static/css/foundation.css">-->
  9. <link rel="stylesheet" href="css/foundation.css">
  10. </head>
  11. <body>
  12. <div class="grid-x">
  13. <h1 class="large-12 medium-12 small-12 cell text-center">goRoku Connection</h1>
  14. <div class="large-12 medium-12 small-12 cell text-center">
  15. <button type="button" class="button" onclick="sendTo('/')">Back to Remote</button> <button type="button" class="button" onclick="sendTo('/conn_refresh')">Reload</button><br>
  16. <p>{{.connected}}</p><br>
  17. {{range .resp}}
  18. <button type="button" class="button" onclick="sendTo('/con/{{.}}')">{{.}}</button><br>
  19. {{end}}
  20. </div>
  21. </div>
  22. <script>
  23. function sendTo(cmd) {
  24. location = cmd;
  25. }
  26. </script>
  27. </body>
  28. </html>