Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (60 loc) · 1.55 KB
/
Copy pathindex.html
File metadata and controls
75 lines (60 loc) · 1.55 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<body>
<!-- GENERIC VANILLA STYLES -->
<style>
body, button, input, div {
color: #444;
font-family: Arial;
font-size: 12px;
line-height: 14px;
margin: 5px;
padding: 10px;
}
#pubnub-logger {
border: 2px solid #eee;
-webkit-box-shadow: 0 0 30px #ff0;
-webkit-border-radius: 10px;
margin: 20px;
padding: 10px;
}
#pubnub-connected {
color: red;
font-weight: bold;
}
button {
width: 150px;
}
input {
width: 200px;
}
</style>
<!-- SUBSCRIBE CHANNEL -->
<div>
<!-- SUBSCRIBE BUTTON -->
<button id=subscribe-button>SUBSCRIBE TO: </button>
<!-- CHANNEL NAME -->
<input id=subscribe-channel value=my-titanium-channel />
<!-- CONNECTION STATUS -->
<span id=pubnub-connected>NOT CONNECTED</span>
</div>
<!-- PUBLISH MESSAGE -->
<div>
<!-- PUBLISH BUTTON -->
<button id=publish-button>PUBLISH</button>
<!-- MESSAGE TEXT TO SEND -->
<input id=publish-text value=text-to-send />
</div>
<!-- LOG OUTPUT AREA -->
<pre id=pubnub-logger>...</pre>
<!-- PUBNUB SETUP -->
<div
id=pubnub
pub-key="demo"
sub-key="demo"
ssl="off"
origin="pubsub.pubnub.com"
></div>
<script src="pubnub.js"></script>
<script src="app.js"></script>
</body>
</html>