1$(function() { 2 //æ°ä½å±åæ¢1 3 $(".jp_select li").click(function () { 4 $(this).addClass("li_chose").siblings().removeClass("li_chose"); 5 var index = $(".jp_select li").index(this); 6 $(".chose").eq(index).addClass("jpblaock").siblings().removeClass('jpblaock'); 7 $(".chose").eq(index).addClass("fadeInRight").siblings().removeClass('fadeInRight'); 8 }); 9 10 changProductList(1); 11 $('.subjects').hide(); 12 $('.subject_first').show(); 13 $('.tag_1 li').click(function(event) { 14 $(this).addClass('tab'); 15 $(this).siblings().removeClass('tab'); 16 var id = $(this).attr('data-id'); 17 $('.subjects_'+id).siblings('.subjects').hide(); 18 $('.subjects_'+id).show(); 19 changProductList(id) 20 }) 21 22 $(".newmobei_category div").click(function (event) { 23 $(this).addClass('active'); 24 $(this).siblings().removeClass('active') 25 var id = $(this).attr('data-id'); 26 $('.mobile_subjects_'+id).siblings('.subjects').hide(); 27 $('.mobile_subjects_'+id).show(); 28 changMobileProductList(id) 29 }) 30 31 $(".newmobei_category div").click(function (event) { 32 $(this).addClass('active'); 33 $(this).siblings().removeClass('active') 34 var id = $(this).attr('data-id'); 35 $('.mobile_subjects_'+id).siblings('.subjects').hide(); 36 $('.mobile_subjects_'+id).show(); 37 changMobileProductList(id) 38 // $($(".newmobei_category div")[0]).click() 39 }) 40 $(".newmobei_category").each(function(){ 41 $(this).find(":first-child").click() 42 }); 43 // å ä¸é¼ æ çç¹å»ææ 44 $(".switch_icon_span").click(function(){ 45 if ($(this).text() == "Mehr Details") { 46 $(this).text("Details ausblenden"); 47 $(this).css("color","#A0A0A0").siblings("i").css("color","#A0A0A0"); 48 $(this).parent(".switch_icon").addClass('switch_icon1'); 49 $(this).parent(".switch_icon").siblings(".de_box_icon").css("height","auto"); 50 $(this).siblings("i").removeClass("icon-arrow-down").addClass("icon-arrow-up"); 51 }else{ 52 $(this).text("Mehr Details"); 53 $(this).removeAttr("style").siblings("i").removeAttr("style"); 54 $(this).parent(".switch_icon").removeClass('switch_icon1'); 55 $(this).parent(".switch_icon").siblings(".de_box_icon").css("height","0px"); 56 $(this).siblings("i").removeClass("icon-arrow-up").addClass("icon-arrow-down"); 57 } 58 }); 59 60 var myde_swiper = new Swiper ('#de_swiper_bottom', { 61 spaceBetween: 10, 62 centeredSlides: true, 63 loop: true, 64 resizeReInit: true, 65 grabCursor: true, 66 // 妿éè¦åé¡µå¨ 67 pagination: { 68 el: '#swiper_pagination_de', 69 clickable: true 70 }, 71 // 妿éè¦åè¿åéæé® 72 navigation: { 73 nextEl: '#swiper_button_prev_de', 74 prevEl: '#swiper_button_prev_de', 75 }, 76 autoplay: { 77 delay: 4000, 78 disableOnInteraction: false 79 }, 80 }) 81 // $(".jp_select li").click(function() { 82 // $(this).addClass("li_chose").siblings().removeClass("li_chose"); 83 // var index = $(".jp_select li").index(this); 84 // $(".chose").eq(index).addClass("jpblaock").siblings().removeClass('jpblaock'); 85 // }) 86 // //å ¬åéè 87 // $(".uk_bulletin_span>img").click(function(){ 88 // $(".uk_bulletin").fadeOut(500); 89 // }) 90 91 //é¦é¡µè§é¢åºç°åæ¶å¤± 92 $('.l3.xp_home_video .video_section-play').click(function () { 93 var iframesrc=$(this).siblings('a').find('img').attr('alt'); 94 $(".video-overlay-background").find('iframe').attr('src',iframesrc); 95 $('.video-overlay-background').addClass('info').show(); 96 setTimeout(function(){ 97 document.getElementById("overlay-video-container_iframe").style.height=document.getElementById("overlay-video-container_iframe").scrollWidth/16*9+"px"; 98 },500) 99 });
100 $('.l3.xp_home_video .close-button').click(function () { 101 $(this).parents('.video-overlay-background').removeClass('info').hide(); 102 $(this).siblings('iframe').attr('src',''); 103 }) 104 105 //é¦é¡µè§é¢åºç°åæ¶å¤± 106 $('.video_section-play').click(function () { 107 var iframesrc=$(this).siblings('a').find('img').attr('alt'); 108 $(this).siblings('.video-overlay-background').find('iframe').attr('src',iframesrc); 109 $(this).siblings('.video-overlay-background').addClass('info').show(); 110 }); 111 $('.close-button').click(function () { 112 $(this).parents('.video-overlay-background').removeClass('info').hide(); 113 var iframeID=$(this).siblings('iframe').attr('src'); 114 $(this).siblings('iframe').attr('src',iframeID); 115 }) 116 117 //è§é¢åºç°åæ¶å¤± 118 $('#swiper3 .ph_video_play').click(function () { 119 var iframesrc=$(this).siblings('img').attr('alt'); 120 $(this).parents(".swiper-slide").siblings().find('.ph_swiper_video').removeClass('ph_info').hide().find('iframe').attr('src',""); 121 $(this).siblings('.ph_swiper_video').find('iframe').attr('src',iframesrc); 122 $(this).siblings('.ph_swiper_video').addClass('ph_info').show(); 123 }); 124 $('#swiper3 .ph_close_button').click(function () { 125 $(this).parents('.ph_swiper_video').removeClass('ph_info').hide(); 126 $(this).siblings('iframe').attr('src',""); 127 }); 128 129}) 130 131function changProductList(id){ 132 var configure = { 133 slidesPerView: 4, 134 spaceBetween: 40, 135 breakpoints: { 136 768: { 137 slidesPerView: '2', 138 spaceBetween: 20, 139 }, 140 480: { 141 slidesPerView: '1', 142 spaceBetween: 20, 143 }, 144 }, 145 navigation:{} 146 }; 147 if(id === 1){ 148 $('.subject_first').each(function (){ 149 var module_id = $(this).attr('data-id'); 150 151 slideLength = $('#swiperProduct' + module_id + " .category-slide" ).length; 152 var button_id = module_id.substring(0,module_id.indexOf('_')); 153 if(slideLength <= configure.slidesPerView){ 154 $('#swiper-button-next-'+button_id).hide(); 155 $('#swiper-button-prev-'+button_id).hide(); 156 }else { 157 $('#swiper-button-next-'+button_id).show(); 158 $('#swiper-button-prev-'+button_id).show(); 159 configure.navigation.nextEl = '#swiper-button-next-'+button_id; 160 configure.navigation.prevEl = '#swiper-button-prev-'+button_id; 161 } 162 new Swiper('#swiperProduct'+module_id,configure); 163 }) 164 }else{ 165 let slideLength = $('#swiperProduct' + id + " .category-slide" ).length; 166 var button_id = id.substring(0,id.indexOf('_')); 167 168 if(slideLength <= configure.slidesPerView){ 169 $('#swiper-button-next-'+button_id).hide() 170 $('#swiper-button-prev-'+button_id).hide() 171 }else { 172 $('#swiper-button-next-'+button_id).show() 173 $('#swiper-button-prev-'+button_id).show() 174 configure.navigation.nextEl = '#swiper-button-next-'+button_id; 175 configure.navigation.prevEl = '#swiper-button-prev-'+button_id; 176 } 177 178 179 180 new Swiper('#swiperProduct'+id,configure); 181 } 182 183 184} 185 186function changMobileProductList(id){ 187 var configure = { 188 slidesPerView: 4, 189 spaceBetween: 40, 190 breakpoints: { 191 768: { 192 slidesPerView: '2', 193 spaceBetween: 20, 194 }, 195 480: { 196 slidesPerView: '1', 197 spaceBetween: 20, 198 }, 199 }, 200 navigation:{} 201 }; 202 if(id === 1){ 203 $('.subject_first').each(function (){ 204 var module_id = $(this).attr('data-id'); 205 206 slideLength = $('#swiperMobileProduct' + module_id + " .category-slide" ).length; 207 var button_id = module_id.substring(0,module_id.indexOf('_')); 208 if(slideLength <= configure.slidesPerView){ 209 $('#swiper-mobile-button-next-'+button_id).hide(); 210 $('#swiper-mobile-button-prev-'+button_id).hide(); 211 }else { 212 $('#swiper-mobile-button-next-'+button_id).show(); 213 $('#swiper-mobile-button-prev-'+button_id).show(); 214 configure.navigation.nextEl = '#swiper-mobile-button-next-'+button_id; 215 configure.navigation.prevEl = '#swiper-mobile-button-prev-'+button_id; 216 } 217 new Swiper('#swiperMobileProduct'+module_id,configure); 218 }) 219 }else{ 220 let slideLength = $('#swiperMobileProduct' + id + " .category-slide" ).length; 221 var button_id = id.substring(0,id.indexOf('_')); 222 223 if(slideLength <= configure.slidesPerView){ 224 $('#swiper-mobile-button-next-'+button_id).hide() 225 $('#swiper-mobile-button-prev-'+button_id).hide() 226 }else { 227 $('#swiper-mobile-button-next-'+button_id).show() 228 $('#swiper-mobile-button-prev-'+button_id).show() 229 configure.navigation.nextEl = '#swiper-mobile-button-next-'+button_id; 230 configure.navigation.prevEl = '#swiper-mobile-button-prev-'+button_id; 231 } 232 233 234 235 new Swiper('#swiperMobileProduct'+id,configure); 236 } 237 238 239} 240 241function changMobileProductList(id){ 242 var configure = { 243 slidesPerView: 4, 244 spaceBetween: 40, 245 breakpoints: { 246 768: { 247 slidesPerView: '2', 248 spaceBetween: 20, 249 }, 250 480: { 251 slidesPerView: '1', 252 spaceBetween: 20, 253 }, 254 }, 255 navigation:{} 256 }; 257 if(id === 1){ 258 $('.subject_first').each(function (){ 259 var module_id = $(this).attr('data-id'); 260 261 slideLength = $('#swiperMobileProduct' + module_id + " .category-slide" ).length; 262 var button_id = module_id.substring(0,module_id.indexOf('_')); 263 if(slideLength <= configure.slidesPerView){ 264 $('#swiper-mobile-button-next-'+button_id).hide(); 265 $('#swiper-mobile-button-prev-'+button_id).hide(); 266 }else { 267 $('#swiper-mobile-button-next-'+button_id).show(); 268 $('#swiper-mobile-button-prev-'+button_id).show(); 269 configure.navigation.nextEl = '#swiper-mobile-button-next-'+button_id; 270 configure.navigation.prevEl = '#swiper-mobile-button-prev-'+button_id; 271 } 272 new Swiper('#swiperMobileProduct'+module_id,configure); 273 }) 274 }else{ 275 let slideLength = $('#swiperMobileProduct' + id + " .category-slide" ).length; 276 var button_id = id.substring(0,id.indexOf('_')); 277 278 if(slideLength <= configure.slidesPerView){ 279 $('#swiper-mobile-button-next-'+button_id).hide() 280 $('#swiper-mobile-button-prev-'+button_id).hide() 281 }else { 282 $('#swiper-mobile-button-next-'+button_id).show() 283 $('#swiper-mobile-button-prev-'+button_id).show() 284 configure.navigation.nextEl = '#swiper-mobile-button-next-'+button_id; 285 configure.navigation.prevEl = '#swiper-mobile-button-prev-'+button_id; 286 } 287 288 289 290 new Swiper('#swiperMobileProduct'+id,configure); 291 } 292 293 294} 295 296// //æ»å¨æ¡æä»¶è°ç¨ 297// $(document).ready(function() { 298// $('#example2, #example3, #example4').rollbar({ 299// zIndex: 80,//z-indexå¼ 300// sliderOpacity: 1 ,//æ»åéæåº¦ 301// sliderSize: "60%" //æ»å宽度 302// }); 303// }); 304 305 306var home_swiper1 = new Swiper('#swiper', { //åå§åSwiper 307 autoplay: { //èªå¨åæ¢ 308 delay: 3000, 309 stopOnLastSlide: false, 310 disableOnInteraction: false, 311 }, 312 navigation: { 313 nextEl: '#swiper-button-next', 314 prevEl: '#swiper-button-prev' 315 }, 316 pagination: { //åé¡µå¨ 317 el: '#swiper-pagination', 318 clickable: true, 319 }, 320 spaceBetween: 10, 321 centeredSlides: true, 322 loop: true, 323 resizeReInit: true, 324 grabCursor: true, 325}) 326 327var mySwiper2min = new Swiper('.l3 .swiper-container', { //åå§åSwiper 328 autoplay:false, 329 slidesPerView: 2.5, 330 spaceBetween: 20, 331 noSwiping : true, 332 centeredSlides: true, 333 loop: true, 334 breakpoints: { 335 768: { 336 slidesPerView: '1', 337 spaceBetween: 20, 338 } 339 }, 340 pagination: { 341 el: '#videoSwiper', 342 clickable: true, 343 }, 344 345}) 346 347 348$('.l3 .swiper-container .swiper-slide').mouseenter(function () { 349 mySwiper2min.autoplay.stop(); 350}); 351$('.l3 .swiper-container .swiper-slide').mouseleave(function () { 352 mySwiper2min.autoplay.start(); 353}); 354 355 356//é¦é¡µä¸»æ¨è§é¢è½®æ 357var ztswiper3 = new Swiper('#swiper3', { 358 centeredSlides: true, 359 loop: true, 360 grabCursor: true, 361 slidesPerView: '1.5', 362 breakpoints: { 363 768: { //å½å±å¹å®½åº¦å¤§äºçäº768 364 slidesPerView: 1, 365 }, 366 }, 367 navigation: { 368 nextEl: '.swiper-button-next3',
369 prevEl: '.swiper-button-prev3', 370 }, 371 autoplay: { 372 delay: 100000000, 373 disableOnInteraction: false, 374 }, 375 pagination: { 376 el: '.swiper-pagination3', 377 clickable: true, //为trueæ¶ï¼æç¤ºç¹å页å¨ä¼æ§å¶Swiper忢 378 }, 379 380}); 381 382 383//设置cookie 384function newsetCookie(name, value) { 385 var exp = new Date(); 386 exp.setTime(exp.getTime() + 24*60*60*1000); //æææ1天 387 document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() + ";path="; 388} 389 390function showPopUp(type,seconds,daily,daily_time){ 391 switch (type){ 392 case "1": 393 $('.popup_home_box').show(); 394 $('.new_popup_home_box').show(); 395 break; 396 case "2": 397 if (seconds>0){ 398 time_pop_up = setInterval(function (){ 399 $('.popup_home_box').show(); 400 $('.new_popup_home_box').show(); 401 },seconds*1000) 402 }else{ 403 $('.popup_home_box').show(); 404 $('.new_popup_home_box').show(); 405 } 406 break; 407 case "3": 408 if(daily > 0 && daily_time > 0){ 409 var checkDate = $.getCookie("pop_day"); 410 if(checkDate!== null){ 411 var pop_daily_time = $.getCookie('pop_daily_time') 412 if(pop_daily_time>2){ 413 pop_daily_time = pop_daily_time-1; 414 $.setCookie('pop_daily_time',pop_daily_time); 415 }else{ 416 $('.popup_home_box').show(); 417 $('.new_popup_home_box').show(); 418 } 419 }else{ 420 $.setCookie('pop_day',"open",{expires:daily}); 421 $.setCookie('pop_daily_time',daily_time) 422 } 423 }else{ 424 $('.popup_home_box').show(); 425 $('.new_popup_home_box').show(); 426 } 427 break; 428 429 430 } 431 432}
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.