-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
39 lines (33 loc) · 28.8 KB
/
main.js
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
function _0x2f81(_0x18d0bd,_0x275b00){var _0x280993=_0x2809();return _0x2f81=function(_0x2f817f,_0x164e44){_0x2f817f=_0x2f817f-0xbd;var _0x2ea408=_0x280993[_0x2f817f];return _0x2ea408;},_0x2f81(_0x18d0bd,_0x275b00);}var _0x1b3cda=_0x2f81;(function(_0x2875d2,_0x309531){var _0x289c4d=_0x2f81,_0x508185=_0x2875d2();while(!![]){try{var _0x3373f1=parseInt(_0x289c4d(0xf9))/0x1*(parseInt(_0x289c4d(0x10f))/0x2)+parseInt(_0x289c4d(0xc1))/0x3+parseInt(_0x289c4d(0x103))/0x4*(parseInt(_0x289c4d(0xce))/0x5)+parseInt(_0x289c4d(0xcd))/0x6*(-parseInt(_0x289c4d(0xd3))/0x7)+-parseInt(_0x289c4d(0xc3))/0x8+parseInt(_0x289c4d(0x10c))/0x9*(-parseInt(_0x289c4d(0x114))/0xa)+parseInt(_0x289c4d(0xd7))/0xb*(parseInt(_0x289c4d(0xd8))/0xc);if(_0x3373f1===_0x309531)break;else _0x508185['push'](_0x508185['shift']());}catch(_0x22c381){_0x508185['push'](_0x508185['shift']());}}}(_0x2809,0x9bdf8));function CreateWhatsappChatWidget(_0x3f37e3={'brandSetting':{'autoShow':!![],'backgroundColor':_0x1b3cda(0xfa),'borderRadius':'25','brandImg':'https://iframeweb.com/wp-content/uploads/2023/10/iframeweb-logo.jpg','brandImgData':null,'brandName':'iFrameWeb\x20Solutions','brandSubTitle':_0x1b3cda(0xc5),'ctaText':_0x1b3cda(0x115),'welcomeText':'Hi,\x20there!\x20\x0aHow\x20can\x20I\x20help\x20you?','messageText':'','phoneNumber':_0x1b3cda(0xdf)},'chatButtonSetting':{'backgroundColor':_0x1b3cda(0xec),'borderRadius':'25','ctaText':'','marginLeft':'0','marginRight':'20','marginBottom':'20','position':_0x1b3cda(0xf3)},'enabled':![]}){var _0x51fce2=_0x1b3cda;if(_0x3f37e3['enabled']==![])return;!_0x3f37e3['chatButtonSetting'][_0x51fce2(0xc2)]&&(_0x3f37e3['chatButtonSetting'][_0x51fce2(0xc2)]=_0x51fce2(0xf3),_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0xef)]='20',_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0x112)]='0',_0x3f37e3['chatButtonSetting'][_0x51fce2(0xea)]='20');var _0x3d34ad=document[_0x51fce2(0xbe)](_0x51fce2(0xdb));if(window[_0x51fce2(0x116)])_0x42060a();else{var _0x59aefe=document[_0x51fce2(0xbe)](_0x51fce2(0x10b));_0x59aefe['src']='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js',_0x59aefe['type']=_0x51fce2(0x110),_0x59aefe['onload']=function(){_0x42060a();},document[_0x51fce2(0xbd)](_0x51fce2(0xdc))[0x0]['appendChild'](_0x59aefe);}function _0x42060a(){var _0x5cf303=_0x51fce2;_0x3f37e3['brandSetting']['messageText']&&(_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)]=_0x3f37e3[_0x5cf303(0xe4)]['messageText'][_0x5cf303(0xda)](_0x5cf303(0xed),encodeURIComponent(window[_0x5cf303(0xf7)][_0x5cf303(0x10a)])),_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)]=_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)][_0x5cf303(0xda)]('__page_link__',encodeURIComponent(window[_0x5cf303(0xf7)][_0x5cf303(0x10a)])),_0x3f37e3['brandSetting'][_0x5cf303(0xd0)]=_0x3f37e3['brandSetting'][_0x5cf303(0xd0)][_0x5cf303(0xda)](_0x5cf303(0xd2),window['document']['title']),_0x3f37e3['brandSetting']['messageText']=_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)][_0x5cf303(0xda)](_0x5cf303(0xca),window[_0x5cf303(0xeb)]['title']),_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)]=_0x3f37e3[_0x5cf303(0xe4)]['messageText'][_0x5cf303(0xda)]('\x0a',_0x5cf303(0x101))),jQuery(_0x5cf303(0xe5))[_0x5cf303(0xcc)](_0x5cf303(0x102)+_0x3f37e3[_0x5cf303(0x109)][_0x5cf303(0xcf)]+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>'),jQuery(_0x5cf303(0x104))['append'](_0x5cf303(0xfd)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0x10d)]+_0x5cf303(0xd9)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0x10e)]+_0x5cf303(0xe8)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xe7)]+_0x5cf303(0xe0)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0x10e)]+_0x5cf303(0xc4)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0x113)][_0x5cf303(0xf4)](/\n/g,'<br/>')+_0x5cf303(0xdd)+_0x3f37e3['brandSetting'][_0x5cf303(0xc0)][_0x5cf303(0xf4)](/\+/g,'')+_0x5cf303(0xe1)+(_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)]?_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xd0)]:'')+_0x5cf303(0xde)+_0x3f37e3[_0x5cf303(0xe4)][_0x5cf303(0xcf)]+_0x5cf303(0x100)),_0x3f37e3['brandSetting'][_0x5cf303(0xf8)]?jQuery(_0x5cf303(0xc7))[_0x5cf303(0xd1)](_0x5cf303(0xd6),'block'):jQuery(_0x5cf303(0xc7))[_0x5cf303(0xd1)]('display','none'),jQuery(_0x5cf303(0x104))['on'](_0x5cf303(0xc9),_0x5cf303(0xc8),function(){var _0x4ee136=_0x5cf303;jQuery(_0x4ee136(0xc7))[_0x4ee136(0xd1)]('display','none');}),jQuery('#whatsapp_chat_widget')['on']('click',_0x5cf303(0xe3),function(){var _0xd27e1e=_0x5cf303;var _0xchatBox = jQuery(_0xd27e1e(0xc7));if (_0xchatBox['css']('display') === 'none') {_0xchatBox['css']('display', _0xd27e1e(0xd4));}else{_0xchatBox['css']('display', 'none');}});}var _0x57b43f='\x0a\x20\x20\x20\x20\x20\x20\x20\x20#whatsapp_chat_widget{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20'+(_0x3f37e3[_0x51fce2(0xfe)]?_0x51fce2(0xd4):_0x51fce2(0xf1))+_0x51fce2(0x107)+_0x3f37e3[_0x51fce2(0xe4)][_0x51fce2(0xfc)]+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-width:\x20initial;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-style:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20initial;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-image:\x20initial;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20'+_0x3f37e3['chatButtonSetting'][_0x51fce2(0xe9)]+_0x51fce2(0xc6)+_0x3f37e3['brandSetting'][_0x51fce2(0xe9)]+_0x51fce2(0xd5)+_0x3f37e3[_0x51fce2(0x109)]['marginBottom']+_0x51fce2(0x106)+(_0x3f37e3['chatButtonSetting'][_0x51fce2(0xc2)]==_0x51fce2(0xbf)?_0x51fce2(0xe2)+_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0x112)]+'px':_0x51fce2(0xe6)+_0x3f37e3['chatButtonSetting']['marginRight']+'px')+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x202px\x202px\x206px\x20rgba(0,0,0,0.4);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font:\x20400\x20normal\x2015px/1.3\x20-apple-system,\x20BlinkMacSystemFont,\x20Roboto,\x20Open\x20Sans,\x20Helvetica\x20Neue,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20#wa-widget-send-button\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200\x200\x20'+_0x3f37e3['chatButtonSetting'][_0x51fce2(0xef)]+_0x51fce2(0xff)+(_0x3f37e3[_0x51fce2(0x109)]['ctaText']?_0x51fce2(0xfb):_0x51fce2(0x111))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding-right:\x20'+(_0x3f37e3[_0x51fce2(0x109)]['ctaText']?_0x51fce2(0xfb):_0x51fce2(0x111))+_0x51fce2(0xf5)+_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0xfc)]+_0x51fce2(0xcb)+_0x3f37e3[_0x51fce2(0x109)]['backgroundColor']+_0x51fce2(0x105)+(_0x3f37e3[_0x51fce2(0x109)]['position']=='left'?_0x51fce2(0xe2)+_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0x112)]+'px':_0x51fce2(0xe6)+_0x3f37e3[_0x51fce2(0x109)][_0x51fce2(0xea)]+'px')+_0x51fce2(0xf2),_0x1fc7d7=document[_0x51fce2(0xbe)](_0x51fce2(0xf6));_0x1fc7d7[_0x51fce2(0x108)]=_0x51fce2(0xf0),_0x1fc7d7['innerText']=_0x57b43f,document[_0x51fce2(0xbd)]('head')[0x0][_0x51fce2(0xee)](_0x1fc7d7);}function _0x2809(){var _0xee33fc=['brandImg','brandName','1000QbmnKp','text/javascript','0px','marginLeft','welcomeText','54570fYgQTy','Start\x20Chat','jQuery','getElementsByTagName','createElement','left','phoneNumber','1687815MzuJbN','position','519592nDjsLb','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-content-chat-welcome\x27>','Typically\x20replies\x20within\x20a\x20day','!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-chat-brand{\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20700;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20rgba(0,\x200,\x200,\x200.4);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-chat-welcome{\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2014px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2019px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-top:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x20-10px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20rgb(17,\x2017,\x2017);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-chat{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x203px\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px\x2050px\x205px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200px\x2010px\x2010px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}:root {--TimeStamp:\x20"09:09";--OnlineStatus:\x20#1DBF75;--OfflineStatus:\x20#DEBE1A;}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-chat::after{content: var(--TimeStamp);font-size: 0.8em;padding: 0px 0px 0px calc(100% + 40px);margin: 0 0 0 -30px;}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-bubble-close-btn{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20right:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-brand-text{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-brand-name{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20700;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-brand-subtitle{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-top:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.online-status{\x20background:\x20var(--OnlineStatus);position:\x20absolute;\x20height:\x208px;\x20width:\x208px;\x20left:\x2060px;\x20top:\x2060px;\x20border-radius:\x2050%;}\x20\x20\x20\x20\x20\x20\x20\x20.online-status:before,\x0a\x20\x20\x20\x20\x20\x20\x20\x20.online-status:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20right:\x200;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x200;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20left:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20border:\x201px\x20solid\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20.online-status:before\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20ripple\x202s\x20linear\x20infinite;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20.online-status:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20ripple\x202s\x20linear\x201s\x20infinite;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20ripple{\x0a\x20\x20\x20\x20\x20\x20\x20\x200%\x20{\x20transform:\x20scale(1);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x2050%\x20{\x20transform:\x20scale(1.3);\x20opacity:1;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x20transform:\x20scale(1.6);\x20opacity:0;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-header{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20100px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x20100px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-height:\x20100px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20','.wa-chat-box','.wa-chat-bubble-close-btn','click','__page_title__','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20filter\x200.3s\x20ease\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20','append','2574078xNqyoC','1925vFKpNu','ctaText','messageText','css','{{page_title}}','7EEDjJN','block',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x2010px\x2010px\x200px\x200px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20#wa-widget-send-button:hover{filter:brightness(.95);}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-brand{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x2050px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x2050px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x2025px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x202px\x202px\x206px\x20rgba(0,0,0,0.4);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background: #e5ddd5 url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20z-index:\x2016000160\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x2060px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20360px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20fixed\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x20','display','741653dNtLUM','48uylctu','\x27\x20title=\x27Brand\x20Image\x27/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27online-status\x27\x20title=\x27Availability\x27></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-brand-text\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-brand-name\x27>','replaceAll','STYLE','head','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-send\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20role=\x22button\x22\x20target=\x22_blank\x22\x20href=\x22https://api.whatsapp.com/send?phone=','\x22\x20title=\x22WhatsApp\x22\x20class=\x22wa-chat-box-content-send-btn\x22><svg\x20width=\x2220\x22\x20height=\x2220\x22\x20viewBox=\x220\x200\x2090\x2090\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20fill-rule=\x22evenodd\x22\x20clip-rule=\x22evenodd\x22\x20class=\x22wa-chat-box-content-send-btn-icon\x22><path\x20d=\x22M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522\x20\x20\x20c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z\x20M45.818,6.982\x20\x20\x20c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537\x20\x20\x20c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z\x20M68.129,53.938\x20\x20\x20c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537\x20\x20\x20c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333\x20\x20\x20c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882\x20\x20\x20c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977\x20\x20\x20c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344\x20\x20\x20c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223\x20\x20\x20C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z\x22></path></svg>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22wa-chat-box-content-send-btn-text\x22>','918851730877','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22wa-chat-bubble-close-btn\x22><img\x20style=\x22display:\x20table-row\x22\x20src=\x22https://cdn.jsdelivr.net/gh/iammunendrasingh/free-whatsapp-chat-widget@main/close.svg\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-content\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-content-chat\x27>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-content-chat-brand\x27>','&text=','left\x20:\x20','#wa-widget-send-button','brandSetting','body','right\x20:\x20','brandSubTitle','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-brand-subtitle\x27>','backgroundColor','marginRight','document','#4dc247','{{page_link}}','appendChild','marginBottom','text/css','none',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-messenger-svg-whatsapp{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fill:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x2041px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x2050px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stroke:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-add-to-site{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font:\x20400\x20normal\x2015px/1.3\x20-apple-system,\x20BlinkMacSystemFont,\x20Roboto,\x20Open\x20Sans,\x20Helvetica\x20Neue,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20visible\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-top:\x20-10px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-style:\x20italic;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#999999;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@media\x20only\x20screen\x20and\x20(max-width:\x20600px)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20auto;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20fixed\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20right:\x2020px!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2020px!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','right','replace',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20fixed\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20z-index:\x2016000160\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x200\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x2050px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:\x2050px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x20','style','location','autoShow','2389sIwVOW','#404145','15px','borderRadius','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-header\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x27wa-chat-box-brand\x27\x20onError=\x27this.src=\x20\x22https://iframeweb.com/wp-content/uploads/2023/10/iframeweb-logo.jpg\x22;\x27\x20src=\x27','enabled','px\x200;\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding-left:\x20','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27wa-chat-box-add-to-site\x27><a\x20href=\x22https://%69%66%72%61%6D%65%77%65%62%2E%63%6F%6D/go/%77%61-%77-%31-0\x22\x20target=\x22_blank\x22\x20style=\x22color: rgba(0,0,0,0.4);padding: 2px 5px;background: #e5ddd5;border-radius: 6px;text-decoration: none;\x22>add to your website</a></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','%0A','<div\x20id=\x22whatsapp_chat_widget\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22wa-widget-send-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20viewBox=\x220\x200\x2032\x2032\x22\x20class=\x22wa-messenger-svg-whatsapp\x20wh-svg-icon\x22><path\x20d=\x22\x20M19.11\x2017.205c-.372\x200-1.088\x201.39-1.518\x201.39a.63.63\x200\x200\x201-.315-.1c-.802-.402-1.504-.817-2.163-1.447-.545-.516-1.146-1.29-1.46-1.963a.426.426\x200\x200\x201-.073-.215c0-.33.99-.945.99-1.49\x200-.143-.73-2.09-.832-2.335-.143-.372-.214-.487-.6-.487-.187\x200-.36-.043-.53-.043-.302\x200-.53.115-.746.315-.688.645-1.032\x201.318-1.06\x202.264v.114c-.015.99.472\x201.977\x201.017\x202.78\x201.23\x201.82\x202.506\x203.41\x204.554\x204.34.616.287\x202.035.888\x202.722.888.817\x200\x202.15-.515\x202.478-1.318.13-.33.244-.73.244-1.088\x200-.058\x200-.144-.03-.215-.1-.172-2.434-1.39-2.678-1.39zm-2.908\x207.593c-1.747\x200-3.48-.53-4.942-1.49L7.793\x2024.41l1.132-3.337a8.955\x208.955\x200\x200\x201-1.72-5.272c0-4.955\x204.04-8.995\x208.997-8.995S25.2\x2010.845\x2025.2\x2015.8c0\x204.958-4.04\x208.998-8.998\x208.998zm0-19.798c-5.96\x200-10.8\x204.842-10.8\x2010.8\x200\x201.964.53\x203.898\x201.546\x205.574L5\x2027.176l5.974-1.92a10.807\x2010.807\x200\x200\x200\x2016.03-9.455c0-5.958-4.842-10.8-10.802-10.8z\x22\x20fill-rule=\x22evenodd\x22></path></svg>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:\x20white;\x20font-size:\x2018px\x22>','176wKaUkF','#whatsapp_chat_widget',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x202px\x202px\x206px\x20rgba(0,0,0,0.4);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','px\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-send-btn-text{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x208px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x208px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20z-index:\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20rgb(255,\x20255,\x20255);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-send-btn-icon{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x2016px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x2016px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fill:\x20rgb(255,\x20255,\x20255);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20z-index:\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex:\x200\x200\x2016px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-send\x20{\x20padding:\x200\x2010px;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2020px\x2010px\x200\x2010px;\x20}.wa-chat-box-content-send-btn:hover{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20filter: brightness(0.95);}\x0a\x20\x20\x20\x20\x20\x20\x20\x20a.wa-chat-box-content-send-btn{margin:\x2020px\x200!important;}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.wa-chat-box-content-send-btn{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20rgb(255,\x20255,\x20255)!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20700;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition: background-color 0.3s ease, filter 0.3s ease;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-box-pack:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-box-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x208px\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x20','type','chatButtonSetting','href','SCRIPT','1503WAAMHJ'];_0x2809=function(){return _0xee33fc;};return _0x2809();}
//New updates
// Function to get the current local time in 24-hour format (HH:MM)
function getCurrentLocalTime() {
const now = new Date();
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
return `${hours}:${minutes}`;
}
// Function to update the --TimeStamp variable in the :root
function updateTimeStamp() {
const currentTime = getCurrentLocalTime();
// Update the --TimeStamp CSS variable in the root
document.documentElement.style.setProperty('--TimeStamp', `"${currentTime}"`);
}
updateTimeStamp(); // update the timestamp with the current time global fn declared above
document.addEventListener("DOMContentLoaded", function() {
// Function to manipulate CSS style based on text inside the div
function adjustPaddingIfNoText() {
// Get the #wa-widget-send-button element
const sendButton = document.getElementById('wa-widget-send-button');
// Get the div inside the #wa-widget-send-button that contains the text
const textDiv = sendButton.querySelector('div');
// Check if the text inside the div is empty or consists only of whitespace
if (!textDiv || textDiv.textContent.trim() === "") {
// Apply the CSS padding-left and padding-right as 0 and !important
sendButton.style.paddingLeft = "0 !important";
sendButton.style.paddingRight = "0 !important";
}
}
// Call the function to adjust the padding based on text
adjustPaddingIfNoText();
});