Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\LL6B9T19\ad360[1].js
(function (w) { // 360??????????? var Macro = {start: "__EVENT_TIME_START__", end: "__EVENT_TIME_END__", x: "__OFFSET_X__", y: "__OFFSET_Y__"}; var _clktk, _curl, start_time, end_time; var ad360_fun_c = { openBlackList: true, // ??????????? openLabelUp: false, // ?????????????(?????) }; var PROJECT_TYPE = "weather"; // ??? weather var ad360_c = { url: { url_360: Common.GetQueryString("test_360_url")||"//show.g.mediav.com/s", // 360?????? // url_360: "//ad-test.mediav.com/s", // 360?????? hotUrl: '//news.7654.com/tpop4/miniapi/recommend.json', // ????????? loadbaseUrl: '//miniapi.7654.com/mini/news/recommend', // ??????-??? }, pub_config_key: "proConfig", // index???????????? imptkArr: [], // ??????360 ?????? getArr: [], // ????????????360?????? project: "mininews_ys001", // ???????? ad360ClickNum: 0, // 360?????????-?????-10????? clickLimit: 20, // ??????????????? top_skin:{ muc: "img_click_gg", // 360????????? target: ".ad_skin", position_tag: "top", position_ad: "advertisement_ad360", }, right1: { muc: "", // 360????????? target: ".right1", position_tag: "m_rightTop", position_ad: "advertisement_ad360", }, right2: { muc: "", // 360????????? target: ".right2", position_tag: "m_rightTop", position_ad: "advertisement_ad360", }, right3: { muc: "", // 360????????? target: ".right3", position_tag: "m_rightDown", position_ad: "advertisement_ad360", } }; /* ============================= 360ad================================= */ function Ad360() { } Ad360.prototype = { init: function () { ad360_c.imptkArr = []; }, //?????-1 mouseDownMacro: function (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 mouseUpMacro: function (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?????? getData: function (reqtime, callback, showId, num) { var recommend_type = 1, recommend_of = 4, reqtimes = reqtime || 1, recommend_newf = 1, recommend_showid = 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 : ''; // 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; // 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 = ad360_c.url.url_360 + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&showid=' + recommend_showid + '&uid=' + recommendk_uid + '&impct=' + recommend_adnum + '&reqtimes=' + reqtimes + tck + '&refurl=' + recommend_refurl; } w[ad360_c.pub_config_key].busy_360 = true; $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { if (!data.ads) { $.ajax({ type: 'get', url: recommend_param, dataType: 'jsonp', jsonp: 'jsonp', success: function (data) { var d = data.ads || []; w[ad360_c.pub_config_key].busy_360 = false; callback && callback(d); }, error: function () { w[ad360_c.pub_config_key].busy_360 = false; callback(null); } }) } else { var d = data.ads || []; callback && callback(d); } }, error: function () { callback(null); } }) }, // 360?????? 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; // 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 = ad360_c.url.url_360 + '?type=' + recommend_type + '&of=' + recommend_of + '&newf=' + recommend_newf + '&showids=' + recommend_showid + '&uid=' + recommendk_uid + tck + '&refurl=' + recommend_refurl; } w[ad360_c.pub_config_key].busy_360 = true; $.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 || []; w[ad360_c.pub_config_key].busy_360 = false; callback && callback(d); }else{ callback && callback([]); } }, error: function () { w[ad360_c.pub_config_key].busy_360 = false; callback(null); } }) } else { var d = data.adspaces[showId].ads || []; callback && callback(d); } }, error: function () { callback(null); } }) }, /** * ???????????360??? * @param res 360 ?????? * @param pageNum ????? * @param renderModel 360????????? ds_1 ->??1dsp??sp???2???dsp??sp | ds_2 ->??1??sp??sp???2??sp??sp | double ->??1???2??sp??sp | none ->??1???2??sp??sp */ render360: function (res, pageNum, renderModel) { var _this = this; var target; var dom; target = ".content .scroll_con." + w[ad360_c.pub_config_key].curTabBtn.attr("date-type"); // console.log("res", pageNum, res); this.init(); $.each(res, function (i, v) { dom = adTmps.get360(v, false); _this.ad360InsertRule(target, i, pageNum, dom, renderModel, "ad_1_1"); // 360??? ad360_c.imptkArr.push(v.imptk); ad360_c.getArr = []; _this.handle_url_scroll(); }); if (pageNum == 1 && renderModel === "double" && $('.scroll_con .ad_item:eq(2) .img_click_gg').length > 0) { this.upload($('.scroll_con .ad_item:eq(2) .img_click_gg'), 'show') } else if (pageNum == 1 && renderModel === "ds_1" && $('.scroll_con .ad_item:eq(1) .img_click_gg').length > 0) { this.upload($('.scroll_con .ad_item:eq(1) .img_click_gg'), 'show') } else if (pageNum == 1 && renderModel === "ds_2" && $('.scroll_con .ad_item:eq(0) .img_click_gg').length > 0 || pageNum == 1 && renderModel === "none" && $('.scroll_con .ad_item:eq(0) .img_click_gg').length > 0) {//?????sp this.upload($('.scroll_con .ad_item:eq(0) .img_click_gg'), 'show')//???show??? } }, /** * ?????????360????????? */ render360Scroll: function () { var _this = this; var adsize = w[ad360_c.pub_config_key].pageNum == 1 ? 3 : 10; this.getData(w[ad360_c.pub_config_key].page, function (res) { ad360_c.getArr = res || []; w[ad360_c.pub_config_key].page++; _this.getData(w[ad360_c.pub_config_key].page, function (res) { ad360_c.getArr = ad360_c.getArr.concat(res); _this.render360(ad360_c.getArr, w[ad360_c.pub_config_key].page, 'none'); }, w[ad360_c.pub_config_key].message_flow_showId, adsize) }, w[ad360_c.pub_config_key].message_flow_showId, adsize); }, /** * 360????????? * @param target * @param i ???360?????ndex?? * @param pageNum ?????? * @param dom 360?????? * @param renderModel 360????????? ds_1 ->??1dsp??sp???2???dsp??sp | ds_2 ->??1??sp??sp???2??sp??sp | double ->??1???2??sp??sp | none ->??1???2??sp??sp * @param ruleModel ???????????? ad_2_1->??????? */ ad360InsertRule: function (target, i, pageNum, dom, renderModel, ruleModel) { ruleModel = ruleModel || "ad_2_1"; var tar = target + " .list_item"; var rules = { /** * ?????????? */ ad_2_1: function (i, pageNum, renderModel) { var index; if (pageNum == '1') { if (renderModel === "double") {//2??sp index = i % 2 === 0 ? (i / 2 + 2) : (Math.ceil(i / 2) + 1); } else if (renderModel === "ds_2") {//?????360??? ?????sp index = i === 0 ? i : (i % 2 === 0 ? (i / 2) + 1 : (Math.ceil(i / 2) + 1)); } else if (renderModel === "ds_1") {//?????sp ?????360 index = i % 2 === 0 ? (i / 2 + 1) : (Math.ceil(i / 2) + 1); } else if (renderModel === "none") { index = (i === 0 || i === 1) ? i : (i % 2 === 0 ? (i / 2 + 1) : Math.ceil(i / 2)); } } else { // renderModel === "double" ??????dsp/ssp index = i % 2 === 0 ? (i / 2) : (Math.floor(i / 2) + 1); } return index; }, /** * ??????? */ ad_1_1: function (i, pageNum, renderModel) { var index; if (pageNum == '1') { if (renderModel === "double") {//2??sp index = i + 2; } else if (renderModel === "ds_2") {//?????360??? ?????sp index = i == 0 ? i : i + 2; } else if (renderModel === "ds_1") {//?????sp ?????360 index = i + 1; } else if (renderModel === "none") { index = i; } } else { // renderModel === "double" ??????dsp/ssp index = i; } // console.log("index",index,i) return index; } }; $(tar).eq(rules[ruleModel](i, pageNum, renderModel)).before(dom); }, /** * ???ssp/dsp??????????????360??? * @param result */ statusRender360Left: function (result) { var _this = this; var pageSize; var ds_pos; if (result[0] === "null" && result[1] === "null") { ds_pos = "none"; pageSize = 10; } else if (result[0] === "null" && result[1] !== "null") { ds_pos = "ds_2"; pageSize = 9; } else if (result[0] !== "null" && result[1] === "null") { ds_pos = "ds_1"; pageSize = 9; } else if (result[0] !== "null" && result[1] !== "null") { ds_pos = "double"; pageSize = 8; } this.getData(w[ad360_c.pub_config_key].page, function (res) { _this.render360(res, w[ad360_c.pub_config_key].page, ds_pos); }, w[ad360_c.pub_config_key].message_flow_showId, pageSize); }, /** * ??????360 * @param result * @param pos ?????? r3(???) ?????? */ renderRight360: function (result, pos) { var _this = this; if (pos === 'r3') { if (result[0] === "null") { this.renderRight3(); } return false; } if (result[0] === "null" && result[1] === "null") { this.getData(1, function (res) { if (res[0]) { res[0].type = "right_1"; $(ad360_c.right1.target).html(adTmps.get360(res[0], ad360_c.right1)); _this.url_scroll(res[0].imptk); _this.upload($(ad360_c.right1.target + " .img_click_gg"), 'show')//???show??? } else { (PROJECT_TYPE !== "weather") && _this.renderLoad(ad360_c.right1.target, 0, 'top'); } if (res[1]) { res[1].type = "right_2"; $(ad360_c.right2.target).html(adTmps.get360(res[1], ad360_c.right2)); _this.url_scroll(res[1].imptk); } else { (PROJECT_TYPE !== "weather") && _this.renderLoad(ad360_c.right2.target, 1, 'top'); } }, w[ad360_c.pub_config_key].right_top_showid, 2); } else if (result[0] === "null" && result[1] !== "null") { this.getData(1, function (res) { if (res[0]) { res[0].type = "right_1"; $(ad360_c.right1.target).html(adTmps.get360(res[0], ad360_c.right1)); _this.url_scroll(res[0].imptk); _this.upload($(ad360_c.right1.target + " .img_click_gg"), 'show')//???show??? } else { (PROJECT_TYPE !== "weather") && _this.renderLoad(ad360_c.right1.target, 0, 'top'); } }, w[ad360_c.pub_config_key].right_top_showid, 1); } else if (result[0] !== "null" && result[1] === "null") { this.getData(1, function (res) { if (res[0]) { res[0].type = "right_2"; $(ad360_c.right2.target).html(adTmps.get360(res[0], ad360_c.right2)); /* $('.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>')*/ _this.url_scroll(res[0].imptk); _this.upload($(ad360_c.right2.target + " .img_click_gg"), 'show')//???show??? } else { (PROJECT_TYPE !== "weather") && _this.renderLoad('.right_pannel .showcase:eq(1)', 0, 'top'); } }, w[ad360_c.pub_config_key].right_top_showid, 1); } }, /** * ?????? */ renderRight3: function () { var _this = this; var qid; if (PROJECT_TYPE === "weather") { this.getData(1, function (res) { if (res[0]) { res[0].type = "right_3"; $(ad360_c.right3.target).html(adTmps.get360(res[0], ad360_c.right3)); _this.url_scroll(res[0].imptk); _this.upload($(ad360_c.right3.target + " .img_click_gg"), 'show')//???show??? } else { // _this.renderLoad('.right_pannel .showcase:eq(1)', 0, 'top'); } }, w[ad360_c.pub_config_key].right_bottom_showid, 1); } else { $('.today_news .hot_ssp').hide(); $(".hot_news").append('<h2>24??????</h2><ul><li></li><li></li><li></li><li></li></ul>'); qid = w[ad360_c.pub_config_key].qid.rewen; this.renderNovel(function (data) { _this.getData(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(); _this.url_scroll(res[0].imptk); _this.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>'); _this.url_scroll(res[0].imptk); _this.url_scroll(res[1].imptk); _this.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(); }); }, w[ad360_c.pub_config_key].right_bottom_showid, 2); }); } }, /** * ?????? - ??? * @param target_dom * @param startnum * @param area */ renderLoad: function (target_dom, startnum, area) { $.ajax({ //????????? url: ad360_c.url.loadbaseUrl, type: 'GET', dataType: 'json', success: function (res) { var dom; var qid = w[ad360_c.pub_config_key].qid.toutiao; var adData = res.data.slice(startnum, startnum + 1)[0]; if (area == 'top') { 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 { 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); } }) }, // ?????? - ??? renderNovel: function (callback, num) { $.ajax({ url: ad360_c.url.hotUrl, type: 'GET', dataType: 'json', success: function (res) { callback && callback(res.data); }, error: function () { var data = []; callback && callback(data); } }) }, /** * ???????? * @constructor */ blackList: function () { var urlblack; var _this = this; var qid = Common.GetQueryString('qid'); var project = ad360_c.project; var uid = Common.GetQueryString('uid') || "none"; var redirectUrl = window.location.href.split("?")[1]; if (location.host === 'news.7654.com') { urlblack = 'http://ssp.7654.com/monitor?qid=' + qid + '&project=' + project + '&uid=' + uid; } else { urlblack = 'http://test-ssp.7654.com/monitor?qid=' + qid + '&project=' + project + '&uid=' + uid; } $.ajax({ url: urlblack, type: 'GET', dataType: 'json', success: function (res) { // res.ret = 0; if (res.ret == 0 || ad360_c.ad360ClickNum > ad360_c.clickLimit) { _this.upload($('.scroll_con .news_item:eq(0)'), 'otherurl_show'); // ???show??? window.location.href = 'http://news.7654.com/mini_new4/0101/?' + redirectUrl; } } }) }, /** * 360??? * @param target * @param actType */ upload: function (target, actType) { $.getJSON("//ad.kuaizip.com/advertise/userclick", { time: new Date().getTime(), localUrl: $.base64.encode("kZip.com" + location.pathname), project: $.base64.encode(ad360_c.project), position: $.base64.encode($(target).attr('position-tag')), qid: $.base64.encode(Common.GetQueryString('qid')), // qid_new: $.base64.encode(Common.GetQueryString('qid_new')), gid: $.base64.encode(Common.GetQueryString('gid')), 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) { }); ad360_fun_c.openLabelUp && this.upLabel(target, actType); }, /** * 360 ??? * @param arr */ url_scroll: function (arr) { $.each(arr, function (index, val) { $('body').append('<iframe src="' + val + '" style="display: none;"></iframe>'); }); }, /** * 360?????? */ handle_url_scroll: function () { var _el = $(".aa"); if (_el.length) { if (_el.eq(0)[0].getBoundingClientRect().top < 634) { _el.eq(0).removeClass("aa"); if (ad360_c.imptkArr.length) { this.url_scroll(ad360_c.imptkArr[0]); ad360_c.imptkArr.shift(); } } } }, /** * ??????360??????????????? * @param target * @param params * @param actType */ upLabel: function (target, actType) { // ????? uid??id??roject(???)??optype(??????)??mageadress(??????)??magetitle(??????)??ct(show)??ata var param_lab; var info = $(target).length > 0 ? $(target).attr('data-info').split(",") : ["", ""]; param_lab = { uid: Common.GetQueryString('uid') || "none", gid: Common.GetQueryString('gid') || "", project: ad360_c.project || 'default', poptype: "mininewsplus", imageadress: info[0], // imagetitle: encodeURIComponent(info[1]), imagetitle: info[1], act: actType, data: Common.GetQueryString('data') || 'default', }; // console.log("params",params) var objParams = param_lab.uid + '\t' + param_lab.gid + '\t' + param_lab.project + '\t' + param_lab.poptype + '\t' + param_lab.imageadress + '\t' + param_lab.imagetitle + '\t' + param_lab.act + '\t' + param_lab.data; // var a = Common.rc4(objParams, "H3GkhMqv91a7bEH2"); console.log(Common.rc4(objParams, "H3GkhMqv91a7bEH2"),$.base64.encode(Common.rc4(objParams, "H3GkhMqv91a7bEH2"))) // console.log(objParams,param_lab,$.base64.encode(a),Common.rc4(a, "H3GkhMqv91a7bEH2"),Common.rc4_1(objParams, "H3GkhMqv91a7bEH2")); $.getJSON("http://tagreport.kpzip.com/usertag/user_click/?param="+$.base64.encode(Common.rc4(objParams, "H3GkhMqv91a7bEH2"))).done(function (data) {}); // ????????? }, /** * ????????? */ addSkin: function () { var _this = this; var screen_h = Common.GetQueryString("screen_h")*1 || 800; 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="1024,795">'); } else { $('head').append('<meta page_size="1024,634">'); } is_show&&$("#skin_360_container").show(); // Sj2foR ??? is_show&&this.getSkinData("gyr7vd",function (res) { if (!res||res.length<=0) return; var data = JSON.parse(JSON.stringify(res)); data[0].type = "skin"; $("#skin_360_container").html(adTmps.get360(data[0],ad360_c.top_skin)); _this.url_scroll(data[0].imptk); /*data.length>1&&_this.renderSkinSwiper(".swiper-wrapper",data); $.each(data,function (i,v) { _this.url_scroll(v.imptk); });*/ _this.upload($(ad360_c.top_skin.target + ".img_click_gg")[0], 'show');//???show??? $("#skin_360_container").addClass("skin_"+data[0].imgw); if (data[0].imgw===900){ // $("#skin_360_container").css("border","1px solid #"+data[0].color) } }); }, /** * ??????360 ??? * @param data */ renderSkinSwiper:function (target,data) { $(target).show(); $.each(data,function (i,v) { v.type = "skin"; $(target).append('<div class="swiper-slide">'+adTmps.get360(v,ad360_c.top_skin)+'</div>') }); var skin_swiper = new Swiper('.swiper_container', { autoplay: 3000, loop: true, calculateHeight: true, resizeReInit: true, updateOnImagesReady: true, autoplayDisableOnInteraction: false, // paginationClickable: true, // pagination: '.swiper-pagination', onSlideClick: function (sw, event) { sw.swipeNext(skin_swiper); } }); setTimeout(function () { skin_swiper.resizeFix(); }, 300) } }; w.ad360 = new Ad360(); /*========== ?????? ==========*/ var _this_b; function EventBind() { _this_b = this; } EventBind.prototype = { /** * s?????? * arr ?????? * [target(???????????),?????,???????????????????????] * @param arr */ bindEvent: function (arr) { (arr && arr.length > 0) && $.each(arr, function (i, v) { v && (v[3] ? ($(v[3]).on(v[1], v[0], v[2])) : ($(v[0]).on(v[1], v[2]))); }) }, /** * 360?????? * @param e */ upData360_md: function (e) { var target = $(this).parents(".ad360_more_img").length > 0 ? $(this).parents(".ad360_more_img") : $(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; w.ad360.mouseDownMacro($(this), x, y); }, /** * 360?????? * @param e */ upData360_c: function (e) { w.ad360.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>'); }); } w.ad360.upload($(this)[0], 'click'); // ????? ad360_fun_c.openBlackList && ad360_c.ad360ClickNum++; ad360_fun_c.openBlackList && ad360.blackList(); }, /** * ????????? * @param e */ newsUpdata: function (e) { w.ad360.upload($(this)[0], 'click'); } }; var events = new EventBind(); events.bindEvent([ [".img_click_gg", "mousedown", events.upData360_md, 'body'], [".img_click_gg", "click", events.upData360_c, 'body'], [".news_click_gg", "click", events.newsUpdata, 'body'], ]); $(document).ready(function () { ad360_fun_c.openBlackList && ad360.blackList(); }); })(window);
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de