forked from PubNubDevelopers/codoodler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
48 lines (47 loc) · 2.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PubNub Collaboration Demo</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style_demo.css">
<link rel="icon" href="images/pencil.png">
</head>
<body>
<div id="name">
<input type="text" placeholder="Enter Your Name!" id="nameInput" maxlength="20" autocomplete="off" autofocus="true" />
</div>
<div id="clearCanvas">
<button id="clearSelfCanvasButton" class="clearCanvasButton">🗑</button>
<label for="clearSelfCanvasButton" class="clearSelfLabel">Clear</label>
</div>
<div id="sprite-container">
<div class="bubble">
<span id="occupancy">0</span>
<span id="unit">doodler</span>
</div>
<section id="main">
<canvas id="drawCanvas" width="300" height="300">Canvas is not supported on this browser!</canvas>
<section id="colorSwatch" class="colowSwatch">
<input type="radio" name="color" id="color01" data-color="gold" checked><label for="color01"></label>
<input type="radio" name="color" id="color02" data-color="darkorange"> <label for="color02"></label>
<input type="radio" name="color" id="color03" data-color="navy"> <label for="color03"></label>
<input type="radio" name="color" id="color04" data-color="yellowgreen"> <label for="color04"></label>
<input type="radio" name="color" id="color05" data-color="firebrick"> <label for="color05"></label>
<input type="radio" name="color" id="color06" data-color="powderblue"> <label for="color06"></label>
</section>
</section>
</div>
<div id="clearAllCanvas">
<button id="clearAllCanvasButton" class="clearAllCanvasButton">🗑</button>
<label for="clearAllCanvasButton" class="clearAllLabel">Clear All</label>
</div>
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.7.2.2.js"></script>
<script src="js/constants_demo.js"></script>
<script src="js/api.js"></script>
<script lang="javascript">
loadCollaboration();
</script>
<script type="text/javascript" src="https://darryncampbell-pubnub.github.io/pubnub-demo-utils/js/interactive-demo-interface/v2/demo-interface.js" defer></script>
</body>
</html>