1// æ¬æµ®çª 2// var ad1 = new AdMove("floatImg-zth"); 3// ad1.Run(); 4 5// $(".close-pf").click(function () { 6// $(this).parent(".floatImg").hide(); 7// }); 8 9var swiper1 = new Swiper(".head-swiper", { 10 speed: 1300, 11 spaceBetween: 30, 12 loop: true, 13 effect: "fade", 14 navigation: { 15 nextEl: ".head-next", 16 prevEl: ".head-prev", 17 }, 18 autoplay: { 19 delay: 5000, 20 disableOnInteraction: false, 21 }, 22}); 23 24var swiper2 = new Swiper(".creation-swiper", { 25 loop: true, 26 speed: 800, 27 slidesPerView: 4, 28 spaceBetween: 30, 29 observer: true, 30 autoplay: { 31 delay: 5000, 32 disableOnInteraction: false, 33 }, 34 navigation: { 35 nextEl: ".creation-next", 36 prevEl: ".creation-prev", 37 }, 38 pagination: { 39 el: ".creation-pagination", 40 clickable: true, 41 }, 42}); 43var swiper3 = new Swiper(".xuezi-swiper", { 44 loop: true, 45 speed: 800, 46 slidesPerView: 5, 47 spaceBetween: 30, 48 observer: true, 49 autoplay: { 50 delay: 5000, 51 disableOnInteraction: false, 52 }, 53 navigation: { 54 nextEl: ".xuezi-next", 55 prevEl: ".xuezi-prev", 56 }, 57 pagination: { 58 el: ".xuezi-pagination", 59 clickable: true, 60 }, 61}); 62 63if ($(window).width() > 500 && $(window).width() < 1024) { 64 swiper2.params.slidesPerView = 2; 65 swiper3.params.slidesPerView = 3; 66} else if ($(window).width() <= 500) { 67 swiper2.params.slidesPerView = 1; 68 swiper3.params.slidesPerView = 2; 69} else if ($(window).width() >= 1024) { 70 swiper2.params.slidesPerView = 4; 71 swiper3.params.slidesPerView = 5; 72} 73 74$(window).resize(function () { 75 if ($(window).width() > 500 && $(window).width() < 1024) { 76 swiper2.params.slidesPerView = 2; 77 swiper3.params.slidesPerView = 3; 78 } else if ($(window).width() <= 500) { 79 swiper2.params.slidesPerView = 1; 80 swiper3.params.slidesPerView = 2; 81 } else if ($(window).width() >= 1024) { 82 swiper2.params.slidesPerView = 4; 83 swiper3.params.slidesPerView = 5; 84 } 85}) 86 87// 卿æ°å 88function Utils() { 89} 90Utils.prototype = { 91 constructor: Utils, 92 isElementInView: function (element, fullyInView) { 93 // if ($('.whychooseus-panel h3 strong i').hasClass('count')) { 94 var pageTop = $(window).scrollTop(); 95 var pageBottom = pageTop + $(window).height(); 96 97 var elementTop = $(element).offset().top; 98 99 var elementBottom = elementTop + $(element).height(); 100 101 if (fullyInView === true) { 102 return ((pageTop < elementTop) && (pageBottom > elementBottom)); 103 } else { 104 return ((elementTop <= pageBottom) && (elementBottom >= pageTop)); 105 } 106 // } 107 } 108}; 109var Utils = new Utils(); 110 111var count = 0; 112$(window).on('resize scroll', function () { 113 var isElementInView = Utils.isElementInView($('.creation-number'), true); 114console.log(1) 115 if (isElementInView && !count) { 116 $('.creation-number').each(function () { 117 $(this).prop('Counter', 0).animate({ 118 Counter: $(this).text() 119 // Counter: 30 120 }, { 121 duration: 3000, 122 easing: 'swing', 123 step: function (now) { 124 $(this).text(Math.ceil(now)); 125 } 126 }); 127 }); 128 count++; 129 } 130}); 131 132var arr=[]; 133$(".center-year").each(function (i,v) { 134 arr.push($(v).html().replace(/\s+/g, '').replace("-", ".")) 135 $(v).html(arr[i].substring(0, 7)); 136}) 137$(".center-day").each(function (i, v) { 138 $(v).html(arr[i].slice(-2)); 139}) 140 141 142 143var swiper111 = new Swiper(".swiper-one", { 144 loop: true, 145 speed: 800, 146 slidesPerView: 4, 147 spaceBetween: 30, 148 observer: true, 149 autoplay: { 150 delay: 5000, 151 disableOnInteraction: false, 152 }, 153}); 154 155$("#wp_nav_w3 .wp_nav .nav-item>a").click(function () { 156 console.log(2) 157 if ($(this).parent().hasClass("active")) { 158 $(this).parent().removeClass("active"); 159 } else { 160 $(this).parent().addClass("active"); 161 } 162}) 163 164$(".head-ul>div>.wp_nav>.nav-item>.sub-nav>.nav-item").hover(function(){ 165 $(this).addClass("ceshi") 166},function(){ 167 $(this).removeClass("ceshi") 168}) 169 170//$(".nav-item.xiala>a").attr("href", "javascript:;");
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.