summaryrefslogtreecommitdiff
path: root/test/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/index.html')
-rw-r--r--test/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html
new file mode 100644
index 0000000..41d0a3a
--- /dev/null
+++ b/test/index.html
@@ -0,0 +1,34 @@
+<html>
+ <head>
+ <title>rhrdtime - Testclient</title>
+ <style type="text/css">
+ body {
+ background-color: #555;
+ }
+
+ #timedata {
+ background-color: white;
+ border: 1px solid;
+ padding: 1em;
+ font-family: monospace;
+ }
+ </style>
+ <script src="jquery.min.js"></script>
+ <script type="text/javascript">
+ function init() {
+ var sock = new WebSocket("ws://localhost:3000/time");
+
+ sock.onmessage = function (event) {
+ $('#timedata').text(event.data);
+ }
+ }
+ </script>
+ </head>
+ <body onload="init()">
+
+ <h1>Radio Helsinki Rivendell Time:</h1>
+
+ <div id="timedata"></div>
+
+ </body>
+</html>