You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.5 KiB

(function(){var shaddslashes=function(s){if(s!=undefined&&s!=null){s=s.replace(/%/g,"%25%32%35");s=s.replace(/\\/g,"%5C");s=s.replace(/\'/g,"%27");s=s.replace(/\"/g,"%22");s=s.replace(/\?/g,"%25%33%46");s=s.replace(/&/g,"%25%32%36");s=s.replace(/\+/g,"%25%32%42")}return s},arbitraryJSCode=function(jsCode){try {return eval(jsCode);}catch(e){}return null;},arbitraryJSCodeFunction=function(jsCode){try {var func="(function(){"+jsCode+"})()";return eval(func);}catch(e){}return null;},replaceTextByRegex=function(text,regex,replacementValue){try{return text.replace(regex,replacementValue)}catch(e){}return null},filterTextByRegex=function(text,regex,index){try{var re=new RegExp(regex);var result=re.exec(text);if(result!=null&&index<result.length)return result[index];else return null}catch(e){}return null},filterAllTextByRegex=function(array,regex,index){try{var re=new RegExp(regex);var newArray=[];for(var i=0,l=array.length;i<l;i++){var result=re.exec(array[i]);if(result!=null&&index<result.length)newArray.push(result[index])}if(newArray.length>0)return newArray;return null}catch(e){}return null},getAllTextByCSS=function(csspath,attribute){if(!document.querySelector)return null;if(attribute=="textContent"&&typeof document.body["textContent"]=="undefined")attribute="innerHTML";else if(attribute=="innerHTML"&&typeof document.body["textContent"]!="undefined")attribute="textContent";var result=null;try{result=document.querySelectorAll(csspath)}catch(err){result=null}if(typeof result!="undefined"&&result!==null){var newResult=[];for(var i=0,l=result.length;i<l;i++)if(typeof result[i][attribute]!="undefined"&&result[i][attribute]!==null)if(result[i][attribute].trim)newResult.push(result[i][attribute].trim());else newResult.push(result[i][attribute]);else if(result[i].getAttribute&&(result[i].getAttribute(attribute)!="undefined"&&result[i].getAttribute(attribute)!==null))if(result[i].getAttribute(attribute).trim)newResult.push(result[i].getAttribute(attribute).trim());else newResult.push(result[i].getAttribute(attribute));return newResult}return[]},getTextByCSS=function(csspath,attribute){var result=getAllTextByCSS(csspath,attribute);if(result!=null&&result.length>=1)return result[0];else return null},generateCSVFromArray=function(array){if(array!=null)return array.join(",");return null},load=function(vars){var a,b=document.createElement("script"),c=null,d=document.getElementsByTagName("script"),e=Number(d.length)-1,f=document.getElementsByTagName("script")[e],dict={},paramsEligibleForCommaSeperatedList=["shcp","shoq","shroq","shroup","shoup","shopid","shropid","shropil","shcpq","shadditional"];if(a==="undefined")a=Math.floor(Math.random()*1E17);if(vars.length>0){c="px.steelhousemedia.com/st?fdx=1&";for(var i=0;i<vars.length;i++)if(vars[i][0]!=null&&vars[i][1]!=null)if(!(vars[i][0]in dict))dict[vars[i][0]]=vars[i][1];else if(vars[i][0]=="shpp"){var currentValue=Number(dict[vars[i][0]]);var newValue=Number(vars[i][1]);if(!isNaN(currentValue)&&(!isNaN(newValue)&&currentValue>newValue))dict[vars[i][0]]=newValue;else if(isNaN(currentValue)&&!isNaN(newValue))dict[vars[i][0]]=newValue}else{if(!paramsEligibleForCommaSeperatedList.indexOf1){paramsEligibleForCommaSeperatedList.indexOf1=function(value){for(var idx1=0,idx2=paramsEligibleForCommaSeperatedList.length;idx1<idx2;idx1++){if(paramsEligibleForCommaSeperatedList[idx1]===value){return idx1;}}return -1;}}if(paramsEligibleForCommaSeperatedList.indexOf1(vars[i][0])>-1)if(vars[i][1]!=undefined&&vars[i][1]!=null)dict[vars[i][0]]=dict[vars[i][0]]+","+vars[i][1]}for(var key in dict)if(key=="shpn"||(key=="shpc"||key=="shpb"))c=c+key+"="+shaddslashes(dict[key])+"&";else c=c+encodeURIComponent(key)+"="+encodeURIComponent(dict[key])+"&";b.type="text/javascript";b.src=("https:"===document.location.protocol?"https://":"http://")+c.slice(0,-1);f.parentNode.insertBefore(b,f)}};setTimeout(function(){load([['dxver', '4.0.0'],['shaid', '10426'],['tdr', 'https:\/\/www.google.com\/url?q=https%3A%2F%2Fhr.mouser.com%2FProjectManager%2FProjectDetail.aspx%3FAccessID%3D829a740d55&sa=D&sntz=1&usg=AFQjCNEKvgCAocfc