Y.pcpusher = typeof Y.pcpusher === "undefined" ? true : Y.pcpusher; //默认显示 Y.returntop = true; $(function () { if (!Y.isLoadByPartner) { require(["prober"], function (prober) { setTimeout(function () { var n = "pc, mac"; if (n.indexOf(prober.device.name) !== -1) { if (Y.returntop) { require(['modules/yinyuetai/returntop']); } // if (Y.pcpusher) { // require(['modules/yinyuetai/pcpusher']); // } } }, 1500) }); } }) if (!window.UA_Opt) { var UA_Opt = new Object; UA_Opt.SendMethod = 1; UA_Opt.FormId = "loginBoxForm"; UA_Opt.ExTarget = ['password']; window[UA_Opt.LogVal] = ""; UA_Opt.Token = new Date().getTime() + ":" + Math.random(); UA_Opt.MaxMCLog = 50; UA_Opt.MaxKSLog = 50; UA_Opt.MaxMPLog = 50; UA_Opt.MaxTCLog = 50; UA_Opt.MaxFocusLog = 50; UA_Opt.Flag = 1965567; } function setShareContent(obj) { var ua = window.navigator.userAgent.toLowerCase(); try { if (ua.indexOf("android") > 0) { window.jsObj.setShareContent(JSON.stringify(obj)); } else if (ua.indexOf("iphone") > 0) { //iphone需要延迟一秒才能收到消息,原因不明 setTimeout(function () { obj.type = "setShareContent"; iosSendMessage(obj); }, 1000); } } catch (e) { } } Y.siteName = "www"; var ua = window.navigator.userAgent.toLowerCase(); if (ua.indexOf("iphone") > 0 || ua.indexOf("android") > 0) { window.location.href = "http://m.yinyuetai.com" + window.location.search; }

if (!Y.isLoadByPartner) { require(['modules/yinyuetai/topbar2']); }

热播推荐

换一换

猜你喜欢

(登录后猜的更准哟)

换一换
$.ajax({ url : '//api.yinyuetai.com/api/partner/check-ext', dataType : 'jsonp', cache : 'false', timeout : 2000, success : function(result) { if (!result.error) { if (!result.ext) { commonStats(); } } }, error : function(XMLHttpRequest, textStatus, errorThrown) { commonStats(); } }); function commonStats() { (function() { var urls = new Array(); urls.push("//log.collect.yinyuetai.com/view-log?referUrl=" + document.referrer); urls.push("//log.collect.yinyuetai.com/page?referUrl=" + document.referrer); for (var i = 0, len = urls.length; i < len; i++) { var url = urls[i]; if (url.indexOf("?") < 0) url += "?" + (new Date()).getTime(); else url += "&" + (new Date()).getTime(); $('body').prepend(''); } })(); (function(G, D, s, c, p) { c = { UA : "UA-yinyuetai-000001", NO_FLS : 0, WITH_REF : 1, URL : "http://s.c.yinyuetai.com/201803271438/js/utils/iwt-min-yyt.js" }; G._iwt ? G._iwt.track(c, p) : (G._iwtTQ = G._iwtTQ || []).push([c, p]), !G._iwtLoading && lo(); function lo(t) { G._iwtLoading = 1; s = D.createElement("script"); s.src = c.URL; t = D.getElementsByTagName("script"); t = t[t.length - 1]; t.parentNode.insertBefore(s, t); } })(this, document); (function() { var e = document.createElement("script"); var s = document.getElementsByTagName("script")[0]; e.src = "http://s4.cnzz.com/stat.php?id=1330456&web_id=1330456"; e.async = true; s.parentNode.insertBefore(e, s); })(); } // (function() { // var csid = "F09828"; // var bpid = "yinyuetai"; // var e = document.createElement("script"); // var s = document.getElementsByTagName("script")[0]; // e.src = "//js.revsci.net/gateway/gw.js?auto=t&csid=" + csid + "&bpid=" + bpid; // e.async = true; // s.parentNode.insertBefore(e, s); // })(); window.YYTrev = "###revision###"; window.YYThostName = "BGP-LF-1RS1121"; window.YYTrequestStart = "1523240946915"; window.YYTrequestEnd = "1523240946927"; var uid1 = "aIJVT2jSOaO1geMJnoeDGuud"; var uid = null; var tid = null;// 广告系统用户id try { uid = Y.Cookie.get("yinyuetai_uid"); tid = Y.Cookie.get("tid"); if (uid == null) { uid = uid1; } if (tid == null) { tid = uid1; } var ref = document.referrer || ""; var urls = []; var herf = encodeURIComponent(location.href); var refer = encodeURIComponent(ref); urls.push("//cm.admaster.com.cn/?tid=1635&type=1&uid=" + uid + "&loc=" + herf + "&ref=" + refer); urls.push("//cm.admaster.com.cn/?tid=1635&type=1&uid=" + tid + "&loc=" + herf + "&ref=" + refer); urls.push("http://api.yinyuetai.com/api/callback/cm-xtgreat?xtid=fYM5f006D350&mzid=fYM5f006D350"); if (uid != null && uid.length > 0) { for (var i = 0; i < urls.length; i++) { var url = urls[i]; if (url.indexOf("?") < 0) url += "?" + (new Date()).getTime(); else url += "&" + (new Date()).getTime(); $('body').prepend(''); } } } catch (ex) { } (function() { var urls = window.TRACK_SHOW; if (!urls || !urls.push) { urls = []; } for (var i = 0, len = urls.length; i < len; i++) { var url = urls[i]; if (url.indexOf("?") < 0) url += "?" + (new Date()).getTime(); else url += "&" + (new Date()).getTime(); $('body').prepend(''); } })(); var cookie = document.cookie; var isAd = readCookie("isAd")==='true'; if(!isAd){ $(".promotion-box").show(); createCookie("isAd", 'true',1); }else{ $(".promotion-box").hide(); } $(".investigation").on("click",".pc-close",function(){ $(".investigation").hide(); }) require(["app/www/index_new"], function(app) { app.init(); }); //加载首页霸屏广告 // require(["app/www/ad_screen"], function(app) { // app.init(); // }); require(['yytStatis'], function(yytStatis) { yytStatis.init(); }); function createCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + value + expires + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }