1(function () { 2 njtWhatsApp.ready(function () { 3 const init = function () { 4 document.querySelectorAll(".nta_wa_button").forEach(function (element) { 5 if (element._isWaButton) return 6 const info = JSON.parse(element.getAttribute('data-info')) 7 njtWhatsApp.createButton(element, { 8 ...info, 9 timezone: njt_wa_global.timezone, 10 i18n: njt_wa_global.i18n, 11 urlSettings: njt_wa_global.urlSettings, 12 }); 13 }); 14 }; 15 init(); 16 17 // Support Riode Theme 18 if (typeof(Riode) !== 'undefined' && typeof(jQuery) !== 'undefined') { 19 Riode.$window.on('riode_load', function(){ init() }) 20 jQuery(document).ajaxComplete((e, xhs, req) => { 21 try { 22 if (req.data.indexOf('riode_quickview') > -1) { init() } 23 } catch (e) { 24 console.log("error") 25 } 26 }) 27 } 28 29 // Support Porto Theme 30 jQuery(document).ajaxComplete((e, xhs, req) => { 31 try { 32 if (req.data.indexOf('action=porto_lazyload_menu') > -1) { init() } 33 } catch (e) {} 34 }) 35 }); 36})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.