1$(function () { 2 // wowåå§å 3 new WOW().init(); 4 navFixed(); 5}); 6 7// 导èªä¸å¨é¡¶é¨æ¶å ç±»åisfixed 8function navFixed() { 9 ys.isFixed(".ys_hd_pc"); 10} 11// pc䏿 12$(".s_navli").hover(function (e) { 13 e.stopPropagation(); 14 $(this).find(".s_navbot").stop().slideDown(); 15 }, 16 function () { 17 $(this).find(".s_navbot").stop().slideUp(); 18 } 19) 20$("body").hover(function () { 21 $(".s_navbot").stop().slideUp(); 22}); 23// è¯è¨ 24$(".s_lang").hover(function () { 25 $(this).find(".s_langbot").stop().slideDown(); 26 $(this).addClass("on"); 27 }, 28 function () { 29 $(this).find(".s_langbot").stop().slideUp(); 30 $(this).removeClass("on"); 31 } 32) 33// å享 34ys.shareInit(); 35// æé³äºç»´ç 36if ($(window).width() < 1200) { 37 $(".s_footsharehov").click(function (e) { 38 e.stopPropagation(); 39 $(this).find(".s_footsharebot").stop().fadeToggle(); 40 } 41 ) 42 $("body").click(function () { 43 $(".s_footsharebot").stop().fadeOut(); 44 }); 45} else { 46 $(".s_footsharehov").hover(function (e) { 47 e.stopPropagation(); 48 $(this).find(".s_footsharebot").stop().fadeToggle(); 49 } 50 ) 51} 52// ææºç«¯å¯¼èª 53ys.phNavInit(4); 54 55$('.ys_phnav_lisbox a').click(function(e){ 56 e.stopPropagation(); 57}); 58 59 60// åå°æ£ç´¢ä½ç½® 61$(window).on("load",function(){ 62 var reg = "_"; 63 var navHeight = 80; 64 if ($(window).width() < 1200) { 65 navHeight = 64; 66 } 67 var strArr = (window.location.href).split(reg); 68 if (strArr[strArr.length-1].length==1 && $(".s_nyptop").length>0) { 69 $("html,body").animate({ 70 scrollTop: $('.s_nyptop').offset().top - navHeight + 1 71 }, 700); 72 } 73}); 74// é¼ æ æ»å¨æ ·å¼å¯¹åºæ¹å 75function asideJump() { 76 var reg = "?tp="; 77 for(var i = 1;i<= $('.load_jump:last-child').attr('yxdatop-pag');i++){ 78 if($('.load_jump[yxdatop-pag="' + i + '"]').length>0){ 79 var tops = $('.load_jump[yxdatop-pag="' + i + '"]').offset().top - $(window).height()/2; 80 if($(window).scrollTop() > tops){ 81 $('.load_jump').siblings('.load_jump').stop().removeClass('act_nr'); 82 $('.load_jump[yxdatop-pag="' + i + '"]').stop().addClass('act_nr'); 83 $('.s_navli.yxnav_active1 .s_navbotli').find('a').each(function(){ 84 var zhi = $(this).attr('href').split(reg)[1]; 85 if(zhi==i){ 86 $(this).parents('.s_navbotli').stop().addClass('yxnav_active2'); 87 $(this).parents('.s_navbotli').siblings('.s_navbotli').stop().removeClass('yxnav_active2'); 88 } 89 }); 90 } 91 } 92 } 93} 94// è½®æ 95function rotaplay(box,slick1){ 96 var heightb = $(window).scrollTop(); 97 if($(box).length>0){ 98 if(heightb > $(box).offset().top - 500){ 99 $(slick1).slick('slickPlay'); 100 } 101 if(heightb > $(box).offset().top + 350){ 102 $(slick1).slick('slickPause'); 103 } 104 } 105} 106// swipeè½®æ 107function swipeplay(box,swipe1){ 108 var heightb = $(window).scrollTop(); 109 if($(box).length>0){ 110 if(heightb > $(box).offset().top - 500){ 111 swipe1.autoplay.start(); 112 } 113 if(heightb > $(box).offset().top + 350){ 114 swipe1.autoplay.stop(); 115 } 116 } 117}
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.