1// Handling LiveChat 2if (typeof window.wriLiveChat !== 'undefined') { 3 if (Array.isArray(window.wriLiveChat)) { 4 window.wriLiveChat.push('callWhenReady'); 5 } else { 6 window.wriLiveChat.whenReady('callWhenReady'); 7 } 8} else { 9 window.wriLiveChat = ['callWhenReady']; 10} 11 12function callWhenReady(input) { 13 let availability = window.wriLiveChat.getAvailability(); 14 let customerStatus = window.wriLiveChat.getCustomerStatus(); 15 let chatVisibility = window.wriLiveChat.getVisibility(); 16 if(availability!=undefined) { 17 const chatStatus = document.querySelector('.cta-chat'); 18 chatStatus.classList.add(availability); 19 } 20 21 const chatLink = document.querySelector('.cta-chat'); 22 if(chatLink!=undefined){ 23 chatLink.addEventListener('click',function(e){ 24 e.preventDefault(); 25 if(wriLiveChat.getVisibility()=='minimized' || wriLiveChat.getVisibility() == 'hidden') { 26 wriLiveChat.maximizeChat(); 27 } 28 }) 29 } 30}
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.