1host1 = "https://form.globalso.com/"; 2// host="http://localhost:8087/"; 3key = "017c42188c8073bd49b43800b16aa404"; 4 5var timestamp = new Date().getTime(); 6var hg_special_domain_name_small_language = {}, hg_minor_languages = {}; 7hg_special_domain_name_small_language = {'en.hu-q.com': 'en.hu-q.com', 'en.sunleem.com': 'en.hu-q.com'}; 8hg_minor_languages = { 9 'af': 'af', 10 'am': 'am', 11 'ar': 'ar', 12 'az': 'az', 13 'be': 'be', 14 'bg': 'bg', 15 'bn': 'bn', 16 'bs': 'bs', 17 'ca': 'ca', 18 'ceb': 'ceb', 19 'co': 'co', 20 'cs': 'cs', 21 'cy': 'cy', 22 'da': 'da', 23 'de': 'de', 24 'el': 'el', 25 'en': 'en', 26 'eo': 'eo', 27 'es': 'es', 28 'et': 'et', 29 'eu': 'eu', 30 'fa': 'fa', 31 'fi': 'fi', 32 'fr': 'fr', 33 'fy': 'fy', 34 'ga': 'ga', 35 'gd': 'gd', 36 'gl': 'gl', 37 'gu': 'gu', 38 'ha': 'ha', 39 'haw': 'haw', 40 'hi': 'hi', 41 'hmn': 'hmn', 42 'hr': 'hr', 43 'ht': 'ht', 44 'hu': 'hu', 45 'hy': 'hy', 46 'id': 'id', 47 'ig': 'ig', 48 'is': 'is', 49 'it': 'it', 50 'iw': 'iw', 51 'ja': 'ja', 52 'jw': 'jw', 53 'ka': 'ka', 54 'kk': 'kk', 55 'km': 'km', 56 'kn': 'kn', 57 'ko': 'ko', 58 'ku': 'ku', 59 'ky': 'ky', 60 'la': 'la', 61 'lb': 'lb', 62 'lo': 'lo', 63 'lt': 'lt', 64 'lv': 'lv', 65 'mg': 'mg', 66 'mi': 'mi', 67 'mk': 'mk', 68 'ml': 'ml', 69 'mn': 'mn', 70 'mr': 'mr', 71 'ms': 'ms', 72 'mt': 'mt', 73 'my': 'my', 74 'ne': 'ne', 75 'nl': 'nl', 76 'no': 'no', 77 'ny': 'ny', 78 'or': 'or', 79 'pa': 'pa', 80 'pl': 'pl', 81 'ps': 'ps', 82 'pt': 'pt', 83 'ro': 'ro', 84 'ru': 'ru', 85 'rw': 'rw', 86 'sd': 'sd', 87 'si': 'si', 88 'sk': 'sk', 89 'sl': 'sl', 90 'sm': 'sm', 91 'sn': 'sn', 92 'so': 'so', 93 'sq': 'sq', 94 'sr': 'sr', 95 'st': 'st', 96 'su': 'su',
97 'sv': 'sv', 98 'sw': 'sw', 99 'ta': 'ta', 100 'te': 'te', 101 'tg': 'tg', 102 'th': 'th', 103 'tk': 'tk', 104 'tl': 'tl', 105 'tr': 'tr', 106 'tt': 'tt', 107 'ug': 'ug', 108 'uk': 'uk', 109 'ur': 'ur', 110 'uz': 'uz', 111 'vi': 'vi', 112 'xh': 'xh', 113 'yi': 'yi', 114 'yo': 'yo', 115 'zh': 'zh', 116 'zh-tw': 'zh-tw', 117 'zu': 'zu', 118 'q': 'q', 119 'w': 'w', 120 'e': 'e', 121 'r': 'r', 122 't': 't', 123 'y': 'y', 124 'u': 'u', 125 'i': 'i', 126 'o': 'o', 127 'p': 'p', 128 'a': 'a', 129 's': 's', 130 'd': 'd', 131 'f': 'f', 132 'g': 'g', 133 'h': 'h', 134 'j': 'j', 135 'k': 'k', 136 'l': 'l', 137 'z': 'z', 138 'x': 'x', 139 'c': 'c', 140 'v': 'v', 141 'b': 'b', 142 'n': 'n', 143 'm': 'm' 144}; 145var scr = {},href = {}, source_address = {}, file = {}, scripts = {}, domain = {}, host = {}, html = {}, id_c = {}, 146 id_document = {}; 147id_c[timestamp] = "livechatIframe" + timestamp; 148host[timestamp] = host1; 149scr[timestamp] = document.body; 150//------------èªå¨è·åå¼å ¥jsåå---------------- 151scripts[timestamp] = document.getElementsByTagName("script"); 152var durl = /(\/\/([^\/]+)\/)([\w\W]*)(livechat.js|focus\/[0-9]+.js|widget-init.js)/i; 153for (var i = scripts[timestamp].length - 1; i >= 0; i--) { 154 file[timestamp] = scripts[timestamp][i].getAttribute("src"); 155 domain[timestamp] = durl.exec(file[timestamp]); 156 if (domain[timestamp] && domain[timestamp] != undefined) { 157 var objRegExp = /^focus\/[0-9]+.js/; 158 if (domain[timestamp].length == 5 && (domain[timestamp][4] == 'livechat.js' || objRegExp.test(domain[timestamp][4]) || domain[timestamp][4] == 'widget-init.js')) { 159 host[timestamp] = domain[timestamp][1]; 160 source_address[timestamp] = domain[timestamp][2]; 161 href[timestamp] = scripts[timestamp][i].getAttribute("href"); 162 break; 163 } 164 } 165} 166//------------æé®ç»å®---------------- 167var domain_host_url = window.location.href; 168var reg_url = /^(http|https):\/\/([^\/]+)\//i; 169var domain_name = reg_url.exec(domain_host_url); 170var reg = /\\|\/|\?|\ï¼|\*|\"|\â|\â|\'|\â|\â|\<|\>|\{|\}|\[|\]|\ã|\ã|\ï¼|\:|\ã|\^|\$|\!|\~|\`|\||\./g; 171temp = ''; 172if (domain_name) temp = domain_name[0].replace(reg, ""); 173else if (domain_host) var temp = domain_host.replace(reg, ""); 174var input_btn_id = '', len = ''; 175if (temp) { 176 input_btn_id = "mauticform_input_" + temp + "_submit"; 177 len = document.getElementById(input_btn_id); 178 if (!len) { 179 var targetElement = document.createElement("input"); // å建ä¸ä¸ªå ç´ èç¹ 180 targetElement.type = 'button';//submit button 181 targetElement.value = 'googleç»è®¡'; 182 targetElement.id = input_btn_id; 183 targetElement.class = "google-submit-sum livechat_" + input_btn_id; 184 targetElement.style.display = "none"; 185 targetElement.addEventListener('click', function (e) { 186 console.log('goolç»è®¡'); 187 }); 188 scr[timestamp].insertAdjacentElement("beforeend", targetElement); 189 window.addEventListener('message', function (e) { 190 var Date = e.data; 191 if (Date.num == 3) { 192 var sub = document.getElementById(Date.id_c); 193 if (/msie/i.test(navigator.userAgent)) //IE 194 { 195 sub.fireEvent("onclick"); 196 } else { 197 var e = document.createEvent('MouseEvent'); 198 e.initEvent('click', false, false); 199 sub.dispatchEvent(e); 200 } 201 } 202 }, false); 203 } 204 document.getElementById(input_btn_id).className = "google-form-submit-sum livechat_" + input_btn_id; 205} 206var myDate = new Date; 207var year = myDate.getUTCFullYear(); //è·åå½åå¹´ 208var mon = myDate.getUTCMonth() + 1; //è·åå½åæ 209var date = myDate.getUTCDate(); //è·åå½åæ¥ 210var dates = year + "-" + mon + "-" + date; 211var windowlocationhost = window.location.host; 212if(!arrayPrototype(hg_special_domain_name_small_language,windowlocationhost)){ 213 host_arr=windowlocationhost.split('.'); 214 if(arrayPrototype(hg_minor_languages,host_arr[0])){ 215 host_arr[0]='www'; 216 windowlocationhost=host_arr.join('.'); 217 } 218} 219var html_url = year + '' + mon + '' + date + "_inquiry_livechat_" + windowlocationhost.replace(/\.|\:/g, ""); 220html[timestamp] = "<iframe src='" + host[timestamp] + "api/form/"+html_url+"?domain=" + windowlocationhost + "&key=" + key + "&date=" + dates + "&source_address=" + source_address[timestamp] + "' id='" + id_c[timestamp] + "' name='" + id_c[timestamp] + "' class='livechat_iframe' style='position:fixed;
220 right:10px; bottom:-385px;z-index: 1000000;min-width:280px;min-height:430px;width: 337px;height:430px;background:transparent;border:none;outline:none;margin:0;padding:0;transition-duration:.5s;'></iframe>" 221 222if (scr[timestamp] !== undefined) { 223 scr[timestamp].insertAdjacentHTML("beforeend", html[timestamp]); 224 var domain_ = document.domain; 225 var domain_host = windowlocationhost; 226 var winWidth = 0; 227 var winHeight = 0; 228 id_document[timestamp] = document.getElementById(id_c[timestamp]); 229 if (window.innerWidth) { 230 winWidth = window.innerWidth; 231 winHeight = window.innerHeight; 232 } else if ((document.body) && (document.body.clientWidth)) { 233 winWidth = document.body.clientWidth; 234 winHeight = document.body.clientHeight; 235 } else { 236 winHeight = document.documentElement.scrollHeight; 237 winWidth = document.documentElement.scrollWidth; 238 } 239 var sUserAgent = navigator.userAgent.toLowerCase(); 240 var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; 241 var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; 242 var bIsMidp = sUserAgent.match(/midp/i) == "midp"; 243 var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; 244 var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; 245 var bIsAndroid = sUserAgent.match(/android/i) == "android"; 246 var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; 247 var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; 248 var bIframe=document.getElementById(id_c[timestamp]) 249 if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { 250 } else { 251 if(domain_host.indexOf("bottlecustom.com")<0) { 252 var time = setTimeout(function () { 253 bIframe.style.bottom = '-5px'; 254 //document.getElementsByClassName("livechat_iframe")[0].style.bottom = '-5px'; 255 }, 5000); 256 } 257 } 258 259 // console.log(id_c[timestamp]); 260 // console.log(id_document[timestamp]); 261 iframe(id_document[timestamp], domain_, domain_host, host[timestamp], domain_host_url, key, winHeight, winWidth, time, source_address[timestamp], timestamp, id_c[timestamp], input_btn_id,href[timestamp]) 262} 263 264function iframe(id_document, domain, domain_host, host, domain_host_url, key, winHeight, winWidth, time, source_address, timestamp, id_c, input_btn_id,href) { 265 id_document.onload = function () { 266 id_document.contentWindow.postMessage({ 267 domain: domain, 268 domain_host: domain_host, 269 host: host, 270 domain_host_url: domain_host_url, 271 key: key, 272 winHeight: winHeight, 273 winWidth: winWidth, 274 time: time, 275 source_address: source_address, 276 timestamp: timestamp, 277 input_btn_id: input_btn_id, 278 href: href, 279 id_c: id_c 280 }, '*'); 281 282 } 283} 284 285window.addEventListener('message', function (e) { 286 var Date = e.data; 287 if (Date.time) clearTimeout(Date.time); 288 if (Date.num == 2) { 289 document.getElementById(Date.id_c).style.bottom = '-5px'; 290 } else if (Date.num == 1) { 291 document.getElementById(Date.id_c).style.bottom = '-385px'; 292 }else if(Date.num == 4){ 293 if(Date.id_c=='0')window.location.reload(); 294 else if(!isNaN(Date.id_c))window.history.go(Date.id_c); 295 else window.location.href=Date.id_c; 296 } 297}, false); 298 299function arrayPrototype(array,string) { 300 for (var i in array){ 301 if(i==string)return true; 302 } 303 return false; 304}
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.