PageSourceSearch

https://www.parts-cnc.com/js/guidefirstcommon.js

js parts-cnc.com collected 2026-10-04 04:52:05 UTC 10,362 bytes, 1 lines download raw bytes

1function getAllChangeArr(){var e,n,t=["v-website","evc-toolbar","v-time"],o="";for(let e=0;e<t.length;e++)o=o+":not(."+t[e]+")";e=`*${o}>[onclick^="getGuideCustomwa"],*${o}>[onclick^=" getGuideCustomwa"]`,n=`*${o}>[onclick^="getGuideCustomIm"],*${o}>[onclick^=" getGuideCustomIm"]`;var i=document.querySelectorAll('[onclick^="handDialog"],[onclick^="creatDialog"],[onclick^=" handDialog"],[onclick^=" creatDialog"]'),l=document.querySelectorAll('[onclick^="f_top_product_line2_contact"],[onclick^="f_product_lin2_contact"],[onclick*="openDialog"],[onclick^="f_category_three_point_submit"]'),r=document.querySelectorAll("a[onclick^=\"document.querySelector('#kwd_pid')\"]"),c=document.querySelectorAll(e),a=document.querySelectorAll(n),d=document.querySelectorAll("div[onclick^=setwebimCookie],div[onclick^=' setwebimCookie']"),s=document.querySelectorAll('*:not(#floatAd):not(.vr-bottom-msg) a[href$="contactnow.html"],[onclick*="contactnow.html"]'),m=document.querySelectorAll('*:not(#floatAd) a[href^="javascript:quireone"] *[type="submit"][name="submit"]'),u=document.querySelectorAll('*:not(#floatAd) form[action$="contactnow.html"][method="POST"] *[type="submit"][name="submit"],*:not(#floatAd) form[action$="contactnow.html"][method="POST"]:not([onsubmit]):not([target]) button[type="submit"]'),g=document.querySelectorAll('*:not(#floatAd) form[onsubmit^="return changeAction"][method="POST"] *[type="submit"][name="submit"]');return[...document.querySelectorAll("a[onclick^=\"document.getElementById('hu_header_click_form'\"]"),...c,...a,...r,...d,...i,...u,...s,...g,...m,...document.querySelectorAll("[href$='webim/webim_tab_mobile.html']:not(.footer_webim_a)"),...l]}var pseudoElementStyle="",contentValue="";function hideBtnText(e){e&&(e.target="",e.classList.add("addLoading"),e.addEventListener("click",function(e){if("true"==sessionStorage.getItem("shouldPreventPropagation"))return e.preventDefault(),e.stopPropagation(),!1},!0))}function showBtnText(e){e.classList.add("hideAddLoading"),e.classList.remove("addLoading"),e.target="",sessionStorage.setItem("shouldPreventPropagation",!1)}function afterHideBtnText(){for(var e=document.querySelectorAll('*:not(#floatAd) a[href$="contactnow.html"]'),n=0;n<e.length;n++)e[n].classList.add("addLoading")}function compareTexts(e,n){return e.replace(/\s/g,"").toLowerCase()===n.replace(/\s/g,"").toLowerCase()}function changeAllBtnText(e){var n=e||getAllChangeArr();if(0!=window.isShowGuide&&window.isShowGuide){var t="Chat",o="Chat Now",i="Get Best Price",l="Best Price",r="Get Price",c="Call Now";try{t=str_chat?str_chat.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Chat",o=str_chat_now?str_chat_now.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Chat Now",i=str_contact1?str_contact1.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Get Best Price",l=str_contact2?str_contact2.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Best Price",r=str_contact3?str_contact3.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Get Price",c=str_call_now?str_call_now.replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase()):"Call Now"}catch(e){}function a(e){var n="",a="",d="cusall";2==window.isShowGuide?d="cusim":3==window.isShowGuide&&(d="cuswa");var s=e.innerText||e.value;if(s){s=s.trim();var m=new Array;m=s.split(" ").length;var u=e.innerHTML.includes("class=")||e.innerHTML.includes("feitian")||e.innerHTML.includes("iconfont")||e.innerHTML.includes("<i")||e.innerHTML.includes("<img"),g="",p=!1,S=!1,b=!1,E=!1,w="",T="",f="span";for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(o.children&&o.children.length>1){for(let e=0;e<o.children.length;e++){const t=o.children[e];if(t.nodeValue&&t.nodeValue.replaceAll(/\s|\n/g,"")||t.innerText&&t.innerText.replaceAll(/\s|\n/g,"")){try{"none"!=getComputedStyle(t).display&&"0px"!=getComputedStyle(t)["font-size"]||(a="elementHideText")}catch(e){}if(t.nextElementSibling&&t.nextElementSibling.nodeType===Node.ELEMENT_NODE){var y=(_=window.getComputedStyle(t.nextElementSibling,"::before")).getPropertyValue("content"),h=(C=window.getComputedStyle(t.nextElementSibling,"::after")).getPropertyValue("content"),v=window.getComputedStyle(t.nextElementSibling),x="none"!=y&&'""'!=y&&"''"!=y&&y||"none"!==_.backgroundImage,N="none"!=h&&'""'!=h&&"''"!=h&&h||"none"!==C.backgroundImage;(x||N||"IMG"==t.nextElementSibling.nodeName||"none"!==v.backgroundImage)&&(p=!0),"none"!=getComputedStyle(t.nextElementSibling).display&&"0px"!=getComputedStyle(t.nextElementSibling)["font-size"]||(n="elementHideIcon")}else if(t.previousElementSibling&&t.previousElementSibling.nodeType===Node.ELEMENT_NODE){y=(_=window.getComputedStyle(t.previousElementSibling,"::before")).getPropertyValue("content"),h=(C=window.getComputedStyle(t.previousElementSibling,"::after")).getPropertyValue("content"),v=window.getComputedStyle(t.previousElementSibling),x="none"!=y&&'""'!=y&&"''"!=y&&y||"none"!==_.backgroundImage,N="none"!=h&&'""'!=h&&"''"!=h&&h||"none"!==C.backgroundImage;(x||N||t.previousElementSibling&&"IMG"==t.previousElementSibling.nodeName||"none"!==v.backgroundImage)&&(S=!0),"none"!=getComputedStyle(t.previousElementSibling).display&&"0px"!=getComputedStyle(t.previousElementSibling)["font-size"]||(n="elementHideIcon")}if((p||S||t.previousElementSibling&&"IMG"==t.previousElementSibling.nodeName||t.nextElementSibling&&"IMG"==t.nextElementSibling.nodeName)&&(b=!0,u=!0),b||p||S||(u=!1),t.nextElementSibling&&t.nextElementSibling.nodeType!==Node.TEXT_NODE&&(E||(g="")),t.previousElementSibling&&t.previousElementSibling.nodeType==Node.TEXT_NODE&&!t.previousElementSibling.nodeValue.includes("\n")&&t.nodeType!=Node.TEXT_NODE||t.previousElementSibling&&"IMG"==t.previousElementSibling.nodeName){E=!0,g="IconShowBefore";break}}}break}if(o.nodeValue&&o.nodeValue.replaceAll(/\s|\n/g,"")||o.innerText&&o.innerText.replaceAll(/\s|\n/g,"")){o.tagName&&(w=`<${o.tagName.toLowerCase()} class="${o.className}">`,T=`</${o.tagName.toLowerCase()}>`);try{"none"!=getComputedStyle(o).display&&"0px"!=getComputedStyle(o)["font-size"]||(a="elementHideText")}catch(e){}if(o.nextElementSibling&&o.nextElementSibling.nodeType===Node.ELEMENT_NODE){y=(_=window.getComputedStyle(o.nextElementSibling,"::before")).getPropertyValue("content"),h=(C=window.getComputedStyle(o.nextElementSibling,"::after")).getPropertyValue("content"),v=window.getComputedStyle(o.nextElementSibling),x="none"!=y&&'""'!=y&&"''"!=y&&y||"none"!==_.backgroundImage,N="none"!=h&&'""'!=h&&"''"!=h&&h||"none"!==C.backgroundImage;(x||N||"IMG"==o.nextElementSibling.nodeName||"none"!==v.backgroundImage)&&(p=!0),"none"!=getComputedStyle(o.nextElementSibling).display&&"0px"!=getComputedStyle(o.nextElementSibling)["font-size"]||(n="elementHideIcon")}else if(o.previousElementSibling&&o.previousElementSibling.nodeType===Node.ELEMENT_NODE){y=(_=window.getComputedStyle(o.previousElementSibling,"::before")).getPropertyValue("content"),h=(C=window.getComputedStyle(o.previousElementSibling,"::after")).getPropertyValue("content"),v=window.getComputedStyle(o.previousElementSibling),x="none"!=y&&'""'!=y&&"''"!=y&&y||"none"!==_.backgroundImage,N="none"!=h&&'""'!=h&&"''"!=h&&h||"none"!==C.backgroundImage;(x||N||"none"!==v.backgroundImage)&&(S=!0,E=!0,g="IconShowBefore"),"none"!=getComputedStyle(o.previousElementSibling).display&&"0px"!=getComputedStyle(o.previousElementSibling)["font-size"]||(n="elementHideIcon")}if((p||S||o.previousElementSibling&&"IMG"==o.previousElementSibling.nodeName||o.nextElementSibling&&"IMG"==o.nextElementSibling.nodeName)&&(b=!0,u=!0),b||p||S||(u=!1),o.nextSibling&&o.nextSibling.nodeType!==Node.TEXT_NODE&&o.nodeType==Node.TEXT_NODE&&(E||(g="")),o.previousElementSibling&&o.previousElementSibling.nodeType==Node.TEXT_NODE&&!o.previousElementSibling.nodeValue.includes("\n")&&o.nodeType!=Node.TEXT_NODE||o.previousElementSibling&&"IMG"==o.previousElementSibling.nodeName){E=!0,g="IconShowBefore";break}}}if(e.nodeType===Node.ELEMENT_NODE){var _,C;y=(_=window.getComputedStyle(e,"::before")).getPropertyValue("content"),h=(C=window.getComputedStyle(e,"::after")).getPropertyValue("content"),v=window.getComputedStyle(e),x="none"!=y&&'""'!=y&&"''"!=y&&y||"none"!==_.backgroundImage,N="none"!=h&&'""'!=h&&"''"!=h&&h||"none"!==C.backgroundImage;(x||N||"none"!==v.backgroundImage)&&(u=!0),u&&e.classList.add("removeIconContent"),x&&(g="IconShowBefore")}if(e.innerHTML.includes("icon13next")&&(d="iconfont icon13next"),e.innerHTML.includes("iconNext_")&&(d="iconfont iconNext_"),e.innerHTML.includes("iconfont iconmail_ r_msg intercept")&&(d="iconfont iconmail_ r_msg intercept"),(e.innerHTML.includes("icon13next")||e.innerHTML.includes("iconNext_")||e.innerHTML.includes("iconfont iconmail_ r_msg intercept"))&&e.classList.remove("removeIconContent"),"elementHideText"==a&&e.classList.add("elementHideText"),compareTexts(i,s)||compareTexts(l,s)||compareTexts(r,s)||compareTexts(c,s))e.classList.remove("removeIconContent");else{var I="";e.innerHTML.includes("<i")&&(f="i"),I=u&&"INPUT"!=e.nodeName?"elementHideText"==a?`<${f} class="${n}  ${d}"></${f}>`:m>=2?"IconShowBefore"==g?`<${f} class="${n}  ${d}  ${g} "></${f}> ${w||""}${o}${T||""}`:`${w||""}${o}${T||""} <${f} class="${n}  ${d}"></${f}>`:"IconShowBefore"==g?`<${f} class="${n}  ${d}  ${g} "></${f}> ${w||""}${t}${T||""}`:`${w||""}${t} ${T||""}<${f} class="${n}  ${d}"></${f}>`:m>=2?o:t,"INPUT"==e.nodeName?(e.value=I,u&&e.classList.add(d)):u?e.innerHTML=I:replaceTextInElement(e,I)}}}for(d=0;d<n.length;d++)n[d].innerHTML.includes("icon13contacts")||n[d].innerHTML.includes("iconfont iconmail_ r_msg intercept")||n[d].innerHTML.includes("icon-contact")||(n[d].innerHTML.includes('<span class="glyphicon glyphicon-user">')?n[d]&&n[d].childNodes[1]&&(n[d].childNodes[1].textContent=o):a(n[d]))}else for(var d=0;d<n.length;d++)showBtnText(n[d])}function replaceTextInElement(e,n){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];
1if(o.nodeType===Node.TEXT_NODE){if(o.nodeValue&&o.nodeValue.replaceAll(/\s|\n/g,"")||o.innerText&&o.innerText.replaceAll(/\s|\n/g,"")){o.textContent=n;break}}else o.nodeType===Node.ELEMENT_NODE&&replaceTextInElement(o,n)}}setTimeout(function(){sessionStorage.setItem("shouldPreventPropagation","true");for(var e=getAllChangeArr(),n=0;n<e.length;n++)hideBtnText(e[n])}),document.addEventListener("DOMContentLoaded",function(){setTimeout(function(){changeAllBtnText()})});

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.