1function show_history(cookie_name) { 2 var history = $.cookie("mac_history_dianying"); 3 var history_data = []; 4 var history_html = ''; 5 if ((history != undefined) && (history != '')) { 6 history_data = eval(history); 7 } 8 if (history_data.length > 0) { 9 for (var $i = 0; $i < history_data.length; $i++) { 10 history_html += '<li class="list-item"><a href="' + history_data[$i].vod_url + '" title="' + history_data[$i].vod_name + '" class="list-item-link"><i class="icon-play"></i><span>' + history_data[$i].vod_part + '</span>' + history_data[$i].vod_name + '</a></li>'; 11 } 12 } else { 13 history_html = '<li class="drop-tips">ææ è§å½±åå²</li>'; 14 } 15 $("#history").append(history_html); 16} 17 18function show_tip(text) { 19 $('.shortcuts-box').show(); 20 $('#shortcuts-info').html(text); 21 setTimeout(function () { 22 $('.shortcuts-box').fadeOut(1000); 23 }, 2000); 24} 25$(function () { 26 show_history(); 27 $(".lazyload").lazyload({ 28 effect: "fadeIn", 29 skip_invisible: false, 30 event: 'sporty', 31 threshold: 500 32 }); 33 $("#txtKeywords,.txtKeywords").focus(function () { 34 $(".ac_wd,.search-btn").addClass("search-focus"); 35 $(".ac_hot").removeClass("none"); 36 $("body").addClass("mobile-open"); 37 }); 38 $(".nav-menu-search").click(function () { 39 $(".ac_wd,.search-btn").addClass("search-focus"); 40 $(".ac_hot").removeClass("none"); 41 $("body").addClass("mobile-open"); 42 43 }); 44 $(document).click(function (e) { 45 if ($(e.target).closest("#txtKeywords,.search-box,.nav-menu-search,.txtKeywords").length == 0 || $(e.target).closest(".cancel-btn").length != 0) { 46 $(".ac_hot").addClass("none"); 47 $(".ac_wd,.search-btn").removeClass("search-focus"); 48 $("body").removeClass("mobile-open"); 49 $(".nav-search").removeClass("block"); 50 } 51 }); 52 $(".tab-item").click(function () { 53 if (!$(this).hasClass("selected")) { 54 $(this).addClass("selected").siblings().removeClass("selected"); 55 $(".tab-list").eq($(this).index()).addClass("selected").siblings().removeClass("selected"); 56 $(".tab-list").eq($(this).index()).find(".lazyload").lazyload(); 57 } 58 $(".module-tab-drop").removeClass("module-tab-drop"); 59 $(this).parents(".module-tab-items").siblings(".module-tab-name").children(".module-tab-value").text($(this).attr("data-dropdown-value")); 60 }); 61 $(".downtab-item").click(function () { 62 if (!$(this).hasClass("selected")) { 63 $(this).addClass("selected").siblings().removeClass("selected"); 64 $(".downtab-list").eq($(this).index()).addClass("selected").siblings().removeClass("selected"); 65 $(this).parents(".module-tab-items").siblings(".module-tab-name").children(".module-tab-value").text($(this).attr("data-dropdown-value")); 66 } 67 $(".module-tab-drop").removeClass("module-tab-drop"); 68 }); 69 $(".close-btn").click(function () { 70 $(".tips-box").addClass("up"); 71 }); 72 $(".btn-jx").click(function () { 73 $(".popup-jx").removeClass("none").addClass("open"); 74 }); 75 $(".btn-screen").click(function () { 76 $(".popup-tips").removeClass("none").addClass("open"); 77 }); 78 $(".btn-report").click(function () { 79 $(".popup-report").removeClass("none").addClass("open"); 80 }); 81 $(".domain").click(function () { 82 $(".popup-notice").removeClass("none").addClass("open"); 83 }); 84 $(".close-popup,.close-popup2").click(function () { 85 $(".popup").removeClass("open").addClass("none"); 86 }); 87 $(".module-tab .module-tab-name").click(function () { 88 $(this).parent(".module-tab").addClass("module-tab-drop"); 89 }); 90 $(".shortcuts-mobile-overlay,.close-drop").click(function () { 91 $(".module-tab-drop").removeClass("module-tab-drop"); 92 }); 93 $(".module-sorttab .module-tab-name").click(function () { 94 $(this).parents(".module-sorttab").addClass("module-tab-drop"); 95 }); 96 $(".sort-button").click(function () { 97 $(this).toggleClass("desc asc"); 98 $($(this).attr("to")).html($($(this).attr("to")).children().get().reverse()); 99 }); 100 $(".more-content").click(function () { 101 $(".content-text,.blurb-text,.more-content").toggleClass("none"); 102 }); 103 $('.shortcuts-box').click(function () { 104 $('.shortcuts-box').hide(); 105 $('#shortcuts-info').html(''); 106 }); 107 $(".historyclean").on("click",function(){ 108 $.cookie("mac_history_dianying",null,{expires:-1,path: '/'}); 109 }); 110 $(function () { 111 $(".moremeum").click(() => { 112 $(".mx-lrmenu").toggleClass("mx-lrshow ") 113 setTimeout(() => { 114 }, 1000) 115 }) 116 }) 117 if ($('.qrcode-img').length > 0) { 118 $('.qrcode-img').qrcode({ 119 text: location.href, //设置äºç»´ç å 容ï¼å¿ é¡» 120 render: "canvas", //è®¾ç½®æ¸²ææ¹å¼ ï¼æä¸¤ç§æ¹å¼ tableåcanvasï¼é»è®¤æ¯canvasï¼ 121 width: 90, //设置宽度 122 height: 90, //设置é«åº¦ 123 }); 124 } 125 if ($('.share-btn').length > 0) { 126 var clipboard = new ClipboardJS('.share-btn'); 127 clipboard.on('success', function (e) { 128 show_tip('å享信æ¯å¤å¶æåï¼å享ç»å¥½æåä¸èµ·çï½'); 129 }); 130 clipboard.on('error', function (e) { 131 console.log(e); 132 }); 133 } 134 if ($('.copy').length > 0) { 135 var down_clipboard = new ClipboardJS('.copy'); 136 down_clipboard.on('success', function (e) { 137 show_tip('ä¸è½½å°åå¤å¶æå'); 138 }); 139 down_clipboard.on('error', function (e) { 140 console.log(e); 141 }); 142 } 143 if ($('.urlcopy').length > 0) { 144 var url_clipboard = new ClipboardJS('.urlcopy'); 145 url_clipboard.on('success', function (e) { 146 show_tip('å°åå¤å¶æåï¼èµ¶å¿«å享ç»å°ä¼ä¼´å§ï¼'); 147 }); 148 url_clipboard.on('error', function (e) { 149 console.log(e); 150 }); 151 } 152 $(function(){ 153 $(window).scroll(function() { 154 if($(window).scrollTop() >= 100){ 155 $('.ant-back-top').fadeIn(300); 156 }else{ 157 $('.ant-back-top').fadeOut(300); 158 } 159 }); 160 $('.ant-back-top').click(function(){ 161 $('html,body').animate({scrollTop: '0px'}, 800);}); 162}); 163}); 164 165
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.