51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<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> |