Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\R7FFRLV1\index[1].js
//ajax/json cors??????? $.support.cors = true; if (typeof console == 'undefined') {window.console = {log: function () {}}} // 360<img src="./statics/assets/images/adtxt.png" alt="">???????? var Macro = {start: "__EVENT_TIME_START__", end: "__EVENT_TIME_END__", x: "__OFFSET_X__", y: "__OFFSET_Y__"}; //??? (function () { var common = { getUserId: function () { return (+new Date()) + Math.random().toString(10).substring(2, 6); }, GetQueryString: function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }, getIeVersion:function () { if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/8./i)=="8.") { return "IE8"; } else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/9./i)=="9.") { return "IE9" ; }else{ return "!IE" } }, recommend_uid:function(){ function gethash(s) { var m; if (s.indexOf('?') > 0) { var k = s.split('?')[1]; m = k.length; } else { m = 0; } return m; } var uid = function () { var d = (new Date() - 0); var s = window.location.href; var hash = gethash(s); uid = "" + d + hash + Math.random() + Math.random() + Math.random() + Math.random(); uid = uid.replace(/\./g, "").substring(0, 32); return uid; }; var ml = uid(); var cookie_uid = function () { $.cookie('cookie_uid_ad', ml, { expires: 30, path: '/', domain: 'news.7654.com' }); }; if (!$.cookie('cookie_uid_ad')) { uidm = ml; cookie_uid(ml); } else { uidm = $.cookie('cookie_uid_ad'); } return uidm; }, newDate:function(str){ var day = str.split(' '); var days = day[0].split('-'); var mi = day[day.length - 1].split(':'); var date = new Date(); date.setUTCFullYear(days[0], days[1] - 1, days[2]); date.setUTCHours(mi[0] - 8, mi[1], mi[2]); return date; }, }; window.Common = common; })(); //????????? var proConfig = { name: 'kuaiya', mini_name: '002', qid: {rewen:'k002',toutiao:'k002',shehui:'k002',yule:'k002',shipin:'k002',tiyu:'k002',qiche:'k002',junshi:'k002',yangsheng:'03062',youxi:'k002',guoji:'k002',shishang:'k002',lishi:'k002',keji:'k002',caijing:'k002',xiaohua:'k002'}, left_tab:{youxi:'???',yangsheng:'???',junshi:'???',qiche:'???',tiyu:'???',shipin:'???',yule:'???',shehui:'???',toutiao:'???'}, left_tab_more:{guoji:'???',shishang:'???',lishi:'???',keji:'???',caijing:'???',xiaohua:'???'}, loadUrl:{online_url1:'//miniapi.7654.com/mini/news/page_type/pn/abckantu/type/',hotUrl:'//news.7654.com/tpop4/miniapi/recommend.json', recommendUrl:'//miniapi.7654.com/mini/news/recommend'}, qid_index: {rewen:1,toutiao:1,shehui:1,yule:1,shipin:1,tiyu:1,qiche:1,junshi:1,yangsheng:1,youxi:1,guoji:1,shishang:1,lishi:1,keji:1,caijing:1,xiaohua:1}, message_flow_showId_first: true, hot_showId_first: true, top_right_showId_first: true, }; var user_uid = Common.getUserId(); var timer0510; $('.left_nav .nav_item').hover(function () { if ($(this).hasClass('hover')) { $(this).find('.more_nav').show() } var x = 0; var that = this; timer0510 = setInterval(function () { x++; if (x > 3) { clearInterval(timer0510) $('.left_nav .nav_item').removeClass('active'); $(that).addClass('active'); $('.left_nav .nav_item_part').removeClass('active'); var type = $(that).attr('date-type'); if (type) { var method = $(that).attr('method'); var first_view = $('.left_nav li:eq(0)').attr('method'); if (type != 'toutiao' && !first_view) { $('.left_nav li:eq(0)').attr('method', 'change_view'); } Mini[method] ? Mini[method]($(that), event) : ''; } } }, 100) }, function () { if ($(this).hasClass('hover')) { $(this).find('.more_nav').hide() } clearInterval(timer0510) }); $('body').on('mouseout', '.left_nav .nav_item:not(:last)', function () { window.current_index1 = $('.left_nav .active').index(); }); $('body').on('click', '.more_nav .nav_item_part', function () { var type = $(this).attr('date-type'); for (var i = 0; i < Mini.type_arr.length; i++) { if (type == Mini.type_arr[i]) { var flag = false; break; } else { var flag = true; } } Mini.type_arr.push(type); }); // ?????? ?????? $('body').on('mouseover', '.left_nav .nav_item_part', function () { $('.left_nav .nav_item_part').removeClass('active'); $('.left_nav .nav_item:not(:last)').removeClass('active'); $(this).addClass('active'); $('.left_nav .nav_item:last').addClass('active'); }); // ?????????????? ??ey1=???&key2=bbb?? function GetParams(temp, name) { var theRequest = new Object(); var strs = temp.split("&"); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]); } // ??? ???????????ey ?? value?? var result = theRequest[name] || null; return result; } function getUrlParamVal(name) { // ?????? URL????? var r = decodeURI(window.location.search); var arr1 = r.split("?"); arr1.shift(); var params = arr1.join("&"); var res = GetParams(params, name); return res; } $('body').on('mouseover', '.xxl_ad,iframe', function () { return false }); function Mini_page() { var obj = this; this.upload_time = 0; this.pgnum_bot = 1; this.pgnum_top = 0; this.startkey = ''; this.newkey = ''; this.uid = user_uid; this.vqid = getUrlParamVal('vqid') || ''; this.vv = getUrlParamVal('vv') || ''; this.vuid = getUrlParamVal('vuid') || ''; this.bool = true; this.getBaiDuAd = true; this.type = 'toutiao'; this.position = ""; this.logo = ''; this.l; this.adsid = 1; this.l1 = 0; this.l2 = 7; this.refresh_dev; this.refresh_tab; this.refresh_scroll; this.type_arr = []; this.bottomOutTime = 1; this.imptk360 = []; this.ad360data = []; this.ad360index = 0; this.adPosition = ['???', '???', '???', '???']; this.pos_pro = ''; this.pos_city = ''; if (typeof Mini_page.instance === 'object') { return Mini_page.instance; } this.instance = this; this.zhike_bool_0410 = true; this.pathname = window.location.pathname.slice(1, -1); } Mini_page.prototype = { // ???????? bindEvent: function () { var obj = this; obj.type_arr.push(obj.type); var urlhost; if(location.host == 'news.7654.com'){ urlhost ='prod/'+location.host+location.pathname.replace(/\//g,"."); }else{ urlhost = location.hostname==="localhost"?"test/test.gamma-minipage.news.7654.com.0109.":'test/'+location.host+location.pathname.replace(/\//g,"."); } $.ajax({ url:'http://ads.7654.com/'+urlhost+'json?t='+new Date().getTime(), // url:'http://ads.7654.com/test/test.gamma-minipage.news.7654.com.bz02.json', type:'get', dataType:'json', success:function(res){ proConfig.message_flow_showId="mkbLSB";//??? proConfig.top_right_showId="1tMPgz";//??? proConfig.top_right1_showId="Vk77OT";//??? proConfig.message_first_showId="6UJCbf";//??? proConfig.message_second_showId="f5R57h";//??? proConfig.title_showid="Q1fFva";//??? // proConfig.message_flow_showId="Mna5Zy";//??? // proConfig.top_right_showId="5ebnsN";//??? // proConfig.top_right1_showId="ddTNmU";//???2 // proConfig.message_first_showId="eQI5No";//???1 // proConfig.message_second_showId="MsRGL4";//??2 // proConfig.title_showid="UfK7CL";//??? $.ajax({ url:proConfig.loadUrl.recommendUrl, type: 'get', dataType: 'json', success: function (response) { var data = response.data.slice(0,6); var orderIndex = 1; //???????????? $.each(data, function (index, val) { val.indexOrder = orderIndex; orderIndex++; obj.render('.scroll_con', val, "append", 'show', true, false, 'pdata'); }); obj.addSkin(); $('.scroll_con').prepend('<div id="toast">????????6?????</div><div class="aa"></div><div class="bb"></div>'); $('#toast').addClass('hide_now'); setTimeout(function () {$('.scroll_con #toast').remove();}, 2000); setTimeout(function () { obj.get360Ad(1,function(res){ var adData=res[0] var dom1= '<div class="news_item iam360ad xxl_ad">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + // '<p><img src="./statics/assets/images/adtxt.png" alt=""></p>' + '</a>'+ '</div>'; $('.aa').html(dom1); url_scroll(res[0].imptk); upload($('.aa .img_click_gg'),'show')//???show??? },proConfig.message_first_showId,1) obj.get360Ad(1,function(res){ var adData=res[0] var dom = '<div class="news_item iam360ad xxl_ad big360">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '</a>'+ '</div>'; $('.bb').html(dom); url_scroll(res[0].imptk); upload($('.bb .img_click_gg'),'show')//???show??? },proConfig.message_second_showId,1) obj.get360Ad(obj.bottomOutTime, function (res) { var first_item_360bool_1 = true, first_item_360bool_2 = true; window.first_item_360bool_3 = true; window.first_item_360bool_4 = true; window.first_item_360bool_5 = true; window.first_item_360bool_6 = true; $.each(res, function (index, val) { obj.ad360data.push(val); obj.imptk360.push(val.imptk); }); if (res[0]) { obj.render360('.scroll_con .list_item:eq(0)', res[0], "after"); // url_scroll(res[0].imptk); upload($('.scroll_con .list_item:eq(1) .img_click_gg'),'show')//???show??? url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); $('.scroll_con .list_item:eq(1)').removeClass("exposure") } if (res[1]) { obj.render360('.scroll_con .list_item:eq(2)', res[1],"after"); } if (res[2]) { obj.render360('.scroll_con .list_item:eq(4)', res[2],"after"); } if (res[3]) { obj.render360('.scroll_con .list_item:eq(6)', res[3], "after"); } // var showRefreshBool = true; $(".content").on("scroll",function(event){ var _el = $(".exposure"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top <750) { _el.eq(0).removeClass("exposure"); if (obj.ad360data.length) { url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); } } } }) // $('.content').on('scroll', function (event) { // var SCROLL_TOP = $(this).scrollTop(); // console.log( $('.scroll_con .list_item:eq(4)').offset(),"444444444444444") // var thirdTop = $('.scroll_con .list_item:eq(4)').offset().top; // var fourththirdTop = $('.scroll_con .list_item:eq(6)').offset().top; // var fifthTop = $('.scroll_con .list_item:eq(8)').offset().top; // // var sixthTop = $('.scroll_con .list_item:eq(10)').offset().top; // if (thirdTop - 570 < 0 && window.first_item_360bool_3) { // window.first_item_360bool_3 = false; // if (obj.ad360data[2]) { // url_scroll(obj.ad360data[2].imptk); // } // } // if (fourththirdTop - 570 < 0 && window.first_item_360bool_4) { // $('#refresh').show(); // window.first_item_360bool_4 = false; // if (obj.ad360data[3]) { // url_scroll(obj.ad360data[3].imptk); // } // } // if (fifthTop - 570 < 0 && window.first_item_360bool_5) { // window.first_item_360bool_5 = false; // if (obj.ad360data[4]) { // url_scroll(obj.ad360data[4].imptk); // } // } // // if (sixthTop - 570 < 0 && window.first_item_360bool_6) { // // window.first_item_360bool_6 = false; // // if (obj.ad360data[5]) { // // url_scroll(obj.ad360data[5].imptk); // // } // // } // }); }, '', 4); }, 1000); }, error:function(){ $.ajax({ url:'//news.7654.com/tpop4/miniapi/recommend.json', type: 'get', dataType: 'json', success: function (response) { var data = response.data.slice(0,6); var orderIndex = 1; //???????????? $.each(data, function (index, val) { val.indexOrder = orderIndex; orderIndex++; obj.render('.scroll_con', val, "append", 'show', true, false, 'pdata'); }); $('.scroll_con').prepend('<div id="toast">????????6?????</div><div class="aa"></div><div class="bb"></div>'); $('#toast').addClass('hide_now'); setTimeout(function () {$('.scroll_con #toast').remove();}, 2000); setTimeout(function () { obj.get360Ad(1,function(res){ var adData=res[0] var dom1= '<div class="news_item iam360ad xxl_ad">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + // '<p><img src="./statics/assets/images/adtxt.png" alt=""></p>' + '</a>'+ '</div>'; $('.aa').html(dom1); url_scroll(res[0].imptk); upload($('.aa .img_click_gg'),'show')//???show??? },proConfig.message_first_showId,1) obj.get360Ad(1,function(res){ var adData=res[0] var dom = '<div class="news_item iam360ad xxl_ad big360">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '</a>'+ '</div>'; $('.bb').html(dom); url_scroll(res[0].imptk); upload($('.bb .img_click_gg'),'show')//???show??? },proConfig.message_second_showId,1) obj.get360Ad(obj.bottomOutTime, function (res) { var first_item_360bool_1 = true, first_item_360bool_2 = true; window.first_item_360bool_3 = true; window.first_item_360bool_4 = true; window.first_item_360bool_5 = true; window.first_item_360bool_6 = true; $.each(res, function (index, val) { obj.ad360data.push(val); obj.imptk360.push(val.imptk); }); if (res[0]) { obj.render360('.scroll_con .list_item:eq(0)', res[0], "after"); // url_scroll(res[0].imptk); upload($('.scroll_con .list_item:eq(1) .img_click_gg'),'show')//???show??? url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); $('.scroll_con .list_item:eq(1)').removeClass("exposure") } if (res[1]) { obj.render360('.scroll_con .list_item:eq(2)', res[1],"after"); } if (res[2]) { obj.render360('.scroll_con .list_item:eq(4)', res[2],"after"); } if (res[3]) { obj.render360('.scroll_con .list_item:eq(6)', res[3], "after"); } // var showRefreshBool = true; $(".content").on("scroll",function(event){ var _el = $(".exposure"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top <750) { _el.eq(0).removeClass("exposure"); if (obj.ad360data.length) { url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); } } } }) }, '', 4); }, 1000); }, error:function(){} }); } }); //??? obj.get360Ad(1,function(res){ if(res[0]){ $('.right_pannel .showcase:eq(0)').html('<div class="right360ad xxl_ad">' + '<a href="' + res[0].curl + '" class="img_click_gg right1" position-tag="m_rightTop" position-ad="advertisement_ad360" data-clktk="' + res[0].clktk + '" data-oldcurl="' + res[0].curl + '" data-oldclktk="' + res[0].clktk + '" target="_blank" updata="' + obj.pathname + '|rightup|360gg|1">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span><img src="./statics/assets/images/adtxt.png" alt=""></span>' + '</a>' + '</div>') url_scroll(res[0].imptk); upload($('.right_pannel .showcase:eq(0) .img_click_gg' ),'show')//???show??? } },proConfig.top_right_showId,1) obj.get360Ad(1,function(res){ if(res[0]){ $('.right_pannel .showcase:eq(1)').html('<div class="right360ad xxl_ad">' + '<a href="' + res[0].curl + '" class="img_click_gg right2" position-tag="m_rightTop" position-ad="advertisement_ad360" data-clktk="' + res[0].clktk + '" data-oldcurl="' + res[0].curl + '" data-oldclktk="' + res[0].clktk + '" target="_blank" updata="' + obj.pathname + '|rightup|360gg|1">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span><img src="./statics/assets/images/adtxt.png" alt=""></span>' + '</a>' + '</div>') url_scroll(res[0].imptk); } },proConfig.top_right1_showId,1) //??? obj.renderNovel(function(list){ var dom1='<a style="display:block;" class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' +list[0].url + '?qid=k002&_1_???1" target="_blank" ><img src="' +list[0].img[0]+ '" alt="" />'+ '<p>' + list[0].title.substring(0,10) + '</p><div class="rightBack"></div>'+ '<p class="slide_title">' + list[0].title.substring(10,16) + '</p><div class="rightBack rightBack2"></div>'+ '</a>' var dom2='<a style="display:block;" class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' +list[1].url + '?qid=k002&_1_???1" target="_blank" ><img src="' +list[1].img[0]+ '" alt="" />'+ '<p>' + list[1].title.substring(0,10) + '</p><div class="rightBack"></div>'+ '<p class="slide_title">' + list[1].title.substring(10,16) + '</p><div class="rightBack rightBack2"></div>'+ '</a>' $(".swiper-wrapper .adCase").html(dom1) $(".swiper-wrapper .adCase1").html(dom2) var mySwiper = new Swiper('.swiper-container',{ autoplay : false, loop:true, autoplayDisableOnInteraction: false, }) $('.leftBtn').click(function(){ mySwiper.swipePrev(); }) $('.rightBtn').click(function(){ mySwiper.swipeNext(); }) }) $(".swiper-container").hover(function(){ $(".arrow").show(); },function(){ $(".arrow").hide(); }) } }) var _clktk, _curl, start_time, end_time; //?????-1 function mouseDownMacro(el, x, y) { start_time = Math.round(new Date()); _clktk = el.data('oldclktk'); _curl = el.data("oldcurl"); if (_clktk.indexOf(Macro["start"]) > -1) { _clktk = _clktk.replace(Macro["start"], start_time); } if (_clktk.indexOf(Macro["x"]) > -1) { _clktk = _clktk.replace(Macro["x"], x); } if (_clktk.indexOf(Macro["y"]) > -1) { _clktk = _clktk.replace(Macro["y"], y); } if (_curl.indexOf(Macro["start"]) > -1) { _curl = _curl.replace(Macro["start"], start_time); } if (_curl.indexOf(Macro["x"]) > -1) { _curl = _curl.replace(Macro["x"], x); } if (_curl.indexOf(Macro["y"]) > -1) { _curl = _curl.replace(Macro["y"], y); } el.attr('data-clktk', _clktk); el.attr('href', _curl); } //?????-2 function mouseUpMacro(el) { end_time = Math.round(new Date()); _curl = el.attr("href"); if (_clktk.indexOf(Macro["end"]) > -1) { _clktk = _clktk.replace(Macro["end"], end_time); } if (_curl.indexOf(Macro["end"]) > -1) { _curl = _curl.replace(Macro["end"], end_time); } el.attr('data-clktk', _clktk); el.attr('href', _curl); } /*360???*/ var url_scroll = function (arr) { $.each(arr, function (index, val) { $('body').append('<iframe src="' + val + '" style="display: none;"></iframe>'); }); }; /*360??????*/ $('body').on('mousedown', '.img_click_gg', function (e) { var target = $(this).parents(".ima360ad_more").length>0?$(this).parents(".ima360ad_more"):$(this); var x = Math.floor(e.pageX - target.offset().left), y = Math.floor(e.pageY - target.offset().top); x=x<0?0:x; y=y<0?0:y; mouseDownMacro($(this), x, y); }).on('click', '.img_click_gg', function () { upload($(this)[0],'click'); mouseUpMacro($(this)); var str = $(this).attr('data-clktk'); if (str) { var arr = str.split(','); $.each(arr, function (index, val) { $('body').append('<iframe src="' + val + '" style="display: none;"></iframe>'); }); } }); $("body").on('click','.news_click_gg',function(){ upload($(this)[0],'click'); }) $('body').on('click', '.click_event', function (event) { var method = $(this).attr('method'); obj[method] ? obj[method]($(this), event) : ''; }); $('.content').on('scroll', function (event) { var SCROLL_TOP = $(this).scrollTop(); var CLIENT_HEIGHT = 590; var TOTAL_HEIGHT = $('.scroll_con').height() - $('.scroll_con .list_item:last').height(); if (SCROLL_TOP + CLIENT_HEIGHT >= TOTAL_HEIGHT && obj.bool && TOTAL_HEIGHT != 0) { obj.imptk360 = []; obj.bool = false; obj.pgnum_bot++; obj.bottomOutTime++; var params = { type: obj.type, startkey: obj.startkey, newkey: obj.newkey, pgnum: obj.pgnum_bot, uid: user_uid, qid: 'k002', pos_pro: encodeURIComponent(obj.pos_pro), pos_city: encodeURIComponent(obj.pos_city), position: encodeURIComponent(obj.position), domain: 'news.7654.com' }; obj.refresh_scroll = true; obj.fetch_data(params); } }); }, // ?????????????? fetch_data: function (params, btn) { var loading_dom = '<div class="loading_ajax"><div></div><div></div><div></div><span>?????????</span></div>'; $('.content').prepend(loading_dom); var obj = this; var online_url1 = proConfig.loadUrl.online_url1; var online_url2 = proConfig.loadUrl.online_url2; if (obj.refresh_dev) { var pgnum = obj.pgnum_top++ online_url = online_url2 + params.type + '/page/' + pgnum } if (obj.refresh_scroll || obj.refresh_tab) { online_url = online_url1 + params.type + '/page/' + params.pgnum } $.ajax({ url: online_url, type: 'get', dataType: 'json', error: function () { fetch_data(null); }, success: function (res) { if (res.code == 0) { proConfig.message_flow_showId_first =true; //tab??? if (obj.refresh_tab) { obj.refresh_tab = false obj.l1 = 6; obj.l2 = 7; var oType = btn.attr('date-type'); var orderIndex = 10; $.each(res.data, function (index, val) { val.indexOrder = orderIndex; orderIndex--; obj.render('.scroll_con.' + oType, val, "prepend", "no_show", false, true); }); $('.scroll_con').prepend('<div id="toast">????????6?????</div>'); $('#toast').addClass('hide_now'); setTimeout(function () { $('.scroll_con #toast').remove(); }, 2000); setTimeout(function () { obj.get360Ad(obj.bottomOutTime, function (res) { var first_item_360bool_1 = true, first_item_360bool_2 = true; $.each(res, function (index, val) { obj.ad360data.push(val); obj.imptk360.push(val.imptk); }); if (res[0]) { obj.render360('.scroll_con.' + oType + ' .list_item:eq(0)', res[0], 1); var _el = $(".exposure"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top <750) { _el.eq(0).removeClass("exposure"); if (obj.ad360data.length) { url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); } } } } if (res[1]) { if (res[1].type ==3) { obj.renderBig360('.scroll_con.' + oType + ' .list_item:eq(2)', res[1], 3); }else { obj.render360('.scroll_con.' + oType + ' .list_item:eq(2)', res[1], 3); } var _el = $(".exposure"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top <750) { _el.eq(0).removeClass("exposure"); if (obj.ad360data.length) { url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); } } } } if (res[2]) { obj.render360('.scroll_con.' + oType + ' .list_item:eq(4)', res[2] , 5); // if ($('.scroll_con.' + oType + ' .list_item:eq(4)').offset()) { // var nowTop = $('.scroll_con.' + oType + ' .list_item:eq(4)').offset().top; // } // if (nowTop < 570 && window.first_item_360bool_3) { // url_scroll(res[2].imptk); // window.first_item_360bool_3 = false; // } var _el = $(".exposure"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top <750) { _el.eq(0).removeClass("exposure"); if (obj.ad360data.length) { url_scroll(obj.ad360data[0].imptk); obj.ad360data.shift(); } } } } if (res[3]) { obj.render360('.scroll_con.' + oType + ' .list_item:eq(6)', res[3], 7); } if (res[4]) { obj.render360('.scroll_con.' + oType + ' .list_item:eq(8)', res[4], 9); } if (res[5]) { obj.render360('.scroll_con.' + oType + ' .list_item:eq(10)', res[5], 11); } var showRefreshBool = true; }, '', 6); }, 1000) $('.content').css({'scrollTop': '0'}); } // ?????? if (obj.refresh_scroll) { obj.refresh_scroll = false var list_len = $('.scroll_con .list_item').length; $.each(res.data, function (index, val) { val.indexOrder = proConfig.qid_index[obj.type] + 10; proConfig.qid_index[obj.type]++; obj.render('.scroll_con', val, "append", "no_show", true, false, 'pdata'); }); obj.get360Ad(obj.bottomOutTime, function (res) { var item_360bool_1 = true, item_360bool_2 = true, item_360bool_3 = true; $.each(res, function (index, val) { obj.imptk360.push(val.imptk); }); if (res[0]) { if(res[0].type==4){ obj.renderVideo360('.scroll_con .list_item:eq(' + (list_len + 2) + ')', res[0], list_len + 2); }else{ obj.render360('.scroll_con .list_item:eq(' + (list_len + 2) + ')', res[0], list_len + 2); } } if (res[1]) { if(res[1].type==4){ obj.renderVideo360('.scroll_con .list_item:eq(' + (list_len + 6) + ')', res[1],list_len + 6); }else{ obj.render360('.scroll_con .list_item:eq(' + (list_len + 6) + ')', res[1],list_len + 6); } } if (res[2]) { if(res[2].type==4){ obj.renderVideo360('.scroll_con .list_item:eq(' + (list_len + 10) + ')', res[2],list_len + 10); }else{ obj.render360('.scroll_con .list_item:eq(' + (list_len + 10) + ')', res[2],list_len + 10); } } var list_360item_h_1 = $('.scroll_con').outerHeight() - $('.scroll_con .list_item:nth-last-child(1)').outerHeight() - $('.scroll_con .list_item:nth-last-child(2)').outerHeight() - $('.scroll_con .list_item:nth-last-child(3)').outerHeight() - $('.scroll_con .list_item:nth-last-child(4)').outerHeight() - $('.scroll_con .list_item:nth-last-child(5)').outerHeight() - $('.scroll_con .list_item:nth-last-child(6)').outerHeight() - $('.scroll_con .list_item:nth-last-child(7)').outerHeight() - $('.scroll_con .list_item:nth-last-child(8)').outerHeight() - $('.scroll_con .list_item:nth-last-child(9)').outerHeight() - $('.scroll_con .list_item:nth-last-child(10)').outerHeight() - $('.scroll_con .list_item:nth-last-child(11)').outerHeight(); var list_360item_h_2 = $('.scroll_con').outerHeight() - $('.scroll_con .list_item:nth-last-child(1)').outerHeight() - $('.scroll_con .list_item:nth-last-child(2)').outerHeight() - $('.scroll_con .list_item:nth-last-child(3)').outerHeight() - $('.scroll_con .list_item:nth-last-child(4)').outerHeight() - $('.scroll_con .list_item:nth-last-child(5)').outerHeight() - $('.scroll_con .list_item:nth-last-child(6)').outerHeight() - $('.scroll_con .list_item:nth-last-child(7)').outerHeight() var list_360item_h_3 = $('.scroll_con').outerHeight() - $('.scroll_con .list_item:nth-last-child(1)').outerHeight() - $('.scroll_con .list_item:nth-last-child(2)').outerHeight() - $('.scroll_con .list_item:nth-last-child(3)').outerHeight() $('.content').on('scroll', function (event) { var SCROLL_TOP = $(this).scrollTop(); if (570 + SCROLL_TOP > list_360item_h_1 && item_360bool_1) { item_360bool_1 = false; if (obj.imptk360[0]) { url_scroll(obj.imptk360[0]); } } if (570 + SCROLL_TOP > list_360item_h_2 && item_360bool_2) { item_360bool_2 = false; if (obj.imptk360[1]) { url_scroll(obj.imptk360[1]); } } if (570 + SCROLL_TOP > list_360item_h_3 && item_360bool_3) { item_360bool_3 = false; if (obj.imptk360[1]) { url_scroll(obj.imptk360[2]); } } }); obj.bool = true; }) } } else { alert('Sorry, ' + res.info); } $('.loading_ajax').remove(); } }); }, // ?????360<img src="./statics/assets/images/adtxt.png" alt="">??? get360Ad: function (reqtime, callback, showId, num) { var recommend_url = '//show.g.mediav.com/s', // var recommend_url = '//ad-test.mediav.com/s', recommend_type = 1, recommend_of = 4, reqtimes = reqtime || 1, recommend_newf = 1, recommend_showid = showId || proConfig.message_flow_showId, tck = Common.GetQueryString("tck"), recommend_adnum = num || 3, recommendk_uid =Common.recommend_uid(), recommend_refurl=encodeURIComponent(document.referrer), recommend_param; tck = tck ? '&tck='+ tck:''; if (document.location.protocol == "https:") { recommend_param = 'https://show-g.mediav.com/s' + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&scheme=https&showid=' + recommend_showid + '&uid=' + recommendk_uid + '&impct=' + recommend_adnum + '&reqtimes=' + reqtimes + tck+'&refurl='+recommend_refurl; } else { recommend_param = recommend_url + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&showid=' + recommend_showid + '&uid=' + recommendk_uid + '&impct=' + recommend_adnum + '&reqtimes=' + reqtimes + tck+'&refurl='+recommend_refurl; } $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { if(!data.ads){ if(proConfig.message_flow_showId_first && proConfig.message_flow_showId == recommend_showid){ proConfig.message_flow_showId_first = false; $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { var d = data.ads || []; callback && callback(d); var pso ={ timestamp: new Date().getTime(), project: location.pathname, action:"show", p1:'messageFlow', p2: recommend_showid, p3: !data.ads ? "error": "success", p4:"null" }; upload2(pso); }, error: function () {callback(null);} }) }else if(proConfig.top_right_showId_first &&proConfig.top_right_showId == recommend_showid){ proConfig.top_right_showId_first = false; $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { var d = data.ads || []; callback && callback(d); var pso ={ timestamp: new Date().getTime(), project: location.pathname, action:"show", p1:'topRight', p2: recommend_showid, p3: !data.ads ? "error": "success", p4:"null" }; upload2(pso); }, error: function () {callback(null);} }) }else if(proConfig.hot_showId_first&& proConfig.hot_showId == recommend_showid){ proConfig.hot_showId_first = false; $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { var d = data.ads || []; callback && callback(d); var pso ={ timestamp: new Date().getTime(), project: location.pathname, action:"show", p1:'hotNews', p2: recommend_showid, p3: !data.ads ? "error": "success", p4:"null" }; upload2(pso); } }) } }else{ var d = data.ads || []; callback && callback(d); } }, error: function () {callback(null);} }) }, // ?????? render: function (target_dom, content, render_way, show_type, flag1, flag2, updata) { var obj = this; if (flag1) { obj.l1++; if (obj.l1 > 100) { obj.l1 = 101; } obj.l = obj.l1; } if (flag2) { obj.l2--; obj.l = obj.l2; } var myQId = proConfig.qid[obj.type]; var dom = '', author_info = '', type_dom = '', important_href = '?qid=' + myQId , point_dom = ''; if ( content.url.indexOf('www.lieqinews.com') > -1) { important_href = ''; } if (obj.type == "toutiao" || obj.type == "redian") { point_dom = '<em>?</em>'; } obj.logo = obj.type; if (obj.type == 'redian') { obj.logo = 'toutiao2' } if (content.dfh_nickname) { author_info = point_dom + '<span class="author">' + content.dfh_nickname + '</span>'; } else { author_info = ''; } type_dom = '<span class="news_type">' + content.source + '</span>'; if (obj.vuid) { important_href += "&vuid=" + obj.vuid; } if (obj.vv) { important_href += "&vv=" + obj.vv; } if (obj.vqid) { important_href += "&vqid=" + obj.vqid; } //???????mportant_href var commonObj = $.extend(proConfig.left_tab,proConfig.left_tab_more); important_href += "&_"+content.indexOrder+"_"+commonObj[obj.type]+"1"; var url = content.url.split('?qid')[0]; var pda = updata === 'updata'?'updata':'pdata'; if (content.img_size == 3 || content.img_size == 4) { var more_imgs = ''; var should_reduce_h = ''; if (content.img.length == 4) { $.each(content.img, function (index, val) { if(val.indexOf('://') > -1){ val = '//' + val.split('://')[1]; } more_imgs += '<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="' + content.url + important_href + '" ' + pda + '="' + url + '|0|' + obj.logo + '|' + obj.l + '|pic" target="_blank"><img src="' + val + '" alt=""></a>'; }); } else { $.each(content.img, function (index, val) { if(val.indexOf('://') > -1){ val = '//' + val.split('://')[1]; } more_imgs += '<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="' + content.url + important_href + '" ' + pda + '="' + url + '|0|' + obj.logo + '|' + obj.l + '|pic" target="_blank"><img src="' + val + '" alt=""></a>'; }); more_imgs += '<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="' + content.url + important_href + '" target="_blank"><span>??????>></span></a>' } dom = '<div class="mid_news_item list_item' + should_reduce_h + '">' + '<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="' + content.url + important_href + '" ' + pda + '="' + url + '|0|' + obj.logo + '|' + obj.l + '|pic" target="_blank">' + '<h3 title="' + content.title + '">' + content.title + '</h3>' + '<p>' + type_dom + author_info + '</em></p>' + '</a>' + '<div class="img_con">' + more_imgs + '</div>' + '</div>'; } else { if(content.img[0] && content.img[0].indexOf('://') > -1){ content.img[0] = '//' + content.img[0].split('://')[1]; } dom = '<div class="news_item list_item">' + '<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="' + content.url + important_href + '" ' + pda + '="' + url + '|0|' + obj.logo + '|' + obj.l + '|pic" target="_blank">' + '<div><img src="' + content.img[0] + '" alt=""></div>' + '<h3 title="' + content.title + '">' + content.title + '</h3>' + '<p>' + content.source + '</em></p>' + '</a>' + '</div>'; }; if (render_way == 'prepend') { $(target_dom).prepend(dom); } else { $(target_dom).append(dom); } // pdata.init(); }, //????????? renderTopnews:function(target_dom,adData){ var dom='<div class="right360ad xxl_ad">' + '<a href="' + adData.url + '" target="_blank">' + '<div><img src="' + adData.img + '" alt=""></div>' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + '<div class="rightBack"></div>' + '</a>' + '</div>'; $(target_dom).append(dom) }, //????????? renderBottomnews:function(target_dom,adData){ var dom='<a href="' + adData.url + '" target="_blank" ><div><img src="' + adData.img+ '" alt=""></div><p>' + adData.title + '</p></a>'; $(target_dom).append(dom) }, //?????? renderNovel:function(callback,num){ $.ajax({ url:proConfig.loadUrl.hotUrl, type:'GET', dataType:'json', success:function(res){ var d=res.data.slice(0,2); callback&&callback(d) } }) }, //360?????? renderBig360: function (target_dom, adData,render_way) { this.ad360index++; var dom = '<div class="news_item list_item iam360ad xxl_ad big360 exposure">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '</a>' + '</div>'; if (render_way == 'after') { $(target_dom).after(dom); } else { $(target_dom).before(dom); } }, // 360<img src="./statics/assets/images/adtxt.png" alt="">????? render360: function (target_dom, adData, render360_way) { this.ad360index++; if (adData.type == 2) { var more_imgs = ''; $.each(adData.assets, function (i, v) { more_imgs += '<div class="more_img"><a class="img_click_gg innerImg" position-tag="messageFlow" position-ad="advertisement_ad360" href="' + v.curl + '" data-clktk="' + adData.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" style="height:70px;display:inline-block;"><img src="' + v.img + '" alt=""></a></div>' }) var dom = '<div class="news_item list_item iam360ad xxl_ad ima360ad_more exposure">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + '</a>' + '<div class="img_con">' + more_imgs + '<span class="news_big" style="right:18px;"></span></div>' + // '<p><span class="news_type"><img src="./statics/assets/images/adtxt.png" alt=""></span><em>?</em><span class="author">' + adData.src + '</span></p>' + '</div>'; } else { var dom = '<div class="news_item list_item iam360ad xxl_ad exposure">' + '<a href="' + adData.curl + '" class="img_click_gg" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + adData.clktk + '" data-oldcurl="' + adData.curl + '" data-oldclktk="' + adData.clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<div><img src="' + adData.img + '" alt=""><span class="news_big"></span></div>' + '<h3 title="' + adData.title + '">' + adData.title + '</h3>' + // '<p><img src="./statics/assets/images/adtxt.png" alt=""></p>' + '</a>' + '</div>'; } if (render360_way == 'after') { $(target_dom).after(dom); } else { $(target_dom).before(dom); } }, // tab??? change_view: function (btn) { this.ad360data = []; this.ad360index = 0; this.bottomOutTime = 1; window.first_item_360bool_3 = true; window.first_item_360bool_4 = true; window.first_item_360bool_5 = true; window.first_item_360bool_6 = true; if (btn.hasClass('nav_item')) { if (btn.index() == window.current_index1) { return } } else { if (btn.attr('click_time') == 1) { $('.more_nav .nav_item_part').attr('click_time', ''); return } } $('.content').scrollTop(0); this.startkey = ''; this.newkey = ''; var obj = this; this.bool = true; this.pgnum_bot = 1; this.pgnum_top = 1; var oType = btn.attr('date-type'); if (oType === 'lieqi') { $('#refresh').hide(); } else { $('#refresh').show(); } this.type = oType; this.bottomOutTime = 1; proConfig.qid_index[oType]= 1; var params = { type: oType, startkey: obj.startkey, newkey: obj.newkey, pgnum: obj.pgnum_bot, uid: user_uid, qid: 'k002', // pos_pro: encodeURIComponent(obj.pos_pro), // pos_city: encodeURIComponent(obj.pos_city), // position: encodeURIComponent(obj.position), // domain: 'news.7654.com' }; $('.scroll_con').html("").attr('class', 'scroll_con ' + oType); obj.refresh_tab = true; obj.fetch_data(params, btn); }, addSkin: function () { var _this = this; var screen_h = Common.GetQueryString("screen_h")*1||600; var skin_h = 160; var ad_h = $("#container").height(); var is_show = (skin_h + ad_h + 42 + 40) <=screen_h; if (is_show) { // swpiw 1????????? $('head').append('<meta page_size="900,760">'); } else { $('head').append('<meta page_size="900,600">'); } is_show&&$("#skin_360_container").show(); is_show&&this.get360Ad(1,function (res) { if (!res||res.length<=0) return; var data = JSON.parse(JSON.stringify(res)); data[0].type = "skin"; var dom= '<a href="' + data[0].curl + '" class="img_click_gg" position-tag="top" position-ad="advertisement_ad360" data-clktk="' + data[0].clktk + '" data-oldcurl="' + data[0].curl + '" data-oldclktk="' + data[0].clktk + '" target="_blank" updata="' + this.pathname + '|' + this.type + '|xxl360gg|' + this.ad360index + '">' + '<div class="skin_img"><img src="' + data[0].img + '" alt=""></div>' + '<h3 class="skin_title">' + data[0].title + '</h3><img class="skin_ad" src="./statics/assets/images/adtxt.png" alt="">' + '</a>' $("#skin_360_container").html(dom); url_scroll(data[0].imptk); upload($("#skin_360_container .img_click_gg")[0], 'show');//???show??? $("#skin_360_container").addClass("skin_"+data[0].imgw); },proConfig.title_showid,1); }, getSkinData: function (showId,callback) { var recommend_type = 1, recommend_of = 4, // reqtimes = reqtime || 1, recommend_newf = 2, recommend_showid = showId, tck = Common.GetQueryString("tck"), // recommend_adnum = 3, recommendk_uid = Common.recommend_uid(), recommend_refurl = encodeURIComponent(document.referrer), recommend_param; tck = tck ? '&tck=' + tck : ''; // tck = ''; if (document.location.protocol == "https:") { recommend_param = 'https://show-g.mediav.com/s' + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&scheme=https&showids=' + recommend_showid + '&uid=' + recommendk_uid + tck + '&refurl=' + recommend_refurl; } else { recommend_param = 'http://show.g.mediav.com/s' + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&showids=' + recommend_showid + '&uid=' + recommendk_uid + tck + '&refurl=' + recommend_refurl; } $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { if (!data.adspaces) { $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { if(!$.isEmptyObject(data)){ var d = data.adspaces[showId].ads || []; callback && callback(d); }else{ callback && callback([]); } }, error: function () { callback(null); } }) } else { var d = data.adspaces[showId].ads || []; callback && callback(d); } }, error: function () { callback(null); } }) }, }; // <img src="./statics/assets/images/adtxt.png" alt="">uid /*360???*/ var url_scroll = function (arr) { $.each(arr, function (index, val) { $('body').append('<iframe src="' + val + '" style="display: none;"></iframe>'); }); } var Mini = new Mini_page(); Mini.bindEvent(); function showPop(showTime,showUrl,showKey,blockArea) { var nowTime = new Date().getTime(); if (nowTime > Common.newDate(showTime[0]).getTime() && nowTime < Common.newDate(showTime[1]).getTime()) { $.ajax({ url: '//iplocation.7654.com/v1', type: 'get', dataType: 'json', success: function (data) { var canPop = true; for(var i=0;i < blockArea.length;i++){ if(data.city.indexOf(blockArea[i]) >-1){ canPop = false; break; } } if (canPop) { if(!$.cookie(showKey)){ $.cookie(showKey, showKey, {expires: 30, path: '/'}); window.open(showUrl); } } } }); } } showPop(["2020-06-15 20:00:00", "2020-06-15 23:59:59"],"https://s.click.taobao.com/Rrusxzu","showDouble_0109_1",["???","???","???","???","???"]); showPop(["2020-06-16 00:00:00", "2020-06-16 23:59:59"],"https://s.click.taobao.com/Rrusxzu","showDouble_0109_2",["???","???","???","???","???"]); function upload(target,actType) { $.getJSON("//ad.kuaizip.com/advertise/userclick", { time: new Date().getTime(), localUrl: $.base64.encode("kZip.com" + location.pathname), project: $.base64.encode("mininews_ys001"), position:$.base64.encode($(target).attr('position-tag')), qid:$.base64.encode(Common.GetQueryString('qid')), env:$.base64.encode(Common.GetQueryString('env')), uid:$.base64.encode(Common.GetQueryString('uid') || "none"), act:$.base64.encode(actType), type:$.base64.encode($(target).attr("position-ad")), }).done(function(data) {}); } function upload2(e) { $.getJSON("//360adreport.news.7654.com/advertise/ssp", { timestamp: new Date().getTime(), project: e.project,//?????? location.pathname action: e.action,//????????? 'show' p1:e.p1,// position:{ messageFlow/topRight/hotNews} p2:e.p2,// showId:?????? showId p3:e.p3,// ???????????? data.ads ???????? success ?????? error p4:"mini" // ???????????? "" }).done(function(data) {}); } $(document).ready(function () { if (typeof (external.WebFinished) != 'undefined') { external.WebFinished(); } });
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de