forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.htm
More file actions
30 lines (26 loc) · 782 Bytes
/
index.htm
File metadata and controls
30 lines (26 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html>
<head>
<title>PubNub - Mouse Speak</title>
<style>body, li, div, ol, p { font-family: "Helvetica Neue" }</style>
</head>
<body>
<!--
<br>
Start Typing to Talk with other Mice<br/>
<ol>
<li> Channel: <pre>mouse-speak</pre>
<li> Message: <pre>{ uuid : uuid, pos: [x,y], txt: "hello" }</pre>
<li> Events: <pre>mousemove, touchmove, touchstart, keyup</pre>
<li> Wait State to prevent network bashing.
<li> Send what has changed (mouse, text).
</ol>
-->
<!-- It's at the bottom! -->
<!-- pub-key and sub-key works with localhost -->
<!-- Paste this at the bottom of your HTML Page -->
<div id=pubnub pub-key=demo sub-key=demo></div>
<script src=../../web/pubnub.min.js></script>
<script src=mouse-speak.js></script>
</body>
</html>