1$(document).ready(function () { 2 var banOffTop = $(".navbar").offset().top; //è·åå°è·ç¦»é¡¶é¨çåç´è·ç¦» 3 var scTop = 0; //åå§ååç´æ»å¨çè·ç¦» 4 $(document).scroll(function() { 5 scTop = $(this).scrollTop(); //è·åå°æ»å¨æ¡æå¨çè·ç¦» 6 //console.log(scTop);//æ¥çæ»å¨æ¶ï¼åç´æ¹åä¸ï¼æ»å¨æ¡æ»å¨çè·ç¦» 7 if (scTop > banOffTop) { 8 //æ ¸å¿é¨åï¼å½æ»å¨æ¡æå¨çè·ç¦»å¤§äºçäºå¯¼èªæ è·ç¦»é¡¶é¨çè·ç¦»æ¶ï¼æ·»å æå®çæ ·å¼ 9 $(".navbar").addClass("fixed-top"); 10 } else { 11 $(".navbar").removeClass("fixed-top"); 12 } 13 }); 14 15 if ( $("#swiper-box1").length > 0 ) { 16 var swiper1 = new Swiper('#swiper-box1', { 17 loop: true, 18 slidesPerView: 'auto', 19 navigation: { 20 nextEl: '.swiper-button-next', 21 prevEl: '.swiper-button-prev', 22 }, 23 }); 24 //é¼ æ ç§»åºéèæé®ï¼ç§»å ¥æ¾ç¤ºæé® 25 swiper1.el.onmouseover=function(){ 26 swiper1.navigation.$nextEl.removeClass('hide'); 27 swiper1.navigation.$prevEl.removeClass('hide'); 28 } 29 swiper1.el.onmouseout=function(){ 30 swiper1.navigation.$nextEl.addClass('hide'); 31 swiper1.navigation.$prevEl.addClass('hide'); 32 } 33 } 34 35 if ( $("#swiper-box2").length > 0 ) { 36 var swiper2 = new Swiper('#swiper-box2', { 37 loop: true, 38 slidesPerView: 'auto', 39 navigation: { 40 nextEl: '.swiper-button-next', 41 prevEl: '.swiper-button-prev', 42 }, 43 }); 44 //é¼ æ ç§»åºéèæé®ï¼ç§»å ¥æ¾ç¤ºæé® 45 swiper2.el.onmouseover=function(){ 46 swiper2.navigation.$nextEl.removeClass('hide'); 47 swiper2.navigation.$prevEl.removeClass('hide'); 48 } 49 swiper2.el.onmouseout=function(){ 50 swiper2.navigation.$nextEl.addClass('hide'); 51 swiper2.navigation.$prevEl.addClass('hide'); 52 } 53 } 54 55 if ( $("#swiper-box3").length > 0 ) { 56 var swiper3 = new Swiper('#swiper-box3', { 57 loop: true, 58 slidesPerView: 'auto', 59 navigation: { 60 nextEl: '.swiper-button-next', 61 prevEl: '.swiper-button-prev', 62 }, 63 }); 64 //é¼ æ ç§»åºéèæé®ï¼ç§»å ¥æ¾ç¤ºæé® 65 swiper3.el.onmouseover=function(){ 66 swiper3.navigation.$nextEl.removeClass('hide'); 67 swiper3.navigation.$prevEl.removeClass('hide'); 68 } 69 swiper3.el.onmouseout=function(){ 70 swiper3.navigation.$nextEl.addClass('hide'); 71 swiper3.navigation.$prevEl.addClass('hide'); 72 } 73 } 74 75 if ( $("#swiper-box5").length > 0 ) { 76 var swiper5 = new Swiper('#swiper-box5', { 77 loop: true, 78 slidesPerView: 'auto', 79 navigation: { 80 nextEl: '.swiper-button-next', 81 prevEl: '.swiper-button-prev', 82 }, 83 }); 84 //é¼ æ ç§»åºéèæé®ï¼ç§»å ¥æ¾ç¤ºæé® 85 swiper5.el.onmouseover=function(){ 86 swiper5.navigation.$nextEl.removeClass('hide'); 87 swiper5.navigation.$prevEl.removeClass('hide'); 88 } 89 swiper5.el.onmouseout=function(){ 90 swiper5.navigation.$nextEl.addClass('hide'); 91 swiper5.navigation.$prevEl.addClass('hide'); 92 } 93 } 94}); 95function fc_setActive(category){category = category||'é¦é ';jQuery('ul.navbar-nav li').each(function(k,v){jQuery(this).removeClass('active');});jQuery('ul.navbar-nav li[data-active="'+category+'"]').addClass('active');}
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.