|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins/wp-whatsapp/assets/js/ |
(function () {
njtWhatsApp.ready(function () {
const init = function () {
document.querySelectorAll(".nta_wa_button").forEach(function (element) {
if (element._isWaButton) return
const info = JSON.parse(element.getAttribute('data-info'))
njtWhatsApp.createButton(element, {
...info,
timezone: njt_wa_global.timezone,
i18n: njt_wa_global.i18n,
urlSettings: njt_wa_global.urlSettings,
});
});
};
init();
if (window.jQuery) {
// Support Riode Theme
if (typeof(Riode) !== 'undefined' && typeof(jQuery) !== 'undefined') {
Riode.$window.on('riode_load', function(){ init() })
jQuery(document).ajaxComplete((e, xhs, req) => {
try {
if (req.data.indexOf('riode_quickview') > -1) { init() }
} catch (e) {
console.log("error")
}
})
}
// Support Porto Theme
jQuery(document).ajaxComplete((e, xhs, req) => {
try {
if (req.data.indexOf('action=porto_lazyload_menu') > -1) { init() }
} catch (e) {}
})
}
});
})();