PageSourceSearch

https://greempower.com/wp-content/litespeed/js/98367fb5e72a4ec703a07b1dcd9625ae.js?ver=c762d

js greempower.com collected 2026-09-30 21:49:05 UTC 2,569 bytes, 20 lines download raw bytes

1function getValue(p_n,ix){var q_s='';if(p_n=='q'){var ref=document.referrer;if(ref!=undefined){q_s=ref.split('?')[1]}}else{try
2{q_s=window.top.location.search.substring(1)}catch(e){q_s=''}}
3var pa_n=p_n+'=';var p_v='';if(q_s!=undefined&&q_s.length>0){begin=q_s.indexOf(pa_n);if(begin!=-1){begin+=pa_n.length;end=q_s.indexOf('&',begin);if(end==-1){end=q_s.length}
4p_v=q_s.substring(begin,end)}}
5if(p_v==undefined||p_v==''){p_v=g_c(GAd.indexValueArr[ix])}
6if(p_v!=undefined){p_v=p_v.replace(/\+/g,' ')}
7return p_v}
8GAd.prop=GAd.prop||[];GAd.indexValueArr=new Array('gclid');function GAd(){}
9GAd.prototype.initialize=function(){GAd.prop.push([GAd.indexValueArr[0],getValue(GAd.indexValueArr[0],0)]);for(var i=0;i<GAd.prop.length;i++){this.s_c(i)}
10this.s_Hid()}
11GAd.prototype.s_Hid=function(){var is_set=!1;var all_Frm=document.forms;for(var i=0;i<all_Frm.length;i++){var frm=all_Frm[i];for(var ii=0;ii<frm.length;ii++){if(frm.elements[ii].name=='zc_gad'){var p=g_c(GAd.indexValueArr[0]);var hidEl=document.getElementsByName('zc_gad');if(hidEl){for(var idx=0;idx<hidEl.length;idx++){hidEl[idx].value=p;is_set=!0}}}}}
12if(all_Frm&&all_Frm.length==0){var hidEl=document.getElementsByName('zc_gad');if(hidEl&&hidEl.length>0){var p=g_c(GAd.indexValueArr[0]);for(var idx=0;idx<hidEl.length;idx++){hidEl[idx].value=p;is_set=!0}}}
13if(!is_set){var zcga_script_elem=document.getElementsByName("zcga");if(zcga_script_elem&&zcga_script_elem.length==1){var zcga_hidEl_name=zcga_script_elem[0].getAttribute('zcga_element_name');if(zcga_hidEl_name){var hidEl=document.getElementsByName(zcga_hidEl_name);if(hidEl&&hidEl.length>0){var p=g_c(GAd.indexValueArr[0]);for(var idx=0;idx<hidEl.length;idx++){hidEl[idx].value=p;is_set=!0}}}}}}
14GAd.prototype.s_c=function(index,path,domain,secure){value=GAd.prop[index];var c_str=GAd.indexValueArr[index]+"="+escape(value[1]);var exp_d=30;var exdate=new Date();exdate.setDate(exdate.getDate()+exp_d);c_str+="; expires="+exdate.toGMTString();c_str+="; path=/";if(domain)
15c_str+="; domain="+escape(domain);if(secure)
16c_str+="; secure";document.cookie=c_str}
17new GAd().initialize();function g_c(c_name){var cArr=document.cookie.split('; ');var cArrLen=cArr.length;for(var i=0;i<cArrLen;i++){var cVals=cArr[i].split('=');if(cVals[0]===c_name&&cVals[1]){return unescape(cVals[1])}}}
18function IFrameSupport(){var frm;frm=document.getElementsByTagName("iframe");for(var i=0;i<frm.length;++i){if((frm[i].src).indexOf('WebFormServeServlet')>0){var gclid=g_c(GAd.indexValueArr[0]);var src=frm[i].src;src=src+"&gclid="+gclid;frm[i].src=src}}}
19IFrameSupport()
20;

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.