-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml.txt
153 lines (149 loc) · 4.23 KB
/
html.txt
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<title>Baby Monitoring</title>
<script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/82936647-1334-4E4F-8BFA-D0A02C810D40/main.js" charset="UTF-8"></script></head>
<body>
<h1 align="center">Baby's Status Displayed Below</h1>
<h2 id="cry" align="center">Crying Status:Baby Sleeping</h2>
<h2 id="motion" align="center">Baby's Motion Status:Baby Sleeping</h2>
<h2 id="neighbour" align="center">Neighbourdetected:NONE</h2>
<h2 id="diaper" align="center">Need to change diaper: NO</h2>
<h2 id="backup" align="center"></h2>
<p id="info"></p>
</body>
<scriptsrc="http://cdn.pubnub.com/pubnub-3.7.1.min.js"></script>
<script type="text/javascript">
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
</script>
<script>
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
PUBNUB_demo.subscribe({
channel: '4march1',
noheresync: true, // don't do a here_now call on subscribe()
message: function(m){
if(m==1)
{
document.getElementById("cry").innerHTML = "Crying Status:Baby Crying" ;
}
},
presence: function(m) {
msg = console.log(m);
},
state: {
name: 'hema',
timestamp: new Date()
}
//var res = $log.concat("Accident at the mentioned location");
});
</script>
<script>
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
PUBNUB_demo.subscribe({
channel: '4march2',
noheresync: true, // don't do a here_now call on subscribe()
message: function(n){
if(n==1)
{
document.getElementById("motion").innerHTML = "Baby's Motion Status:Baby Moving" ;
}
},
presence: function(n) {
msg = console.log(n);
},
state: {
name: 'hema',
timestamp: new Date()
}
//var res = $log.concat("Accident at the mentioned location");
});
</script>
<script>
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
PUBNUB_demo.subscribe({
channel: '4march3',
noheresync: true, // don't do a here_now call on subscribe()
message: function(o){
if(o==1)
{
document.getElementById("neighbour").innerHTML = "Neighbourdetected:YES" ;
}
},
presence: function(o) {
msg = console.log(o);
},
state: {
name: 'hema',
timestamp: new Date()
}
//var res = $log.concat("Accident at the mentioned location");
});
</script>
<script>
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
PUBNUB_demo.subscribe({
channel: '4march4',
noheresync: true, // don't do a here_now call on subscribe()
message: function(p){
if(p==1)
{
document.getElementById("diaper").innerHTML = "Need to change diaper: YES" ;
}
},
presence: function(p) {
msg = console.log(p);
},
state: {
name: 'hema',
timestamp: new Date()
}
//var res = $log.concat("Accident at the mentioned location");
});
</script>
<script>
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
PUBNUB_demo.subscribe({
channel: '4march5',
noheresync: true, // don't do a here_now call on subscribe()
message: function(q){
if(q==1)
{
document.getElementById("backup").innerHTML = " " ;
}
},
presence: function(q) {
msg = console.log(q);
},
state: {
name: 'hema',
timestamp: new Date()
}
//var res = $log.concat("Accident at the mentioned location");
});
</script>
<script type="text/javascript">
varPUBNUB_demo = PUBNUB.init({
publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3',subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec'
});
var channel = '4march1';
var p = PUBNUB.init({subscribe_key: 'sub-c-7c0d8f3e-8ea4-11e7-867b-0a31f78815ec', publish_key: 'pub-c-3d130cae-47f2-40d9-81d3-f409242790f3'
});
p.publish({
channel : channel,
message : 2 // trigger
});
</script>
</html>