PageSourceSearch

https://files.qssupplies.co.uk/js/lc.min.js

js qssupplies.co.uk collected 2026-10-02 06:50:24 UTC 3,251 bytes, 14 lines download raw bytes

1window.addEventListener("load",function(){const closeLiveChat=document.getElementById("closeLiveChat");const liveChatButton=document.getElementById("liveChatButton");const liveChatContainer=document.querySelector(".liveChat");const sideLiveChat=document.getElementById("sideLiveChat");let sideLiveChatBtn,sideLiveChatBtnDesktop;if(sideLiveChat){sideLiveChatBtn=sideLiveChat.querySelector("button.mobile");sideLiveChatBtnDesktop=sideLiveChat.querySelector("button.desktop");}
2function loadLiveChat(){window.__lc=window.__lc||{};window.__lc.license=18461421;window.__lc.integration_name="manual_channels";window.__lc.product_name="livechat";(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n);}
3var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)]);},once:function(){i(["once",c.call(arguments)]);},off:function(){i(["off",c.call(arguments)]);},get:function(){if(!e._h)
4throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)]);},call:function(){i(["call",c.call(arguments)]);},init:function(){var n=t.createElement("script");n.async=!0;n.type="text/javascript";n.src="https://cdn.livechatinc.com/tracking.js";n.onload=function(){LiveChatWidget.call("maximize");LiveChatWidget.on("ready",function(){if(LiveChatWidget.get("state").visibility==="minimized"){closeLiveChat.style.visibility="visible";closeLiveChat.style.opacity="1";}else{closeLiveChat.style.visibility="hidden";closeLiveChat.style.opacity="0";liveChatContainer.style.visibility="hidden";liveChatContainer.style.opacity="0";}
5LiveChatWidget.on("visibility_changed",function(state){if(state.visibility==="minimized"){closeLiveChat.style.visibility="visible";closeLiveChat.style.opacity="1";sideLiveChat.style.visibility="hidden";sideLiveChat.style.opacity="0";liveChatContainer.style.visibility="hidden";liveChatContainer.style.opacity="0";}else{closeLiveChat.style.visibility="hidden";closeLiveChat.style.opacity="0";}});});};t.head.appendChild(n);},};!n.__lc.asyncInit&&e.init(),(n.LiveChatWidget=n.LiveChatWidget||e);})(window,document,[].slice);}
6function sideLiveChatfn(){if(!window.LiveChatWidget){loadLiveChat();}else{LiveChatWidget.call("maximize");}
7let mImg=this.querySelector("button.mobile img");if(mImg){setTimeout(()=>{this.parentElement.classList.remove("zInd");this.parentElement.classList.add("smaller");},3000);this.classList.add("animateBtn");this.parentElement.classList.add("zInd");}else{this.parentElement.style.display="none";}
8window.scrollTo({top:0,behavior:'smooth'});}
9if(closeLiveChat){closeLiveChat.addEventListener("click",function(e){e.preventDefault;sideLiveChat.style.cssText="visibility: visible; opacity: 1;";if(liveChatContainer){liveChatContainer.style.display="none";}
10if(window.LiveChatWidget){LiveChatWidget.call("hide");}
11this.style.visibility="hidden";this.style.opacity="0";});}
12if(sideLiveChat){sideLiveChatBtn.addEventListener("click",sideLiveChatfn.bind(sideLiveChatBtn))}
13if(sideLiveChat){sideLiveChatBtnDesktop.addEventListener("click",sideLiveChatfn.bind(sideLiveChatBtnDesktop))}
14if(liveChatButton){liveChatButton.addEventListener("click",function(e){e.preventDefault();this.className="animateButton";if(!window.LiveChatWidget){loadLiveChat();}});}});

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.