Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\GIXBQWJ6\new[1].js
$.support.cors = true; if (typeof console == 'undefined') {window.console = {log: function () {}}} var config={ loadUrl:{// ?????? online_url:'//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', loadbaseUrl:'//miniapi.7654.com/mini/news/recommend', }, tab_type:"toutiao",// tab??? pageNum:1,//??? render_flag:true, qid: {rewen:'k002',toutiao:'kuaiya07',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:'???'}, imptkArr:[], miniRight1:'kuaiya_miniright_1', miniRight2:'kuaiya_miniright_2', miniRight3:'kuaiya_miniright_3', miniQid:'kuaizip', count:"", page:1, getArr:[] } // tab??? 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'); var type = $(that).attr('date-type'); if(type){ config.tab_type=type; $('.scroll_con').html("").attr('class', 'scroll_con ' + type); config.page=1; config.pageNum=1; config.imptkArr=[]; renderNews(type,config.pageNum) } } }, 100) }, function () { if ($(this).hasClass('hover')) { $(this).find('.more_nav').hide() } clearInterval(timer0510) }); $('body').on('click', '.more_nav .nav_item_part', function () { var type = $(this).attr('date-type'); //??? if(type){ config.tab_type=type; $('.scroll_con').html("").attr('class', 'scroll_con ' + type); config.page=1; config.pageNum=1; config.imptkArr=[]; renderNews(type,config.pageNum) } }); upstar(function(res){ if(res){ config.message_flow_showId=res.l;//??? config.right_top_showid=res.rt;//??? config.right_bottom_showid=res.rb;//??? renderNews("toutiao",1); renderRight();upstar } }) //360??? function render360(res,pageNum){ $.each(res,function(i,v){ if(v.type==3){//??? var dom = '<div class="news_item ad_item aa">' + '<a href="' + v.curl + '" class="img_click_gg ad_big_item" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + v.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + v.clktk + '" target="_blank"">' + '<h3>' + v.title.substring(0, 23) + '<span class="news_big">???</span></h3>' + '<div><img src="' + v.img + '" alt=""></div>' + '</a>' + '</div>'; }else if (v.type == 2) { var more_imgs = ''; $.each(v.assets, function (i, value) { more_imgs += '<a class="img_click_gg innerImg" position-tag="messageFlow" position-ad="advertisement_ad360" href="' + v.curl + '" data-clktk="' + v.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + v.clktk + '" target="_blank" style="height:70px;display:inline-block;"><img src="' + value.img + '" alt=""></a>' }) var dom = '<div class="news_item ad_item aa">' + '<a href="' + v.curl + '" class="img_click_gg mid_news_item" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + v.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + v.clktk + '" target="_blank" ">' + '<h3>' + v.title.substring(0, 23) + '</h3>' + '<p><span class="news_type">???</span><em>?</em><span class="author">' + v.src + '</span></p>' + '</a>' + '<div class="img_con">' + more_imgs + '</div>' + '</div>'; }else if (v.type == 4) { var domvideo=''; if((Common.getIeVersion()!='IE8')&&(Common.getIeVersion()!='IE9')){ domvideo='<video src="'+v.video+'" autoplay muted>' }else{ domvideo='<img src="'+v.img+'"/>' } var dom = '<div class="news_item ad_item aa">' + '<a href="' + v.curl + '" class="img_click_gg ad_big_item" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + v.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + v.clktk + '" target="_blank">' + '<h3>' + v.title.substring(0, 23) + '<span class="news_big">???</span></h3>' + '<div>'+domvideo+'</div>' + '</a>' + '</div>'; } else { var dom = '<div class="news_item ad_item aa">' + '<a href="' + v.curl + '" class="img_click_gg single_item" position-tag="messageFlow" position-ad="advertisement_ad360" data-clktk="' + v.clktk + '" data-oldcurl="' + v.curl + '" data-oldclktk="' + v.clktk + '" target="_blank"">' + '<div><img src="' + v.img + '" alt=""></div>' + '<h3 title="' + v.title + '">' + v.title + '</h3>' + '<p>???</p>' + '</a>' + '</div>'; } if(pageNum==1){ if(i==0||i==1){ $(".list_item").eq(i).before(dom); }else{ if(i%2==0){ $(".list_item").eq((i/2)+1).before(dom);//0 //1 }else{ $(".list_item").eq(Math.ceil(i/2)).before(dom); //0 } } }else{ if(i%2==0){ $(".list_item").eq(i/2).before(dom);//0 //1 }else{ $(".list_item").eq(Math.floor(i/2)).before(dom); //0 } } config.imptkArr.push(v.imptk); config.getArr=[]; if($(".ad_item").eq(i).hasClass("aa")&&$(".ad_item").eq(i)[0].getBoundingClientRect().top<600){ url_scroll(config.imptkArr[0]); config.imptkArr.shift(); $(".ad_item").eq(i).removeClass("aa"); } }) config.render_flag=true; pageNum==1&&$('.scroll_con .ad_item:eq(0) .img_click_gg').length>0?upload($('.scroll_con .ad_item:eq(0) .img_click_gg'),'show'):""//???show??? } // ???dom??? function render_dom(data,pageNum){ // http://mini.eastday.com/a/191125073938429.html?qid=03418&_3_%E6%8E%A8%E8%8D%901 var qid=config.qid[config.tab_type]; $.each(data,function(i,v){ var dom; if(v.img_size==4||v.img_size==3){//4?? var more_dom="" $.each(v.img,function(dataIndex,dataVal){ more_dom+='<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="'+v.url+'?qid='+qid+'" target="_blank"><img src="' + dataVal + '" alt=""></a>'; }) if(v.img.length==3){ more_dom+='<a class="news_click_gg" position-tag="messageFlow" position-ad="eastday" href="'+v.url+'?qid='+qid+'" target="_blank"><span>??????>></span></a>'; } dom='<div class="news_item list_item">' + '<a class="news_click_gg mid_news_item" position-tag="messageFlow" position-ad="eastday" href="'+v.url+'?qid='+qid+'" target="_blank">' + '<h3 title="' + v.title + '">' + v.title + '</h3>' + '<p>' +v.source+ '</em></p>' + '</a>' + '<div class="img_con">' + more_dom + '</div>' + '</div>'; }else{ dom = '<div class="news_item list_item">' + '<a class="news_click_gg single_item" position-tag="messageFlow" position-ad="eastday" href="'+v.url+'?qid='+qid+'" target="_blank">' + '<div><img src="' + v.img[0] + '" alt=""></div>' + '<h3>' + v.title + '</h3>' + '<p>' + v.source + '</em></p>' + '</a>' + '</div>'; } $(".scroll_con").append(dom); }) setTimeout(function(){ config.pageNum=pageNum; var adsize=config.pageNum==1?3:10; if(config.pageNum==1){ get360Ad(config.page,function(res){ render360(res,config.page); },config.message_showid,10) }else{ get360Ad(config.page,function(res){ config.getArr=[]; config.getArr=res; config.page++; get360Ad(config.page,function(res){ config.getArr=config.getArr.concat(res); render360(config.getArr,config.page); },config.message_showid,adsize) },config.message_showid,adsize); } },50) } //?????? function renderNews(type,pageNum){ var url=config.loadUrl.online_url+type+'/page/'+pageNum; $.ajax({ url:url, type: 'get', dataType: 'json', success:function(res){ config.pageNum=pageNum; if(config.pageNum==1){ var data=res.data.slice(0,6); }else{ var data=res.data; } render_dom(data,pageNum); $(".content").scroll(function(){ var scroll_top=$(".news_item").eq(0)[0]&&$(".news_item").eq($(".news_item").length-1)[0].getBoundingClientRect().top;//630 var _el=$(".aa"); if(scroll_top<630&&config.render_flag){ $(".list_item").each(function(){ $(this).removeClass("list_item") }) config.render_flag=false; config.pageNum++; config.page++; renderNews(type,config.pageNum) } if(_el.length){ if(_el.eq(0)[0].getBoundingClientRect().top<600){ _el.eq(0).removeClass("aa"); if(config.imptkArr.length){ url_scroll(config.imptkArr[0]); config.imptkArr.shift(); } } } }) // config.render_flag=true; } }) } /*360??????*/ $('body').on('mousedown', '.img_click_gg', function (e) { var x = Math.floor(e.pageX - $(this).offset().left), y = Math.floor(e.pageY - $(this).offset().top); x = x<0 ? 0:x; y = y<0 ? 0:y; mouseDownMacro($(this), x, y); }).on('click', '.img_click_gg', function () { 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>'); }); } upload($(this)[0],'click'); }); $("body").on('click','.news_click_gg',function(){ upload($(this)[0],'click'); }) function upstar(callback){ var urlhost; if(location.host == 'news.7654.com'){ urlhost ='prod/'+location.host+location.pathname.replace(/\//g,"."); }else{ urlhost = '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.kt03.json', type:'get', dataType:'json', success:function(res){ callback&&callback(res) } }) } // ?????? function renderRight(){ renderSsp(function(res){ var top1=config.miniRight1; var top2=config.miniRight2; if($.isEmptyObject(res)){ 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" 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">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[0].imptk); upload($('.right_pannel .showcase:eq(0) .img_click_gg' ),'show')//???show??? }else{ renderLoad('.right_pannel .showcase:eq(0)',0,'top'); } if(res[1]){ $('.right_pannel .showcase:eq(1)').html('<div class="right360ad xxl_ad">' + '<a href="' + res[1].curl + '" class="img_click_gg" position-tag="m_rightTop" position-ad="advertisement_ad360" data-clktk="' + res[1].clktk + '" data-oldcurl="' + res[1].curl + '" data-oldclktk="' + res[1].clktk + '" target="_blank">' + '<div><img src="' + res[1].img + '" alt=""></div>' + '<h3 title="' + res[1].title + '">' + res[1].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[1].imptk); }else{ renderLoad('.right_pannel .showcase:eq(1)',1,'top'); } },config.right_top_showid, 2); }else{ var data1=res.data[config.miniRight1]; var data2=res.data[config.miniRight2]; if(data1.script.length!=0&&data1.script[0].idea_type==14){ //?????? $(".top_ssp").show(); $(".showcase").hide(); var value=data1.script[0].idea; $('.top_ssp').html('<a class="ssp_click_gg" href="' + value.landing_page + '" target="_blank" ><div><img src="' + value.main_img+ '" alt=""></div><span class="ad_source">???</span></a>'); window.uploadConfig1 = { act:'show', ad_id:data1.baidu_id, ad_pos:top1, strategy_id:data1.script[0].strategy_id, idea_id:data1.script[0].idea_id, plan_id:data1.script[0].plan_id, product_category:data1.script[0].product_category }; //??? uploadZhike(uploadConfig1); $("body").on('click','.ssp_click_gg',function(){ uploadConfig1.act='click'; uploadZhike(uploadConfig1); }) return false; }else if(data1.script.length!=0&&data2.script.length!=0&&data1.script[0].idea_type==13&&data2.script[0].idea_type==13){ //???1??? ???2??? var value1=data1.script[0].idea; var value2=data2.script[0].idea; $('.showcase:eq(0)').html('<a class="ssp_click_gg ssp_click_gg1" href="' + value1.landing_page + '" target="_blank" ><div><img src="' + value1.main_img+ '" alt=""></div><span class="ad_source">???</span></a>'); $('.showcase:eq(1)').html('<a class="ssp_click_gg ssp_click_gg2" href="' + value2.landing_page + '" target="_blank" ><div><img src="' + value2.main_img+ '" alt=""></div><span class="ad_source">???</span></a>') window.uploadConfig1 = { act:'show', ad_id:data1.baidu_id, ad_pos:top1, strategy_id:data1.script[0].strategy_id, idea_id:data1.script[0].idea_id, plan_id:data1.script[0].plan_id, product_category:data1.script[0].product_category }; window.uploadConfig2 = { act:'show', ad_id:data2.baidu_id, ad_pos:top2, strategy_id:data2.script[0].strategy_id, idea_id:data2.script[0].idea_id, plan_id:data2.script[0].plan_id, product_category:data2.script[0].product_category }; //??? uploadZhike(uploadConfig1); uploadZhike(uploadConfig2); $("body").on('click','.ssp_click_gg1',function(){ uploadConfig1.act='click'; uploadZhike(uploadConfig1); }) $("body").on('click','.ssp_click_gg2',function(){ uploadConfig2.act='click'; uploadZhike(uploadConfig2); }) return false; }else if(data1.script.length!=0&&data1.script[0].idea_type==13&&data2.script.length==0){//???1??? ???2??? var value1=data1.script[0].idea; $('.showcase:eq(0)').html('<a class="ssp_click_gg" href="' + value1.landing_page + '" target="_blank" ><div><img src="' + value1.main_img+ '" alt=""></div><span class="ad_source">???</span></a>'); 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" 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">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[0].imptk); upload($('.right_pannel .showcase:eq(1) .img_click_gg' ),'show')//???show??? }else{ renderLoad('.right_pannel .showcase:eq(1)',0,'top'); } },config.right_top_showid, 1); window.uploadConfig1 = { act:'show', ad_id:data1.baidu_id, ad_pos:top1, strategy_id:data1.script[0].strategy_id, idea_id:data1.script[0].idea_id, plan_id:data1.script[0].plan_id, product_category:data1.script[0].product_category }; //??? uploadZhike(uploadConfig1); $("body").on('click','.ssp_click_gg',function(){ uploadConfig1.act='click'; uploadZhike(uploadConfig1); }) return false; }else if(data1.script.length==0&&data2.script.length!=0&&data2.script[0].idea_type==13){//???1??? ???2???? var value2=data2.script[0].idea; $('.showcase:eq(1)').html('<a class="ssp_click_gg" href="' + value2.landing_page + '" target="_blank" ><div><img src="' + value2.main_img+ '" alt=""></div><span class="ad_source">???</span></a>'); 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" 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">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[0].imptk); upload($('.right_pannel .showcase:eq(1) .img_click_gg' ),'show')//???show??? }else{ renderLoad('.right_pannel .showcase:eq(0)',0,'top'); } },config.right_top_showid, 1); window.uploadConfig2 = { act:'show', ad_id:data2.baidu_id, ad_pos:top2, strategy_id:data2.script[0].strategy_id, idea_id:data2.script[0].idea_id, plan_id:data2.script[0].plan_id, product_category:data2.script[0].product_category }; //??? uploadZhike(uploadConfig2); $("body").on('click','.ssp_click_gg',function(){ uploadConfig2.act='click'; uploadZhike(uploadConfig2); }) return false; }else if(data1.script.length==0&&data2.script.length==0){ 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" 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">' + '<div><img src="' + res[0].img + '" alt=""></div>' + '<h3 title="' + res[0].title + '">' + res[0].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[0].imptk); upload($('.right_pannel .showcase:eq(0) .img_click_gg' ),'show')//???show??? }else{ renderLoad('.right_pannel .showcase:eq(0)',0,'top'); } if(res[1]){ $('.right_pannel .showcase:eq(1)').html('<div class="right360ad xxl_ad">' + '<a href="' + res[1].curl + '" class="img_click_gg" position-tag="m_rightTop" position-ad="advertisement_ad360" data-clktk="' + res[1].clktk + '" data-oldcurl="' + res[1].curl + '" data-oldclktk="' + res[1].clktk + '" target="_blank">' + '<div><img src="' + res[1].img + '" alt=""></div>' + '<h3 title="' + res[1].title + '">' + res[1].title + '</h3>' + '<div class="rightBack"></div>' + '<span>???</span>' + '</a>' + '</div>') url_scroll(res[1].imptk); }else{ renderLoad('.right_pannel .showcase:eq(1)',1,'top'); } },config.right_bottom_showid, 2); }else{ } } },2) renderSsp(function(res){ var top3=config.miniRight3; if($.isEmptyObject(res)||res.data[top3].script.length==0){ //ssp??????????? $('.today_news .hot_ssp').hide(); $(".hot_news").append('<h2>24??????</h2><ul><li></li><li></li><li></li><li></li></ul>'); var qid=config.qid.rewen; renderNovel(function(data){ get360Ad(1,function(res){ if(res.length==1){ $('.today_news .adCase:eq(0)').html('<a class="img_click_gg" position-tag="m_rightDown" position-ad="advertisement_ad360" data-clktk="' + res[0].clktk + '" data-oldcurl="' + res[0].curl + '" data-oldclktk="' + res[0].clktk + '" href="' + res[0].curl + '" target="_blank">'+ '<div><img src="' + res[0].img + '" alt=""></div><p>' + res[0].title + '</p><div class="rightBack"></div><span class="adv_source">???</span></a>'); $('.today_news .adCase:eq(1)').html('<a class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' + data[0].url + '?qid='+qid+'&_1_???1" target="_blank" ><div><img src="' +data[0].img[0]+ '" alt=""></div><p>' + data[0].title + '</p><div class="rightBack"></div></a>'); $('.today_news .slide2').remove(); url_scroll(res[0].imptk); upload($('.today_news .adCase:eq(0) a'),'show')//???show??? var mySwiper = new Swiper('.swiper-container',{ autoplay : 3000, loop:true, autoplayDisableOnInteraction : false, }) }else if(res.length==2){ $('.today_news .adCase:eq(0)').html('<a class="img_click_gg" position-tag="m_rightDown" position-ad="advertisement_ad360" data-clktk="' + res[0].clktk + '" data-oldcurl="' + res[0].curl + '" data-oldclktk="' + res[0].clktk + '" href="' + res[0].curl + '" target="_blank">'+ '<div><img src="' + res[0].img + '" alt=""></div><p>' + res[0].title + '</p><div class="rightBack"></div><span class="adv_source">???</span></a>'); $('.today_news .adCase:eq(1)').html('<a class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' + data[0].url + '?qid='+qid+'&_1_???1" target="_blank" ><div><img src="' +data[0].img[0]+ '" alt=""></div><p>' + data[0].title + '</p><div class="rightBack"></div></a>'); $('.today_news .adCase:eq(2)').html('<a class="img_click_gg" position-tag="m_rightDown" position-ad="advertisement_ad360" data-clktk="' + res[1].clktk + '" data-oldcurl="' + res[1].curl + '" data-oldclktk="' + res[1].clktk + '" href="' + res[1].curl + '" target="_blank">'+ '<div><img src="' + res[1].img + '" alt=""></div><p>' + res[1].title + '</p><div class="rightBack"></div><span class="adv_source">???</span></a>'); url_scroll(res[0].imptk); url_scroll(res[1].imptk); upload($('.today_news .adCase:eq(0) a'),'show')//???show??? var mySwiper = new Swiper('.swiper-container',{ autoplay : 3000, loop:true, autoplayDisableOnInteraction : false, }) }else{ $('.today_news .adCase:eq(0)').html('<a class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' + data[0].url + '?qid='+qid+'&_1_???1" target="_blank" ><div><img src="' +data[0].img[0]+ '" alt=""></div><p>' + data[0].title + '</p><div class="rightBack"></div></a>'); $('.today_news .slide1').remove(); $('.today_news .slide2').remove(); $(".arrow").remove(); var mySwiper = new Swiper('.swiper-container',{ }) } $('.leftBtn').click(function(){ mySwiper.swipePrev(); }) $('.rightBtn').click(function(){ mySwiper.swipeNext(); }) },config.right_bottom_showid, 2) }) }else{ var datas=res.data[config.miniRight3]; var value=datas.script[0].idea; $('.today_news .hot_news').hide(); $('.today_news .swiper-container').html('<a class="ssp_click_gg4" href="' + value.landing_page + '" target="_blank" ><div><img src="' + value.main_img+ '" alt=""></div><span class="ad_source">???</span></a>'); window.uploadConfig = { act:'show', ad_id:datas.baidu_id, strategy_id:datas.script[0].strategy_id, idea_id:datas.script[0].idea_id, plan_id:datas.script[0].plan_id, product_category:datas.script[0].product_category }; //??? uploadZhike(uploadConfig); $("body").on('click','.ssp_click_gg4',function(){ uploadConfig.act='click'; uploadZhike(uploadConfig); }) } },1) $(".swiper-container").hover(function(){ $(".arrow").show(); },function(){ $(".arrow").hide(); }) } // ssp??? function renderSsp(callback,rightNum){ var url; var rightTop; if(rightNum==2){ rightTop=''+config.miniRight1+','+config.miniRight2; }else{ rightTop=config.miniRight3; } if(location.host == 'news.7654.com'){ url = 'http://ssp.7654.com/ssp/ads?qid='+config.miniQid+'&ad='+rightTop; }else{ url = 'http://test-ssp.7654.com/ssp/ads?qid='+config.miniQid+'&ad='+rightTop; } $.ajax({ url:url, // url:'http://ads.7654.com/loaderrorjson', type:'GET', dataType:'json', success:function(res){ var obj={}; if($.isEmptyObject(res.data)){ res=obj; } callback&&callback(res); }, error:function(){ var data={}; callback(data) } }) } // ?????? function renderLoad(target_dom,startnum,area){ $.ajax({//????????? url:config.loadUrl.loadbaseUrl, type:'GET', dataType:'json', success:function(res){ var qid=config.qid.toutiao; var adData=res.data.slice(startnum,startnum+1)[0]; if(area=='top'){ var dom='<div class="right360ad xxl_ad">' + '<a class="news_click_gg" position-tag="m_rightTop" position-ad="eastday" href="' + adData.url + '?qid='+qid+'" target="_blank">' + '<div><img src="' + adData.img[0] + '" alt=""></div>' + '<h3>' + adData.title + '</h3>' + '<div class="rightBack"></div>' + '</a>' + '</div>'; }else{ var dom='<a class="news_click_gg" position-tag="m_rightDown" position-ad="eastday" href="' + adData.url + '?qid='+qid+'" target="_blank" >'+ '<div><img src="' + adData.img[0]+ '" alt=""></div><p>' + adData.title + '</p></a>' } $(target_dom).append(dom); } }) } // ?????? function renderNovel(callback,num){ $.ajax({ url:config.loadUrl.hotUrl, type:'GET', dataType:'json', success:function(res){ callback&&callback(res.data); }, error:function(){ var data=[]; callback&&callback(data); } }) } // ??? 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) {}); } // ssp??? function uploadZhike(uploadAction) { var params = { project:'kuaiya', data:Common.GetQueryString('data') || 'default', os:Common.getSystem() || 'default', browser:Common.getBrowser() || 'default', act:uploadAction.act || 'default', ad_id:uploadAction.ad_id || '2299669', ad_pos:uploadAction.ad_pos || 'kuaiya_miniright_3', ad_time:new Date().getTime() || 'default', ad_type:uploadAction.ad_type || 'zhike', strategy_id:uploadAction.strategy_id || '918', idea_id:uploadAction.idea_id || '80', plan_id:uploadAction.plan_id || '50', product_category:uploadAction.product_category||'undefined' }; var url = "http://sspreport.7654.com/ssp/user_click?code="+params.project + encodeURI('\t')+ params.data + encodeURI('\t')+params.os+ encodeURI('\t')+params.browser+ encodeURI('\t')+params.act+encodeURI('\t')+params.ad_id+encodeURI('\t')+params.ad_pos+encodeURI('\t')+params.ad_time+encodeURI('\t')+params.ad_type+encodeURI('\t')+params.strategy_id+encodeURI('\t')+params.idea_id+encodeURI('\t')+params.plan_id+encodeURI('\t')+params.product_category; $.getJSON(url).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