-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
49 lines (38 loc) · 1.11 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html>
<head>
<title>Whiteboard</title>
</head>
<body>
<h1>Whiteboard</h1>
<div>
<strong>Your Peer ID:</strong> <input type="text" id="mypeerid"></input>
</div>
<div>
<strong>Your Invite Link:</strong> <input type="text" style="width:500px" id="connectLink"></input>
</div>
<div>
<strong>Your protocol:</strong> <span id="protocol"></span>
</div>
<br>
<div>
<label for="peerIdInput"><strong>Enter a friend's Peer ID:</strong> </label>
<input id="peerIdInput" type="text"></input>
<button id="connectBtn">Connect</button>
</div>
<br>
<div>
<strong>Connected with:</strong> <span id="connectionList">Nobody...yet</span>
</div>
<h3>Hold your mouse down and move to draw</h3>
<form id="colorChooser"></form>
<canvas id="drawingArea" width="800" height="500" style="border:1px solid">
</canvas>
<div style="border:1px solid;;float:right">
<p><strong>Status:</strong></p>
<div id="status"></div>
</div>
<script type="text/javascript" src="https://rawgit.com/peers/peerjs/master/dist/peer.js"></script>
<script type="text/javascript" src="whiteboard.js"></script>
</body>
</html>