1var loopflag = true; 2$(function(){ 3 if($(window).width()>767){ 4 // load(); 5 } 6 pc_slider(); 7 banner_news(); 8 9 banner_cicle(); 10 // exhibition_num(); 11 // exhibition_slider(); 12 // exhibition_list(); 13 setTimeout(function () { 14 15 wowInt(); 16 $(".indexbanner").addClass("on"); 17 18 }, 200); 19 20 21}) 22 23 24function pc_slider(){ 25 try { 26 var brand3Swiper = new Swiper('.pc_slider .swiper-container', { 27 28 effect : 'slide', 29 autoplay : 5000, 30 speed:1000, 31 loop: true, 32 pagination: '.pc_slider .swiper-pagination', 33 paginationClickable :true, 34 autoplayDisableOnInteraction : false, 35 prevButton:'.pc_slider .swiper-button-prev', 36 nextButton:'.pc_slider .swiper-button-next' 37 }) 38 39 40 // var test2 = setInterval(function () { 41 // brand3Swiper.slideNext(); 42 // }, 5000); 43 44 // $(".pc_slider").hover(function(){ 45 // clearInterval(test2); 46 // },function(){ 47 // test2 = setInterval(function () { 48 // brand3Swiper.slideNext(); 49 // }, 5000); 50 // }) 51 }catch (e) { } 52 53 54 55} 56function banner_news(){ 57 var brand3Swiper = new Swiper('.banner_news .swiper-container', { 58 59 effect : 'slide', 60 // autoplay : 5000, 61 speed:1000, 62 loop: true, 63 pagination: '.banner_news .swiper-pagination', 64 paginationClickable :true, 65 autoplayDisableOnInteraction : false 66 }) 67 68 69 70} 71 72function banner_cicle(){ 73 $(".banner_cicle li").click(function(){ 74 $(".indexbanner>.pc_banner").addClass("hide") 75 var $this=$(this).index(); 76 $(this).addClass("on").siblings().removeClass("on"); 77 78 $(".banner_p p").eq($(this).index()).show().siblings().hide(); 79 $(".banner_title").removeClass("on"); 80 $(".banner_title").css({'left':$this*22 + '%'}); 81 // $(".banner_title").animate({'left':$this*22 + '%'},1000) 82 83 if($(".banner_cicle li").eq(0).hasClass("on")){ 84 $(".banner_title").addClass("on"); 85 // $(".index_exhibition").html(""); 86 }else{ 87 $(".banner_title").removeClass("on") 88 } 89 90 91 if($(".banner_cicle li:last-child").hasClass("on")){ 92 $(".banner_cicle li").eq(0).addClass("one") 93 }else{ 94 $(".banner_cicle li").eq(0).removeClass("one") 95 } 96 97 return true 98 99 }) 100 101 102} 103 104 105function exhibition_num(){ 106 if($(window).width()>1024){ 107 var num = 5; 108 }else{ 109 num = 3; 110 } 111 if($(".exhibition_list li").length>=num){ 112 // loopflag = true; 113 $(".exhibition_list").removeClass("exhibition_list_no"); 114 $(".exhibition_list .but").show(); 115 exhibition_list(); 116 }else{ 117 // loopflag = false; 118 $(".exhibition_list").addClass("exhibition_list_no"); 119 $(".exhibition_list .but").hide(); 120 121 } 122 123} 124 125 126function exhibition_slider(){ 127 if($(window).width()>1024){ 128 var num = 5; 129 }else{ 130 num = 3; 131 } 132 if($(".exhibition_list li").length>=num){ 133 loopflag = true; 134 }else{ 135 loopflag = false; 136 } 137 138 var mySwiper = new Swiper('.exhibition_slider .swiper-container', { 139 effect : 'slide', 140 // slidesPerView: num, 141 // autoplay : 5000, 142 speed:0, 143 loop: false, 144 pagination: '.index_exhibition .swiper-pagination', 145 paginationClickable :true, 146 autoplayDisableOnInteraction : false, 147 prevButton:'.index_exhibition .swiper-button-prev', 148 nextButton:'.index_exhibition .swiper-button-next', 149 150 151 }) 152 153 if($(".exhibition_list li").length>=num){ 154 155 }else{ 156 $(".exhibition_list li").click(function(){ 157 $(this).addClass("on").siblings().removeClass("on"); 158 mySwiper.slideTo($(this).index(), 1000, false) 159 }) 160 } 161 162 163 164 var brand3Swiper = new Swiper('.exhibition_list .swiper-container', { 165 166 direction:'vertical', 167 mousewheelControl : true, 168 slidesPerView: num, 169 slidesPerGroup : 1, 170 spaceBetween:1, 171 speed:1000, 172 loop: loopflag, 173 centeredSlides: true, 174 pagination: '.index_exhibition .swiper-pagination', 175 paginationClickable :true, 176 autoplayDisableOnInteraction : false, 177 prevButton:'.index_exhibition .swiper-button-prev', 178 nextButton:'.index_exhibition .swiper-button-next', 179 onSlideChangeStart: function(swiper){ 180 var index = $(".exhibition_list .swiper-slide-active").attr("data-swiper-slide-index") 181 var index02 = $(".exhibition_list .swiper-slide-active").attr("data-swiper-slide-index") 182 if ($(window).width() > 1024) { 183 mySwiper.slideTo(index, 0, false) 184 } 185 else { 186 mySwiper.slideTo(index02, 0, false) 187 } 188 }, 189 breakpoints:{ 190 //å½å®½åº¦å°äºçäº1024 191 1024: { 192 mousewheelControl : false, 193 }, 194 } 195 196 }) 197 198 199} 200function exhibition_list(){ 201 // if($(window).width()>1024){
202 // var num = 5; 203 // }else{ 204 // num = 3; 205 // } 206 // if($(".exhibition_list li").length>=num){ 207 // loopflag = true; 208 // }else{ 209 // loopflag = false; 210 // } 211 // var brand3Swiper = new Swiper('.exhibition_list .swiper-container', { 212 213 // direction:'vertical', 214 215 // slidesPerView: num, 216 // slidesPerGroup : 1, 217 // spaceBetween:1, 218 // speed:1000, 219 // loop: loopflag, 220 // pagination: '.index_exhibition .swiper-pagination', 221 // paginationClickable :true, 222 // autoplayDisableOnInteraction : false, 223 // prevButton:'.index_exhibition .swiper-button-prev', 224 // nextButton:'.index_exhibition .swiper-button-next', 225 226 // }) 227} 228 229 230// mousewheelControl : true, 231// mousewheelForceToAxis : true, 232 233 234function load(){ 235 var beforeDate = new Date(); 236 //页é¢å è½½ 237 var $window = $(window), 238 $doc = $(document), 239 $body = $("body"), 240 241 speed = 250; 242 $body.append("<div id=\"pageLoad\" ><div class=\"ni\"><span>0</span></div></div>"); 243 244 var afterDate = new Date(), 245 pagePreLoad = (afterDate - beforeDate), 246 time = 10 / pagePreLoad, 247 preImgLen = 35 / pagePreLoad, 248 n = 0, 249 m = 0, 250 play = setInterval(function () { 251 if (Number(n) >= 100 && Number(m) >= 350) { 252 clearInterval(play); 253 n = 100; 254 m = 350; 255 //页é¢å è½½å®æ¯åæ§è¡(主线) 256 setTimeout(function () { 257 $("#pageLoad").animate({height:"0"},700).slideUp(600); 258 $('.loading-box').hide(); 259 wowInt(); 260 $(".indexbanner").addClass("on"); 261 262 }, 200); 263 } 264 $("#pageLoad").find("span").text(Math.floor(n) + "%"); 265 n += time; 266 m += preImgLen; 267 }, 100); 268} 269 270 271 272$(function(){ 273 274 $(".banner_cicle li dl").click(function(){ 275 var url = $(this).data("src"); 276 if(url == ""){ 277 return false; 278 }else{ 279 caseAjax(".index_exhibition",url) 280 } 281 282 }) 283}) 284function caseAjax(str,url){ 285 $.ajax({
286 url:url, 287 success:function(msg){ 288 $(str).html(""); 289 $(str).append(msg); 290 pc_slider(); 291 banner_news(); 292 // banner_cicle(); 293 exhibition_num(); 294 exhibition_slider(); 295 // exhibition_list(); 296 } 297 }); 298} 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
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.