1$(function(){ 2 /*bannerè½®æ*/ 3 var banL = $(".banner .swiper-slide").length; 4 var banN = banL<10 ? '0' +banL:banL 5 $(".banner .swiper-taotal").html(banN) 6 7 var bannerSwiper = new Swiper('.banner .swiper-container', { 8 speed: 1000, 9 autoplay: 1500, 10 navigation: { 11 nextEl: '.banner .swiper-button-next', 12 prevEl: '.banner .swiper-button-prev', 13 }, 14 pagination: { 15 el: '.banner .swiper-pagination', 16 type: 'progressbar', 17 }, 18 effect: "fade", 19 on: { 20 init: function () { 21 swiperAnimateCache(this); //éèå¨ç»å ç´ 22 swiperAnimate(this); //åå§å宿å¼å§å¨ç» 23 indexN = (this.activeIndex+1)<10 ? '0' +(this.activeIndex+1):(this.activeIndex+1) 24 $(".banner .swiper-num").html(indexN) 25 }, 26 27 slideChange: function () { 28 swiperAnimate(this); //æ¯ä¸ªslideåæ¢ç»ææ¶ä¹è¿è¡å½åslideå¨ç» 29 indexN = (this.activeIndex+1)<10 ? '0' +(this.activeIndex+1):(this.activeIndex+1) 30 $(".banner .swiper-num").html(indexN) 31 console.log(this.activeIndex) 32 } 33 }, 34 35 36 }) 37 38// é¼ æ ç¹å» 39 var scroll_offset = $(".proSolu .box").offset(); 40 $(".mouse").click(function () { 41 $('html,body').animate({scrollTop: scroll_offset.top - 100}, 800); 42 }) 43 44// 产åè§£å³æ¹æ¡ 45 var proSwiper = new Swiper('.proIn-sli .swiper-container', { 46 speed: 1000, 47 navigation: { 48 nextEl: '.proIn-sli .swiper-button-next', 49 prevEl: '.proIn-sli .swiper-button-prev', 50 }, 51 slidesPerView: 'auto', 52 spaceBetween: 20, 53 breakpoints: { 54 320: { //å½å±å¹å®½åº¦å¤§äºçäº320, 55 spaceBetween: 0, 56 slidesPerView: 1, 57 58 }, 59 770: { //å½å±å¹å®½åº¦å¤§äºçäº768 60 slidesPerView: 'auto', 61 spaceBetween: 10, 62 63 }, 64 1026: { //å½å±å¹å®½åº¦å¤§äºçäº1024 65 spaceBetween: 20, 66 67 } 68 }, 69 on: { 70 slideNextTransitionStart: function(swiper){ 71 if(this.isEnd){ 72 this.navigation.$prevEl.css('display','block'); 73 }else{ 74 this.navigation.$prevEl.css('display','none'); 75 } 76 }, 77 slidePrevTransitionStart: function(swiper){ 78 if(this.isBeginning){ 79 this.navigation.$nextEl.css('display','block'); 80 81 }else{ 82 this.navigation.$nextEl.css('display','none'); 83 } 84 85 }, 86 87 }, 88 }) 89 90 91 92 93 // æ°é»æ»å¨ 94 $(function(){ 95 var minH = $(".mr-home-news-container").height(); 96 $(".newsIn .scrollmagic-pin-spacer").css('min-height','minH') 97 98 var w_width = $(window).width() 99 if(w_width<=1024){ 100 $(".news-right-container-scroll").css('transform','translate(0, 0)') 101 } 102 103 }) 104 105 var myVideo = document.getElementById("myVideo"); 106 $(".about-video").click(function(){ 107 $(".videoIn").show() 108 myVideo.play(); 109 }) 110 111 $(".videoIn .closeP").click(function(){ 112 $(".videoIn").hide() 113 myVideo.pause() 114 }) 115 116 117}) 118
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.