1$(function(){ 2 var special_edition_count = 12; 3 if (4 < special_edition_count) { 4 $('.div-selectors-special-wrapper').addClass('lessen'); 5 } 6 $(".product_turntable").removeClass("view-magnified").addClass("view-turntable") 7 $(".product_turntable").show() 8 $(".product_video_toggle").addClass("view-turntable").removeClass("view-video") 9 $(".product_video").hide(); 10 $(".product-view-viewer .product_video").show(); 11 setTimeout(function() { 12 $(".collection-accessory-cart .cart-main").each(function(i,e){ 13 $(e).children('table').magnificPopup({ 14 type: "image", 15 delegate: "a.active", 16 closeOnContentClick: false, 17 closeBtnInside: false, 18 mainClass: "mfp-guildwars", 19 image: { 20 verticalFit: true, 21 titleSrc: function(e) { 22 return e.el.attr("title") 23 } 24 }, 25 gallery: { 26 enabled: true 27 }, 28 zoom: { 29 enabled: true, 30 duration: 300, 31 opener: function(e) { 32 return e.find("img") 33 } 34 } 35 }) 36 $(e).children('div.table').magnificPopup({ 37 type: "image", 38 delegate: "a.active", 39 closeOnContentClick: false, 40 closeBtnInside: false, 41 mainClass: "mfp-guildwars", 42 image: { 43 verticalFit: true, 44 titleSrc: function(e) { 45 return e.el.attr("title") 46 } 47 }, 48 gallery: { 49 enabled: true 50 }, 51 zoom: { 52 enabled: true, 53 duration: 300, 54 opener: function(e) { 55 return e.find("img") 56 } 57 } 58 }) 59 }) 60 },500) 61 $(".product_view:not(.product_view_new) .product_carousel").magnificPopup({ 62 type: "image", 63 delegate: "a.active", 64 closeOnContentClick: false, 65 closeBtnInside: false, 66 mainClass: "mfp-with-zoom mfp-img-mobile", 67 image: { 68 verticalFit: true, 69 titleSrc: function(e) { 70 return e.el.attr("title") 71 } 72 }, 73 gallery: { 74 enabled: true 75 }, 76 zoom: { 77 enabled: true, 78 duration: 300, 79 opener: function(e) { 80 return e.find("img") 81 } 82 } 83 }) 84 $(".product_view_new .product_carousel").magnificPopup({ 85 type: "image", 86 delegate: "a.active", 87 closeOnContentClick: false, 88 closeBtnInside: false, 89 mainClass: "mfp-guildwars", 90 image: { 91 verticalFit: true, 92 titleSrc: function(e) { 93 return e.el.attr("title") 94 } 95 }, 96 gallery: { 97 enabled: true 98 }, 99 zoom: { 100 enabled: true, 101 duration: 300, 102 opener: function(e) { 103 return e.find("img") 104 } 105 } 106 }) 107 $("#productJsDiv .collection_body_new .product_view_new .product_pic").magnificPopup({ 108 type: "image", 109 delegate: "a.active", 110 closeOnContentClick: false, 111 closeBtnInside: false, 112 mainClass: "mfp-with-zoom mfp-img-mobile mfp-img-detail", 113 image: { 114 verticalFit: true, 115 titleSrc: function(e) { 116 return e.el.attr("title") 117 } 118 }, 119 gallery: { 120 enabled: true 121 }, 122 zoom: { 123 enabled: true, 124 duration: 300, 125 opener: function(e) { 126 return e.find("img") 127 } 128 } 129 }) 130 $(".feature-poster").magnificPopup({ 131 type: "image", 132 delegate: "a.active", 133 closeOnContentClick: false, 134 closeBtnInside: false, 135 mainClass: "mfp-with-zoom mfp-img-mobile mfp-photo", 136 image: { 137 verticalFit: true, 138 titleSrc: function(e) { 139 return e.el.attr("title") 140 } 141 }, 142 gallery: { 143 enabled: true 144 }, 145 zoom: { 146 enabled: true, 147 duration: 300, 148 opener: function(e) { 149 return e.find("img") 150 } 151 } 152 }) 153 /* $("#productJsDiv .collection_body_new .product_view_new .product_pic a.active").click(function(){ 154 var src = "" ; 155 $("#productJsDiv .collection_body_new .product_view_new .product_pic a.active").each(function(i,e){ 156 src = src + $(e).html(); 157 }) 158 })*/ 159 $(".feature-item-pictures-list").slick({ 160 infinite: true,
161 arrows: false, 162 dots: false, 163 autoplay: true, 164 autoplaySpeed: 1500, 165 mobileFirst: true, 166 prevArrow: '<div class="arrow-prev arrow-new"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div>', 167 nextArrow: '<div class="arrow-next arrow-new"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div>', 168 responsive: [{ 169 breakpoint: 320, 170 settings: { 171 slidesToShow: 1, 172 slidesToScroll: 1, 173 } 174 },{ 175 breakpoint: 992, 176 settings: { 177 slidesToShow: 3, 178 slidesToScroll: 1, 179 } 180 }] 181 }) 182 183 $(".feature-item-pictures-list").viewer({ 184 title: false, 185 fullscreen: false, 186 toolbar: { 187 play: 0, 188 reset: 0, 189 prev: 4, 190 next: 4, 191 }, 192 navbar: false, 193 movable: false, 194 rotatable: false, 195 scalable: false, 196 transition: false, 197 zoomable: false, 198 zoomOnTouch: false, 199 zoomOnWheel: false, 200 slideOnTouch: false, 201 toggleOnDblclick: false, 202 }) 203 $(".specifications-banner-list").slick({ 204 arrows: true, 205 dots: true, 206 infinite: true, 207 slidesToShow: 1, 208 slidesToScroll: 1, 209 prevArrow: '<div class="arrow-prev arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 210 nextArrow: '<div class="arrow-next arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 211 responsive: [{ 212 breakpoint: 991, 213 settings: { 214 arrows: false 215 } 216 }] 217 }) 218 $('.specifications-list').click(function(){ 219 if(!($(this).hasClass('active'))){ 220 $(this).children('.specifications-list-text').slideDown(200) 221 $(this).children('.specifications-list-title').children('.icon-close').html('<svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 14 2" style="width: 14px;"><path fill="currentColor" d="M13.000,1.900 L7.900,1.900 L6.100,1.900 L1.000,1.900 C0.503,1.900 0.100,1.497 0.100,1.000 C0.100,0.503 0.503,0.100 1.000,0.100 L6.100,0.100 L7.900,0.100 L13.000,0.100 C13.497,0.100 13.900,0.503 13.900,1.000 C13.900,1.497 13.497,1.900 13.000,1.900 Z"/></svg>') 222 }else { 223 $(this).children('.specifications-list-text').slideUp(200) 224 $(this).children('.specifications-list-title').children('.icon-close').html('<svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 14 14" style="width: 14px; height: 14px;"><path fill="currentColor" d="M13.000,7.899 L7.900,7.899 L7.900,13.000 C7.900,13.496 7.497,13.899 7.000,13.899 C6.503,13.899 6.100,13.496 6.100,13.000 L6.100,7.899 L1.000,7.899 C0.503,7.899 0.100,7.496 0.100,6.999 C0.100,6.503 0.503,6.099 1.000,6.099 L6.100,6.099 L6.100,0.999 C6.100,0.502 6.503,0.100 7.000,0.100 C7.497,0.100 7.900,0.502 7.900,0.999 L7.900,6.099 L13.000,6.099 C13.497,6.099 13.900,6.503 13.900,6.999 C13.900,7.496 13.497,7.899 13.000,7.899 Z"/></svg>') 225 } 226 $(this).toggleClass('active'); 227 }) 228 $(".compare-list").slick({ 229 infinite: false, 230 mobileFirst: true, 231 prevArrow: '<div class="arrow-prev arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36">
231<polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 232 nextArrow: '<div class="arrow-next arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 233 responsive: [{ 234 breakpoint: 320, 235 settings: { 236 slidesToShow: 1, 237 slidesToScroll: 1, 238 arrow: true, 239 dots: true 240 } 241 },{ 242 breakpoint: 992, 243 settings: { 244 slidesToShow: 4, 245 arrow: false, 246 dots: false 247 } 248 }] 249 }) 250 var cl = $('.compare-list .slick-dots li').length; 251 $('.compare-list .slick-dots li').css('width', (100 / cl) + '%'); 252 $(".product_view:not(.product_view_new) .product_carousel").slick({ 253 infinite: false, 254 slidesToShow: 4, 255 mobileFirst: true, 256 prevArrow: '<div class="arrow-prev"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 228.67 228.67"><defs><style>.cls-1{fill:#ddd;}.cls-2{fill:#fff;}</style></defs><circle fill="currentColor" class="cls-1" cx="114.33" cy="114.33" r="114.33"/><path fill="currentColor" class="cls-2" d="M206.82,266.24c-1.78,1.78-1.67,5.64,0,7.53L252,317.06q11.95,2.53,9.41-9.41c-11.13-11-22.11-22.12-33.48-32.85-3.91-3.69-3.91-5.91,0-9.59,11.36-10.74,22.36-21.87,33.5-32.84q2.53-11.95-9.41-9.41Z" transform="translate(-120 -155.67)"/></svg></div>', 257 nextArrow: '<div class="arrow-next"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 228.67 228.67"><defs><style>.cls-1{fill:#ddd;}.cls-2{fill:#fff;}</style></defs><circle fill="currentColor" class="cls-1" cx="114.33" cy="114.33" r="114.33"/><path fill="currentColor" class="cls-2" d="M277.85,245.9c1.78,1.78,1.67,5.64,0,7.53l-45.17,43.29q-11.95,2.53-9.41-9.41c11.13-11,22.11-22.12,33.48-32.85,3.91-3.69,3.91-5.91,0-9.59C245.4,234.13,234.4,223,223.27,212q-2.53-11.95,9.41-9.41Z" transform="translate(-136 -135.33)"/></svg></div>', 258 responsive: [{ 259 breakpoint: 320, 260 settings: { 261 slidesToShow: 4 262 } 263 }, { 264 breakpoint: 566, 265 settings: { 266 slidesToShow: 4 267 } 268 }, { 269 breakpoint: 991, 270 settings: { 271 slidesToShow: 4 272 } 273 }] 274 }) 275 $(".product_view_new .product_carousel").slick({ 276 infinite: false, 277 arrows: true, 278 prevArrow: '<div class="arrow-prev"><svg class="icon svg-inline--fa" viewBox="0 0 18 34" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17 33L1 17L17 1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div>', 279 nextArrow: '<div class="arrow-next"><svg class="icon svg-inline--fa" viewBox="0 0 18 34" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 0.999998L17 17L1 33" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div>', 280 slidesToShow: 7, 281 focusOnSelect: true, 282 mobileFirst: true, 283 responsive: [{ 284 breakpoint: 320, 285 settings: { 286 slidesToShow: 4, 287 /*touchMove: false, 288 draggable: false, 289 swipe: false,*/ 290 } 291 }, { 292 breakpoint: 992, 293 settings: { 294 slidesToShow: 7, 295 /*vertical: true, 296 touchMove: false, 297 draggable: false, 298 swipe: false, 299 verticalSwiping: true,*/ 300 } 301 }] 302 }) 303 $(".product-viewer-list .carousel-360").click(function(){ 304 $("#productJsDiv .collection_body_new .product_pic").slick('slickGoTo', 0 ); 305 }) 306 if($('.product_vr').length) { 307 $(".product-viewer-list .carousel-vr").click(function(){ 308 $("#productJsDiv .collection_body_new .product_pic").slick('slickGoTo', 1 ); 309 }) 310 /*$(".product-viewer-list .carousel-video").click(function(){ 311 $("#productJsDiv .collection_body_new .product_pic").slick('slickGoTo', 2 ); 312 })*/ 313 }else{ 314 /*$(".product-viewer-list .carousel-video").click(function(){ 315 $("#productJsDiv .collection_body_new .product_pic").slick('slickGoTo', 1 ); 316 })*/ 317 } 318 var carouselSlide = 0; 319 $(".product_view_new .product_carousel .carousel-img").click(function(e){ 320 var k = parseInt($(e.currentTarget).attr('data-slick-index')); 321 currentSlide = k; 322 if($('.product_vr').length) { 323 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', k + 2 ); 324 }else { 325 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', k + 1 ); 326 } 327 }) 328 var picLen = $("#productJsDiv .collection_body_new .product_view_new .product_carousel .slick-track>div").length; 329 $('.product_view_new .product_carousel .arrow-next').click(function(){ 330 var h = carouselSlide + 1; 331 currentSlide = h; 332 if(h < picLen) { 333 if($('.product_vr').length) { 334 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', h + 2 ); 335 }else { 336 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', h + 1 ); 337 } 338 } 339 }); 340 $('.product_view_new .product_carousel .arrow-prev').click(function(){ 341 var j = carouselSlide - 1; 342 currentSlide = j; 343 if(j >= 0) { 344 if($('.product_vr').length) { 345 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', j + 2 ); 346 }else { 347 $("#productJsDiv .collection_body_new .product_view_new .product_pic").slick('slickGoTo', j + 1 ); 348 } 349 } 350 }); 351 $("#productJsDiv .collection_body_new .product_view_new .product_pic").on('afterChange', function(event, slick, currentSlide){
352 if(currentSlide < 2) { 353 $(".product_view_new .product_carousel").slick('slickGoTo', 0 ); 354 }else { 355 if($('.product_vr').length) { 356 carouselSlide = currentSlide - 2; 357 $(".product_view_new .product_carousel").slick('slickGoTo', carouselSlide ); 358 }else { 359 carouselSlide = currentSlide - 1; 360 $(".product_view_new .product_carousel").slick('slickGoTo', carouselSlide ); 361 } 362 } 363 }) 364 $("#productJsDiv .collection_body .product_pic").slick({ 365 infinite: false, 366 slidesToShow: 1, 367 arrows: true, 368 prevArrow: '<div class="arrow-prev"><svg class="icon svg-inline--fa" viewBox="0 0 18 34" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17 33L1 17L17 1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div>', 369 nextArrow: '<div class="arrow-next"><svg class="icon svg-inline--fa" viewBox="0 0 18 34" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 0.999998L17 17L1 33" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div>', 370 touchMove: false, 371 draggable: false, 372 swipe: false, 373 mobileFirst: true, 374 responsive: [{ 375 breakpoint: 320, 376 settings: { 377 slidesToShow: 1, 378 } 379 }, { 380 breakpoint: 992, 381 settings: { 382 slidesToShow: 1, 383 } 384 }] 385 }) 386 $(".review-new-content .review-photos-carousel").slick({ 387 infinite: true, 388 arrows: false, 389 autoplay: true, 390 autoplaySpeed: 500, 391 slidesToShow: 5, 392 mobileFirst: true, 393 responsive: [{ 394 breakpoint: 320, 395 settings: { 396 slidesToShow: 5, 397 } 398 },{ 399 breakpoint: 992, 400 settings: { 401 slidesToShow: 10, 402 } 403 }] 404 }) 405 $(".review-photos-carousel .photo:not(.slick-cloned)").magnificPopup({ 406 type: "image", 407 delegate: "a.active", 408 closeOnContentClick: false, 409 closeBtnInside: false, 410 mainClass: "mfp-photo", 411 image: { 412 verticalFit: true, 413 titleSrc: function(e) { 414 return e.el.attr("title") 415 } 416 }, 417 gallery: { 418 enabled: true 419 }, 420 zoom: { 421 enabled: true, 422 duration: 300, 423 opener: function(e) { 424 return e.find("img") 425 } 426 } 427 }) 428 $(".review-obj-image").each(function(i,e){ 429 $(e).magnificPopup({ 430 type: "image", 431 delegate: "a.active", 432 closeOnContentClick: false, 433 closeBtnInside: false, 434 mainClass: "mfp-obj-image", 435 image: { 436 verticalFit: true, 437 titleSrc: function(e) { 438 return e.el.attr("title") 439 } 440 }, 441 gallery: { 442 enabled: true 443 }, 444 zoom: { 445 enabled: true, 446 duration: 300, 447 opener: function(e) { 448 return e.find("img") 449 } 450 } 451 }) 452 }) 453 454 /*$(".specifications-list").slick({ 455 infinite: false, 456 arrows: false, 457 slidesToShow: 3, 458 mobileFirst: true, 459 responsive: [{ 460 breakpoint: 320, 461 settings: { 462 slidesToShow: 1, 463 slidesToScroll: 1, 464 dots: true, 465 } 466 }, 467 { 468 breakpoint: 992, 469 settings: { 470 slidesToShow: 3, 471 slidesToScroll: 3, 472 dots: false, 473 } 474 }] 475 })*/ 476 /*if(width < 991){ 477 $('.specifications-item .specifications-item-img').click(function(){ 478 $(this).children('.hover-choose').css('opacity','1') 479 }) 480 }*/ 481 $(".catalog-quick-new .catalog-new").slick({ 482 infinite: false, 483 slidesToShow: 6, 484 slidesToScroll: 6, 485 mobileFirst: true, 486 positionFixed: true, 487 arrows: false, 488 dots: false, 489 prevArrow: '<div class="arrow-prev arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36"><polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 490 nextArrow: '<div class="arrow-next arrow-new"><div class="arrow-circle"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36">
490<polygon fill="currentColor" points="13.6,4.4 11.6,6.4 23.2,18 11.6,29.6 13.6,31.6 27.2,18 "></polygon></svg></div></div>', 491 responsive: [{ 492 breakpoint: 320, 493 settings: { 494 slidesToShow: 2, 495 slidesToScroll: 2 496 } 497 }, { 498 breakpoint: 992, 499 settings: { 500 slidesToShow: 5, 501 slidesToScroll: 5 502 } 503 }, { 504 breakpoint: 1600, 505 settings: { 506 slidesToShow: 6, 507 slidesToScroll: 6 508 } 509 }] 510 }); 511 var s = 992, n = $(document).width(); 512 $(".nav-item, .product-tab-mob-head").click(function() { 513 var t = $(this).data("index"); 514 if($(this).hasClass("active")){ 515 s >= n && ($(".product-tab-content").slideUp(), 516 $("#svg_icon_" + t).html('<svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20"><path fill="currentColor" d="M18.000,11.199 L11.200,11.199 L11.200,17.999 C11.200,18.662 10.663,19.199 10.000,19.199 C9.337,19.199 8.800,18.662 8.800,17.999 L8.800,11.199 L2.000,11.199 C1.337,11.199 0.800,10.662 0.800,9.999 C0.800,9.337 1.337,8.799 2.000,8.799 L8.800,8.799 L8.800,1.999 C8.800,1.336 9.337,0.799 10.000,0.799 C10.663,0.799 11.200,1.336 11.200,1.999 L11.200,8.799 L18.000,8.799 C18.663,8.799 19.200,9.337 19.200,9.999 C19.200,10.662 18.663,11.199 18.000,11.199 Z"></path></svg>'), 517 $(".nav-item, .product-tab-mob-head").removeClass("active")) 518 }else{ 519 c(t) 520 } 521 }) 522 $(".all-features-link .back-menu-title").click(function() { 523 if($(this).hasClass("active")){ 524 $(this).parent().children(".back-menu").stop().slideUp() 525 $(this).removeClass("active") 526 }else{ 527 $(".back-menu").stop().slideUp() 528 $(".back-menu-title").removeClass("active") 529 $(this).parent().children(".back-menu").stop().slideDown() 530 $(this).addClass("active") 531 } 532 }) 533 $('.collection_title .collection_title_text').click(function() { 534 if($(this).hasClass("active")){ 535 $(this).parent().children(".collection_title_dec").stop().slideUp(); 536 $(this).removeClass("active") 537 }else{ 538 $(this).parent().children(".collection_title_dec").stop().slideDown() 539 $(this).addClass("active") 540 } 541 }) 542 $('.product_introduce_tabs-new .nav-item-new').click(function() { 543 $(this).addClass('active').siblings().removeClass('active'); 544 var index = $(this).attr('data-index') 545 to(index); 546 }) 547 $('.specifications-item-dec a:not(.youtube)').click(function() { 548 $('.product-size-modal').fadeIn(); 549 $('html').css('overflow','hidden') 550 }) 551 $('.product-size-modal .icon-close').click(function() { 552 $('.product-size-modal').fadeOut(); 553 $('html').css('overflow','') 554 }) 555 $('.hover-choose-btn a, .specifications-item>a').click(function(){ 556 var webImg = $(this).attr('data-web-image'), mbImg = $(this).attr('data-mb-image'); 557 $('.specifications-media-show .media-image .media-icon').before("<img class='web-img hide visible-md-inline' src='" + webImg + "' alt=''><img class='mb-img hidden-md' src='" + mbImg + "' alt=''>"); 558 $('.specifications-media-show').fadeIn(); 559 $('html').css('overflow','hidden') 560 }) 561 $('.absoulte-play').click(function(){ 562 var videoUrl = $(this).attr('data-video-url'); 563 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 564 $('.specifications-media-show').fadeIn(); 565 $('html').css('overflow','hidden') 566 }) 567 $('.hover-view').click(function(){ 568 var img = $(this).attr('data-img'); 569 $('.specifications-media-show .media-image .media-icon').before("<img src='" + img + "' alt=''>"); 570 $('.specifications-media-show').fadeIn(); 571 $('html').css('overflow','hidden') 572 }) 573 $('.media-icon .icon-close').click(function(){ 574 $(this).parent().parent().find('img').remove(); 575 $(this).parent().parent().find('iframe').remove(); 576 $(this).parent().parent().parent().find('.media-choose-btn').remove(); 577 $('.specifications-media-show').fadeOut(); 578 $('html').css('overflow','') 579 }) 580 581 $(".item-text").click(function() { 582 if($(this).hasClass("active")){ 583 $(this).children(".item-text-answer").stop().slideUp(); 584 $(this).removeClass("active"); 585 }else{ 586 $(".item-text-answer").stop().slideUp(); 587 $(".item-text").removeClass("active"); 588 $(this).children(".item-text-answer").stop().slideDown(); 589 $(this).addClass("active"); 590 } 591 }) 592 /*$('.mainPart-content').slick({ 593 infinite: false, 594 mobileFirst: true, 595 positionFixed: true,
596 arrows: false, 597 dots: false, 598 responsive: [{ 599 breakpoint: 320, 600 settings: { 601 slidesToShow: 2, 602 slidesToScroll: 2 603 } 604 }, { 605 breakpoint: 992, 606 settings: { 607 variableWidth: true, 608 slidesToShow: 10, 609 slidesToScroll: 10 610 } 611 }] 612 })*/ 613 $('.mainPart-item-img, .feature-item-img, .functions-compare-item-text, .feature-mainPart-item-img, .function-video').click(function(){ 614 if($(this).find('.hover-play').length){ 615 var videoUrl = $(this).children('.hover-play').attr('data-video-url'), videoUrl2 = $(this).children('.hover-play').attr('data-video2-url'),btnName = $(this).children('.hover-play').attr('data-name'),btnName2 = $(this).children('.hover-play').attr('data-name2'); 616 if(!videoUrl2){ 617 $('.specifications-media-show .media-image').before("<div class='media-choose-btn'><a class='btn btn-primary active' data-video-url='" + videoUrl + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName + "</a></div>") 618 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 619 }else if(!videoUrl){ 620 $('.specifications-media-show .media-image').before("<div class='media-choose-btn'><a class='btn btn-primary active' data-video-url='" + videoUrl2 + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName2 + "</a></div>") 621 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl2 + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 622 }else{ 623 $('.specifications-media-show .media-image').before("<div class='media-choose-btn'><a class='btn btn-primary active' data-video-url='" + videoUrl + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName + "</a><a class='btn btn-primary' data-video-url='" + videoUrl2 + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName2 + "</a></div>") 624 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe><iframe style='display: none' src='" + videoUrl2 + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 625 } 626 $('.specifications-media-show').show(); 627 $('html').css('overflow','hidden') 628 } 629 }) 630 $('.specifications-item-img').click(function(){ 631 if($(this).find('.hover-play').length){ 632 var videoUrl = $(this).children('.hover-play').attr('data-video-url'), videoUrl2 = $(this).children('.hover-play').attr('data-video2-url'),btnName = $(this).children('.hover-play').attr('data-name'),btnName2 = $(this).children('.hover-play').attr('data-name2'); 633 if(!videoUrl2){ 634 $('.specifications-media-show .media-image').before("<div class='media-choose-btn'><a class='btn btn-primary active' data-video-url='" + videoUrl + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName + "</a></div>") 635 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 636 }else{ 637 $('.specifications-media-show .media-image').before("<div class='media-choose-btn'><a class='btn btn-primary active' data-video-url='" + videoUrl + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName + "</a><a class='btn btn-primary' data-video-url='" + videoUrl2 + "' onClick='chooseVideo(this)' href='javascript:;' title=''>" + btnName2 + "</a></div>") 638 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe><iframe style='display: none' src='" + videoUrl2 + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 639 } 640 $('.specifications-media-show').show(); 641 $('html').css('overflow','hidden') 642 } 643 }) 644 $('.product-view-main .carousel-video').click(function(){ 645 if($(this).find('.view-svg').length){ 646 var videoUrl = $(this).children('.view-svg').attr('data-video-url') 647 $('.specifications-media-show .media-image .media-icon').before("<iframe src='" + videoUrl + "' allowfullscreen='' width='100%' height='100%' frameborder='0' allow='autoplay'></iframe>"); 648 $('.specifications-media-show').show(); 649 $('html').css('overflow','hidden') 650 } 651 }) 652 /*$('.review-new-content .review-images-list').slick({ 653 infinite: false, 654 rows: 2, 655 slidesPerRow: 7, 656 slidesToShow: 1, 657 slidesToScroll: 1, 658 mobileFirst: true, 659 positionFixed: true,
660 arrows: false, 661 dots: false, 662 responsive: [{ 663 breakpoint: 320, 664 settings: { 665 slidesPerRow: 2, 666 } 667 }, { 668 breakpoint: 992, 669 settings: { 670 slidesPerRow: 7, 671 } 672 }] 673 })*/ 674 function to(i){ 675 $("html, body").stop().animate({ 676 scrollTop: $("#product_tab_new_content_" + i).offset().top - 168 677 }, 500) 678 } 679 $('.menu-mobile-select').change(function(){ 680 var kk = $('.menu-mobile-select').val() 681 goTo(kk) 682 }) 683 function goTo(i){ 684 $("html, body").stop().animate({ 685 scrollTop: $("#product_tab_new_content_" + i).offset().top - 99 686 }, 500) 687 } 688 $('.btn-sendInquire').click(function(){ 689 $('.sendInquiry-modal').show() 690 }) 691 $('.sendInquiry-modal .modal-close-icon').click(function(){ 692 $('.sendInquiry-modal').hide() 693 }) 694 $('.thank-modal .btn-thankModal').click(function(){ 695 $('.thank-modal').hide() 696 }) 697 $('.thank-modal .modal-close-icon').click(function(){ 698 $('.thank-modal').hide() 699 }) 700 var text = $('#message').val(); 701 var len = 0; 702 if(null != text ){ 703 len = text.length; 704 } 705 $('#message').next().find('.count-change').html(len); 706 $('textarea').keyup(function () { 707 var text = $(this).val(); 708 len = text.length; 709 if (len > 1500) { 710 return false; 711 } 712 $(this).next().find('.count-change').html(len); 713 }) 714 715 function c(t) { 716 $(".product-tab-content").slideUp(), 717 $(".nav-item, .product-tab-mob-head").removeClass("active"), 718 $("#product_tab_content_" + t).slideDown(), 719 $("#product_introduce_tab_head_" + t + ", #product_tab_mob_head_" + t).addClass("active"), 720 s < n ? $("html, body").stop().animate({ 721 scrollTop: $("#product_tab_content").offset().top - 60 722 }, 500) : (setTimeout(function() { 723 $("html, body").stop().animate({ 724 scrollTop:($("#product_tab_mob_head_" + t).offset().top - 55,$("#product_tab_content_" + t).offset().top - 167) 725 }, 500) 726 }, 500), 727 $(".svg_icon").html('<svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20"><path fill="currentColor" d="M18.000,11.199 L11.200,11.199 L11.200,17.999 C11.200,18.662 10.663,19.199 10.000,19.199 C9.337,19.199 8.800,18.662 8.800,17.999 L8.800,11.199 L2.000,11.199 C1.337,11.199 0.800,10.662 0.800,9.999 C0.800,9.337 1.337,8.799 2.000,8.799 L8.800,8.799 L8.800,1.999 C8.800,1.336 9.337,0.799 10.000,0.799 C10.663,0.799 11.200,1.336 11.200,1.999 L11.200,8.799 L18.000,8.799 C18.663,8.799 19.200,9.337 19.200,9.999 C19.200,10.662 18.663,11.199 18.000,11.199 Z"></path></svg>'), 728 $("#svg_icon_" + t).html('<svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 4"> <path fill="currentColor" d="M18.000,3.200 L11.200,3.200 L8.800,3.200 L2.000,3.200 C1.337,3.200 0.800,2.663 0.800,2.000 C0.800,1.337 1.337,0.800 2.000,0.800 L8.800,0.800 L11.200,0.800 L18.000,0.800 C18.663,0.800 19.200,1.337 19.200,2.000 C19.200,2.663 18.663,3.200 18.000,3.200 Z"></path></svg>')) 729 if(t == 4){ 730 $(".product-review:not(.product-review-new) .review-photos-carousel").slick({ 731 infinite: false, 732 slidesToShow: 4, 733 mobileFirst: true, 734 prevArrow: '<div class="arrow-prev"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 228.67 228.67"><defs><style>.cls-1{fill:#ddd;}.cls-2{fill:#fff;}</style></defs><circle fill="currentColor" class="cls-1" cx="114.33" cy="114.33" r="114.33"/><path fill="currentColor" class="cls-2" d="M206.82,266.24c-1.78,1.78-1.67,5.64,0,7.53L252,317.06q11.95,2.53,9.41-9.41c-11.13-11-22.11-22.12-33.48-32.85-3.91-3.69-3.91-5.91,0-9.59,11.36-10.74,22.36-21.87,33.5-32.84q2.53-11.95-9.41-9.41Z" transform="translate(-120 -155.67)"/></svg></div>', 735 nextArrow: '<div class="arrow-next"><svg class="icon svg-inline--fa" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 228.67 228.67"><defs><style>.cls-1{fill:#ddd;}.cls-2{fill:#fff;}</style></defs><circle fill="currentColor" class="cls-1" cx="114.33" cy="114.33" r="114.33"/>
735<path fill="currentColor" class="cls-2" d="M277.85,245.9c1.78,1.78,1.67,5.64,0,7.53l-45.17,43.29q-11.95,2.53-9.41-9.41c11.13-11,22.11-22.12,33.48-32.85,3.91-3.69,3.91-5.91,0-9.59C245.4,234.13,234.4,223,223.27,212q-2.53-11.95,9.41-9.41Z" transform="translate(-136 -135.33)"/></svg></div>', 736 responsive: [{ 737 breakpoint: 320, 738 settings: { 739 slidesToShow: 4 740 } 741 }, { 742 breakpoint: 566, 743 settings: { 744 slidesToShow: 4 745 } 746 }, { 747 breakpoint: 991, 748 settings: { 749 slidesToShow: 4 750 } 751 }] 752 }) 753 }else{ 754 setTimeout(function() { 755 $(".product-review:.not(.product-review-new) .review-photos-carousel").unslick() 756 },500) 757 } 758 } 759 $(".faq-question").click(function() { 760 $(this).hasClass("active") ? ($(this).parent().children(".faq-answer").stop().slideUp(), 761 $(this).removeClass("active"), 762 $(this).find("span").removeClass("rotate90")) : ($(".faq-answer").stop().slideUp(), 763 $(".faq-question").removeClass("active"), 764 $(".faq-question").find("span").removeClass("rotate90"), 765 $(this).parent().children(".faq-answer").stop().slideDown(), 766 $(this).addClass("active"), 767 $(this).find("span").addClass("rotate90")) 768 }) 769 $(".popover_hover").on('mouseenter',function(){ 770 $(".popover_content").fadeIn(200) 771 }).on("mouseleave",function(){ 772 $(".popover_content").fadeOut(200) 773 }) 774 $('.product_view:not(.product_view_new) .view-video').click(function(){ 775 $(this).hide().siblings().show() 776 }) 777 $('.product_view:not(.product_view_new) .view-360').click(function(){ 778 $(this).hide().siblings().show() 779 }) 780 $(document).scroll(function() { 781 $(window).scrollTop() < 158 ? $('.nav-main').show() : $('.nav-main').hide() 782 $(window).scrollTop() > $("#product_tab_content").offset().top - $("#footer_bar").height() ? $(".product_introduce_tabs").addClass("fixedpos") : $(".product_introduce_tabs").removeClass("fixedpos") 783 }) 784 /* $('.selectItem').selectpicker();*/ 785 786 /*$("#the_wording").click(function() { 787 c(4); 788 })*/ 789 790 /*$('.userPic-list').slick({ 791 arrows: false, 792 dots: false, 793 autoplay: true, 794 autoplaySpeed: 500, 795 infinite: true, 796 mobileFirst: true, 797 responsive: [{ 798 breakpoint: 320, 799 settings: { 800 slidesToShow: 2, 801 slidesToScroll: 1, 802 } 803 }, { 804 breakpoint: 992, 805 settings: { 806 slidesToShow: 4, 807 slidesToScroll: 1, 808 } 809 }] 810 })*/ 811 /*$(".userPic-list").viewer({ 812 title: false, 813 fullscreen: false, 814 toolbar: { 815 play: 0, 816 reset: 0, 817 prev: 4, 818 next: 4, 819 }, 820 navbar: false, 821 movable: false, 822 rotatable: false, 823 scalable: false, 824 transition: false, 825 zoomable: false, 826 zoomOnTouch: false, 827 zoomOnWheel: false, 828 slideOnTouch: false, 829 toggleOnDblclick: false, 830 })*/ 831 //å è½½å®jsåå è½½googleåæ 832 googleSelectSku(); 833 googleViewSku(); 834}) 835 836function chooseVideo(k){ 837 var u = $(k).attr('data-video-url'), i = $(k).index(); 838 $('.media-image iframe:eq(' + i + ')').attr('src', u); 839 $('.media-image iframe:eq(' + i + ')').show().siblings('iframe').hide(); 840 $('.media-image iframe:eq(' + i + ')').siblings().attr('src','') 841 $('.media-choose-btn .btn:eq(' + i + ')').addClass('active').siblings().removeClass('active'); 842} 843 844function autoPlayVideo(){ 845 $(".product_pic .product_video #auto_play_video").play() 846}
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.