1$(function(){ 2 var act = {}; 3 act._switching = false; 4 /** 5 * appsä¸è½½é¡µ ææjs 6 */ 7 var contentJp = '<div class="mobile_select jp_select clear">' 8 +'<a class="n-android hover">Android</a>' 9 +'<a class="n-iphone">iPhone</a>' 10 +'<a class="n-ipad">iPad</a>' 11 +'<img src="./img/move-cur.gif" class="move_img">' 12 +'</div>' 13 +'<div class="mobile_con clear"><ul class="fix_box">' 14 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="https://www.mixiujie.cn/download_app/mixiujie.apk" class="jp_download" target="_blank"></a>ç´æ¥ä¸è½½å°çµè</div></li>' 15 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="#" class="jp_download" target="_blank"></a>æ¿æ´»ç ï¼xiuxiu</div></li>' 16 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="#" class="jp_download" target="_blank"></a>æ¿æ´»ç ï¼xiuxiu</div></li>' 17 +'</ul></div>'; 18 var contentJky = '<div class="mobile_select clear">' 19 +'<a class="n-android hover" href="javascript:;">Android</a>' 20 +'<a class="n-iphone" href="javascript:;">iPhone</a>' 21 +'<a class="n-ipad" href="javascript:;">iPad</a>' 22 +'<img class="move_img" src="./img/move-cur.gif" style="left: 80px;">' 23 +'</div>' 24 +'<div class="mobile_con clear"><ul class="fix_box" >' 25 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="https://www.mixiujie.cn/download_app/mixiujie.apk" class="jky_download" target="_blank"></a>ç´æ¥ä¸è½½å°çµè</div></li>' 26 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="#" class="jky_download" target="_blank"></a>æ¿æ´»ç ï¼xiuxiu</div></li>' 27 +'<li><div class="n-wechat fl"><img src="./img/download.png"></div><div class="n-download fr"><a href="#" class="jky_download" target="_blank"></a>æ¿æ´»ç ï¼xiuxiu</div></li>' 28 +'</ul></div>'; 29 $(".code_area .code_btn").click(function(){ 30 var index = $(this).index(); 31 if($('.jp').hasClass('active')){ 32 var content =contentJp; 33 }else{ 34 var content =contentJky; 35 } 36 b = new XDLightBox({ 37 title: "", 38 lightBoxId: "alert_download", 39 contentHtml: content, 40 scroll: false 41 }); 42 b.init(); 43 $(".mobile_select a").mouseover(function(){ 44 var index_alert = $(".mobile_select a:visible").index($(this)); 45 $(".mobile_select a").removeClass("hover"); 46 $(this).addClass("hover"); 47 $(".fix_box").stop(true,true).animate({left: ($(".mobile_con").width())*index_alert*(-1)},800); 48 $(".move_img").stop(true,true).animate({left: 80+index_alert*(170)},800); 49 }); 50 $("#alert_download .mobile_select a:visible").eq(index).mouseover(); 51 }); 52}) 53//è½å°é¡µ è½®æjs by pidan 54window.onload = function () { 55 var imglist = document.querySelectorAll(".phone_img"); 56 var content_right = document.querySelector(".phone_content"); 57 var aSpan = content_right.getElementsByTagName("span"); 58 var prev = aSpan[0]; 59 var next = aSpan[1]; 60 //å¾çå表 61 var n = imglist.length; 62 //è¿ä¸ªindexæ¯å ¨å±åéï¼ç¼åå¾çç顺åºå¼ 63 var index = 0; 64 //å¸å°å¼ï¼é²æ¢è¿ç»å¿«éç¹å»ä¸ä¸ä¸ªé æå¡é¡¿ 65 var fade = false; 66 //设置éæåº¦ 67 function setOpacity(obj, opa) { 68 if (obj.filters) { 69 obj.style.filter = "alpha(opacity:" + opa + ")"; 70 } else { 71 obj.style.opacity = opa / 100; 72 } 73 } 74 //æ¸å ¥å½æ° ï¼ä¸ºä¸ä¸å¼ ï¼å³å°æ¾ç¤ºçï¼å¾çæç¨ 75 function fadeIn(obj) { 76 fade = true; 77 obj.style.display = "block"; 78 var opa = 0; 79 var timer = setInterval(func, 1);//è¿éçæ°åå¯ä»¥æ§å¶é度 80 function func() { 81 if (opa < 100) { 82 opa += 0.5;//æ¹åè¿éæ°åå¯ä»¥æ§å¶é度 83 setOpacity(obj, opa) 84 } else { 85 opa = 100; 86 clearInterval(timer); 87 fade = false 88 } 89 } 90 } 91 //æ·¡åºå½æ° 为å³å°éèçç¼åå¾çæç¨ 92 function fadeOut(obj) { 93 fade = true; 94 var opa = 100; 95 var timer = setInterval(func, 1); 96 function func() { 97 if(opa > 0) { 98 opa -= 0.4; 99 setOpacity(obj, opa) 100 } else { 101 opa = 0; 102 clearInterval(timer); 103 obj.style.display = "none" 104 } 105 } 106 } 107 108 next.onclick = function() { 109 if (fade) { 110 return 111 } else { 112 fadeOut(imglist[index]); 113 index += 1; 114 if (index == n) index = 0; 115 fadeIn(imglist[index]); 116 } 117 } 118 //ç¹å»ä¸ä¸å¼ 忢 119 prev.onclick = function() { 120 if (fade) { 121 return 122 } else { 123 fadeOut(imglist[index]); 124 if (index == 0) index = n; 125 index -= 1; 126 fadeIn(imglist[index]); 127 } 128 } 129 //èªå¨ææ¾å¯å 130 function play() { 131 auto = setInterval(function() { 132 next.onclick() 133 }, 134 3000); 135 } 136 function stop() { 137 clearInterval(auto); 138 } 139 play(); 140 content_right.onmouseover = stop; 141 content_right.onmouseout = play; 142};
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.