summary refs log tree commit diff
path: root/jsfiddles/event_stream/demo.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-20 13:47:20 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-20 13:47:20 +0100
commitf60e5a1aec5d0b5b6eeb6971af050db5dd061c9d (patch)
tree32653681fcbd3cf06e320fba6d6f2d97bdd4b1af /jsfiddles/event_stream/demo.html
parentFile organisation sanity: put directives and filters into dedicated files (diff)
downloadsynapse-f60e5a1aec5d0b5b6eeb6971af050db5dd061c9d.tar.xz
Added more jsfiddles.
Diffstat (limited to 'jsfiddles/event_stream/demo.html')
-rw-r--r--jsfiddles/event_stream/demo.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/jsfiddles/event_stream/demo.html b/jsfiddles/event_stream/demo.html
new file mode 100644
index 0000000000..ee4fc3ea68
--- /dev/null
+++ b/jsfiddles/event_stream/demo.html
@@ -0,0 +1,23 @@
+<div>
+    <p>This event stream demo requires a home server to be running on http://localhost:8080</p>
+</div>
+<form class="loginForm">
+    <input type="text" id="userLogin" placeholder="Username"></input>
+    <input type="password" id="passwordLogin" placeholder="Password"></input>
+    <input type="button" class="login" value="Login"></input>
+</form>
+<div class="loggedin">
+    <form class="sendMessageForm">
+        <input type="button" class="sendMessage" value="Send random message"></input>
+    </form>
+    <p id="streamErrorText"></p>
+    <table id="rooms">
+        <tbody>
+            <tr>
+                <th>Room ID</th>
+                <th>Latest message</th>
+            </tr>
+        </tbody>
+    </table>
+</div>
+