forked from raweee/node-red-contrib-whatsapp-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhatsappLink.html
51 lines (49 loc) · 1.8 KB
/
whatsappLink.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
50
51
<script type="text/javascript">
RED.nodes.registerType('whatsappLink',{
category: 'config',
defaults: {
cName : {value:"whatsapp-web",required:true},
name : {value : "Web"},
clientType: {},
onlineStatus : {value : true},
loopTime : {value : 5, validate:RED.validators.number()}
},
label: function() {
return this.clientType;
},
oneditprepare: function(){
$("#node-config-input-clientType").typedInput({
types: [
{
value: "Select Client Type",
options: [
{ value: "waSocketClient", label: "Whatsapp Lite"},
{ value: "waWebClient", label: "Whatsapp Web"},
]
}
]
});
}
});
</script>
<script type="text/html" data-template-name="whatsappLink">
<div>
<label ><i class="fa fa-cog"></i> Whatsapp Client :
<input type="text" id="node-config-input-clientType" style="width:40%;">
<input type="checkbox" id="node-config-input-onlineStatus">
</label>
</div>
<br>
<div class="form-tips">
<p> All done here just Select the type of Whatsapp Client and proceed.</p>
<p> <b>Checkbox On </b> : Shows Online.</p>
<p> <b>Checkbox Off </b> : Shows last seen (As per main device).</p>
<p> To recive push notification on main device, Turn Checkbox Off.</p>
</div>
<br>
<div>
<label ><i class="fa fa-cog"></i> Ping Whatsapp to avoid sleep every :
<input type="text" placeholder="05" id="node-config-input-loopTime" style="width: 15%;"> hr.
</label>
</div>
</script>