summary refs log tree commit diff
path: root/jsfiddles/room_memberships/demo.html
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-20 14:43:02 +0100
committerErik Johnston <erik@matrix.org>2014-08-20 14:43:02 +0100
commitbeb0a179bdcae24068a2450ff1f67ed1472a9308 (patch)
treee160e37c1bd4763e6b700b75755b24968b634f70 /jsfiddles/room_memberships/demo.html
parentBetter handle the edge cases of trying to remote join rooms (diff)
parentAdded more jsfiddles. (diff)
downloadsynapse-beb0a179bdcae24068a2450ff1f67ed1472a9308.tar.xz
Merge branch 'master' of github.com:matrix-org/synapse into develop
Diffstat (limited to 'jsfiddles/room_memberships/demo.html')
-rw-r--r--jsfiddles/room_memberships/demo.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/jsfiddles/room_memberships/demo.html b/jsfiddles/room_memberships/demo.html
new file mode 100644
index 0000000000..96232e827a
--- /dev/null
+++ b/jsfiddles/room_memberships/demo.html
@@ -0,0 +1,37 @@
+<div>
+    <p>This room membership 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="createRoomForm">
+        <input type="button" class="createRoom" value="Create Room"></input>
+    </form>
+    <form class="changeMembershipForm">
+        <input type="text" id="roomId" placeholder="Room ID"></input>
+        <input type="text" id="targetUser" placeholder="Target User ID"></input>
+        <select id="membership">
+            <option value="invite">Invite</option>
+            <option value="join">Join</option>
+            <option value="leave">Leave</option>
+        </select>
+        <input type="button" class="changeMembership" value="Change Membership"></input>
+    </form>
+    <form class="joinAliasForm">
+        <input type="text" id="roomAlias" placeholder="Room Alias (#name:domain)"></input>
+        <input type="button" class="joinAlias" value="Join via Alias"></input>
+    </form>
+    <table id="rooms">
+        <tbody>
+            <tr>
+                <th>Room ID</th>
+                <th>My state</th>
+                <th>Room Alias</th>
+            </tr>
+        </tbody>
+    </table>
+</div>
+