1var dw_l = 1260; 2var dw_m = 767; 3var dw_s = 509; 4var dw_lp = dw_l + 1; 5var dw_mp = dw_m + 1; 6var dw_sp = dw_s + 1; 7 8var header_c = "02"; 9 10(function(d) { 11 var config = { 12 kitId: 'vai3yfg', 13 scriptTimeout: 3000, 14 async: true 15 }, 16 h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) 17})(document); 18 19+function($) { 20 /* variables */ 21 var elementWindow = $(window); 22 var elementHtmlBody = $('html, body'); 23 var elementImg = $('img'); 24 var elementScrollBackImage = $('.scroll-back-image'); 25 var attributeScrollBackImage = [[]]; 26 var elementScrollBackPattern = $('.scroll-back-pattern'); 27 var elementScrollUp = $('#scroll-up'); 28 var elementScrollxWrap = document.getElementsByClassName('scrollx-wrap'); 29 var scrollxWrapBol_x = {}, 30 scrollxWrapBol_l = {}, 31 scrollxWrapBol_m = {}, 32 scrollxWrapBol_s = {}; 33 34 var elementEeffect = $('.effect'); 35 var elementEffectOnce = $('.effect-once'); 36 37 var displayWidth = ''; 38 var displayHeight = ''; 39 var scrollTop = ''; 40 41 /* load */ 42 elementWindow.on('load', function() { 43 displayWidth = document.documentElement.clientWidth; 44 displayHeight = document.documentElement.clientHeight; 45 tabActive(); 46 actionSmoothScroll(); 47 loopSliderSetting(); 48 var inViewTimer; 49 inViewTimer = setInterval(function() { 50 if ( elementEeffect.length === 0 && elementEffectOnce.length === 0 ) { 51 clearInterval( inViewTimer ); 52 inViewTimer = null; 53 } else { 54 effectInViewport( elementEeffect ); 55 effectOnceInViewport( elementEffectOnce ); 56 } 57 }, 200); 58 59 $(".fall").letterfx({ 60 "fx": "fade fall", 61 "backwards": false, 62 "timing": 240, 63 "fx_duration": "2400ms", 64 "letter_end": "restore", 65 "element_end": "restore" 66 }); 67 }); 68 69 /* timer */ 70 var timer = false; 71 var loadResizeOnce = true; 72 elementWindow.on('load resize', function() { 73 if (timer !== false) { 74 clearTimeout(timer); 75 } 76 timer = setTimeout(function() { 77 displayWidth = document.documentElement.clientWidth; 78 displayHeight = document.documentElement.clientHeight; 79 tabLabelOverflow(); 80 verticalColumn(); 81 adjustArea(); 82 scrollBackImagePosition(); 83 scrollX(); 84 homeEyecatch(); 85 if (loadResizeOnce) { 86 scrollFunction(); 87 loadResizeOnce = false; 88 } 89 }, 200); 90 }); 91 92 var interval = 20; 93 var lastTime = new Date().getTime() - interval; 94 elementWindow.on('scroll', function() { 95 if ((lastTime + interval) <= new Date().getTime()) { 96 lastTime = new Date().getTime(); 97 scrollFunction(); 98 } 99 }); 100 101 function scrollFunction() { 102 scrollTop = parseInt(elementWindow.scrollTop()); 103 scrollUpFade(elementScrollUp); 104 scrollBackImageInViewport(elementScrollBackImage, attributeScrollBackImage); 105 scrollBackPatternInViewport(elementScrollBackPattern); 106 } 107 108 /* navigation */ 109 if ( header_c !== '02' ) { 110 var container, button; 111 112 container = document.getElementById( 'site-navigation' ); 113 if ( ! container ) 114 return; 115 116 button = container.getElementsByTagName( 'h2' )[0]; 117 if ( 'undefined' === typeof button ) 118 return; 119 120 button.onclick = function() { 121 if ( container.className.indexOf( 'main-small-navigation' ) !== -1 ) { 122 button.getElementsByTagName( 'span' )[3].innerText = button.getElementsByTagName( 'span' )[3].innerText.replace( 'CLOSE', 'MENU' ); 123 container.className = container.className.replace( 'main-small-navigation', 'main-navigation' ); 124 } else { 125 button.getElementsByTagName( 'span' )[3].innerText = button.getElementsByTagName( 'span' )[3].innerText.replace( 'MENU', 'CLOSE' ); 126 container.className = container.className.replace( 'main-navigation', 'main-small-navigation' ); 127 } 128 }; 129 } 130 131 /* element nesting */ 132 function elementNesting(target_class, add_class) { 133 let elements = document.getElementsByClassName( target_class ); 134 let elementsLength = elements.length; 135 for ( let i = 0; i < elementsLength; i++ ) { 136 elements[i].innerHTML = '<span class="' + add_class + '">' + elements[i].innerHTML + '</span>'; 137 } 138 } 139 //elementNesting('large-headline-copy', 'decoration'); 140 141 /* tabs */ 142 function tabLabelOverflow() { 143 $('.tab-label-inner').each(function() { 144 var tabLabelWidth = $(this).parent().width(); 145 var tabLabelInnerWidth = 1; 146 for ( var i = 0; i < $(this).find('li').length; i++ ) { 147 tabLabelInnerWidth += $(this).find('li').eq(i).width(); 148 } 149 if ( tabLabelWidth < tabLabelInnerWidth && tabLabelWidth !== 0 ) { 150 $(this).css({'width':tabLabelInnerWidth}); 151 $(this).parent().addClass('tab-overflow'); 152 } else { 153 $(this).css({ 'width':'auto' }); 154 $(this).parent().removeClass('tab-overflow'); 155 } 156 }); 157 } 158 function tabActive() { 159 $('.tab-label-inner>li:first-child').addClass('active'); 160 $('.tab-content>div:first-child').addClass('active'); 161 } 162 $('.tab-label-inner a').on('click', function(e) { 163 e.preventDefault(); 164 var target = $(this).attr('href'); 165 if ( ! $(target).length ) return false;
166 $('>li', $(this).closest('.tab-label-inner')).removeClass('active'); 167 $(this).closest('.tab-label-inner>li').addClass('active'); 168 $('>div', $(target).closest('.tab-content')).removeClass('active'); 169 $(target).addClass('active'); 170 }); 171 172 /* accordion */ 173 $('.accordion-header').on('click', function() { 174 $(this).next().slideToggle().siblings('.accordion-content').slideUp(); 175 let thisFindSpan = $(this).find('span'); 176 if (thisFindSpan.hasClass('icon-plus')) { 177 thisFindSpan.removeClass('icon-plus').addClass('icon-minus'); 178 $(this).siblings('.accordion-header').find('span').removeClass('icon-minus').addClass('icon-plus'); 179 } else { 180 thisFindSpan.removeClass('icon-minus').addClass('icon-plus'); 181 } 182 tabLabelOverflow(); 183 }); 184 185 /* toggle */ 186 $('.toggle-header').on('click', function() { 187 $(this).next().slideToggle(); 188 let thisFindSpan = $(this).find('span'); 189 if ( thisFindSpan.hasClass('icon-plus') ) { 190 thisFindSpan.removeClass('icon-plus').addClass('icon-minus'); 191 } else { 192 thisFindSpan.removeClass('icon-minus').addClass('icon-plus'); 193 } 194 tabLabelOverflow(); 195 }); 196 197 /* vertical column */ 198 function verticalColumn() { 199 let classIncludeVerticalColumn = $('[class*="vertical-column-"]'); 200 if ( classIncludeVerticalColumn.length ) { 201 var columnHeight; 202 classIncludeVerticalColumn.css({ 'height':'' }); 203 if ( window.matchMedia('screen and (min-width: ' + dw_lp + 'px)').matches ) { 204 $('.vertical-column-x').each(function() { 205 columnHeight = $(this).prop('scrollHeight') + 'px'; 206 $(this).css({ 'height':columnHeight }); 207 }); 208 } 209 if ( window.matchMedia('screen and (min-width: ' + dw_mp + 'px) and (max-width: ' + dw_l + 'px)').matches ) { 210 $('.vertical-column-l').each(function() { 211 columnHeight = $(this).prop('scrollHeight') + 'px'; 212 $(this).css({ 'height':columnHeight }); 213 }); 214 } 215 if ( window.matchMedia('screen and (min-width: ' + dw_sp + 'px) and (max-width: ' + dw_m + 'px)').matches ) { 216 $('.vertical-column-m').each(function() { 217 columnHeight = $(this).prop('scrollHeight') + 'px'; 218 $(this).css({ 'height':columnHeight }); 219 }); 220 } 221 if ( window.matchMedia('screen and (max-width: ' + dw_s + 'px)').matches ) { 222 $('.vertical-column-s').each(function() { 223 columnHeight = $(this).prop('scrollHeight') + 'px'; 224 $(this).css({ 'height':columnHeight }); 225 }); 226 } 227 } 228 } 229 230 /* adjust */ 231 function adjustArea() { 232 if($('.adjust').find('*').hasClass('adjust-content')) { 233 var adjustCount = $('.adjust').length; 234 var adjustSelector; 235 var tallest; 236 var thisHeight; 237 for ( var i = 1 ; i <= adjustCount ; i++ ) { 238 adjustSelector = '.adjust:eq(' + (i - 1) + ') .adjust-content'; 239 tallest = 0; 240 $(adjustSelector).each(function() { 241 $(this).css( 'height', '' ); 242 thisHeight = $(this).height(); 243 if(thisHeight > tallest) { 244 tallest = thisHeight; 245 } 246 }); 247 $(adjustSelector).each(function() { 248 $(this).height(tallest); 249 }); 250 } 251 if ( window.matchMedia('screen and (min-width: ' + dw_lp + 'px)').matches ) { 252 $('.adjust-invalid-x').each(function() { 253 $(this).find('.adjust-content').css( 'height', '' ); 254 }); 255 } 256 if ( window.matchMedia('screen and (min-width: ' + dw_mp + 'px) and (max-width: ' + dw_l + 'px)').matches ) { 257 $('.adjust-invalid-l').each(function() { 258 $(this).find('.adjust-content').css( 'height', '' ); 259 }); 260 } 261 if ( window.matchMedia('screen and (min-width: ' + dw_sp + 'px) and (max-width: ' + dw_m + 'px)').matches ) { 262 $('.adjust-invalid-m').each(function() { 263 $(this).find('.adjust-content').css( 'height', '' ); 264 }); 265 } 266 if ( window.matchMedia('screen and (max-width: ' + dw_s + 'px)').matches ) { 267 $('.adjust-invalid-s').each(function() { 268 $(this).find('.adjust-content').css( 'height', '' ); 269 }); 270 } 271 } 272 } 273 274 /* skrollr setting */ 275 var elementDiv = $('div'); // 対象è¦ç´ ãåå¾ 276 if ( elementDiv.is('[data-bottom-top]') || elementDiv.is('[data-top-bottom]') ) { 277 var s = skrollr.init({ 278 forceHeight: false, 279 smoothScrolling: true, 280 smoothScrollingDuration: 0, 281 }); 282 if (s.isMobile()) { 283 s.destroy(); 284 } else { 285 for (var i = 0; i < elementImg.length; i++) { 286 elementImg.eq(i).on('load', function() { 287 s.refresh($('.skrollr-contents')); 288 }); 289 }; 290 } 291 } 292 293 /* scrollBackImagePosition */ 294 function scrollBackImagePosition() { 295 let elementScrollBackImageLength = elementScrollBackImage.length; 296 if (typeof jQuery === 'function' && elementScrollBackImage instanceof jQuery && elementScrollBackImageLength) { 297 for ( let i = 0; i < elementScrollBackImageLength; i++ ) { 298 if ( i !== 0 ) { 299 attributeScrollBackImage.push([]); 300 } 301 attributeScrollBackImage[i]['objectPosTop'] = parseInt($(elementScrollBackImage[i]).offset().top); 302 attributeScrollBackImage[i]['objectHeight'] = parseInt($(elementScrollBackImage[i]).outerHeight()); 303 } 304 } 305 } 306 307 /* SmoothScroll */ 308 function actionSmoothScroll() { 309 SmoothScroll({ 310 animationTime: 500, 311 stepSize: 75, 312 keyboardSupport: false 313 }); 314 } 315 316 /* scroll up */ 317 function scrollUpFade( elementScrollUp ) { 318 if ( scrollTop > 1000 ) { 319 elementScrollUp.fadeIn(); 320 } else { 321 elementScrollUp.fadeOut(); 322 } 323 } 324 elementScrollUp.hide().on('click', function () { 325 elementHtmlBody.animate({ 326 scrollTop: 0 327 }, 800); 328 return false;
329 }); 330 $('a[href^="#"]:not(.no-scroll)').on('click', function () { 331 var speed = 800; 332 var href = $(this).attr('href'); 333 var target = $(href == '#' || href == '' ? 'html' : href); 334 var position = target.offset().top; 335 elementHtmlBody.animate({scrollTop:position}, speed, 'swing'); 336 return false; 337 }); 338 339 /* background parallax */ 340 function scrollBackImageInViewport( element, attribute ) { 341 let elementLength = element.length; 342 for ( let i = 0; i < elementLength; i++ ) { 343 if ( inViewport( element[i] ) && typeof attribute[i] !== 'undefined' ) { 344 var objectPosTop = attribute[i]['objectPosTop']; 345 var displayTop = scrollTop - objectPosTop + displayHeight; 346 var objectHeight = attribute[i]['objectHeight']; 347 var bgPosition = Math.round( displayTop / ( displayHeight + objectHeight ) * 100 ); 348 if( bgPosition ) { 349 $(element[i]).css('background-position', 'center bottom ' + bgPosition + '%'); 350 } 351 } 352 } 353 } 354 355 function scrollBackPatternInViewport( element ) { 356 var bgPosition = Math.round( scrollTop / 3 ); 357 let elementLength = element.length; 358 for ( let i = 0; i < elementLength; i++ ) { 359 if ( inViewport( element[i] ) ) { 360 if( bgPosition ) { 361 $(element[i]).css('background-position', 'center top ' + bgPosition + 'px'); 362 } 363 } 364 } 365 } 366 367 function effectInViewport( element ) { 368 let elementLength = element.length; 369 for ( let i = 0; i < elementLength; i++ ) { 370 if ( inViewport( element[i] ) ) { 371 $(element[i]).stop().addClass('on'); 372 } else { 373 $(element[i]).stop().removeClass('on'); 374 } 375 } 376 } 377 378 function effectOnceInViewport( element ) { 379 let elementLength = element.length; 380 for ( let i = 0; i < elementLength; i++ ) { 381 if ( inViewport( element[i] ) ) { 382 $(element[i]).stop().addClass('on'); 383 } 384 } 385 } 386 387 /* loop slider */ 388 function loopSliderSetting() { 389 var setElm = $('.loopSlider'); 390 if ( setElm.length ) { 391 var slideSpeed = 15000; 392 setElm.each(function(){ 393 var self = $(this), 394 selfWidth = self.innerWidth(), 395 findUl = self.find('ul'), 396 findLi = findUl.find('li'), 397 listCount = findLi.length, 398 loopWidth = 0; 399 400 for (var i = 1; i <= listCount; i++) { 401 loopWidth += findUl.find('li:nth-child(' + i + ')').outerWidth(); 402 } 403 loopWidth = Math.ceil(loopWidth); 404 405 findUl.wrapAll('<div class="loopSliderWrap" />'); 406 var selfWrap = self.find('.loopSliderWrap'); 407 408 if (loopWidth > selfWidth) { 409 findUl.css({width:loopWidth}).clone().appendTo(selfWrap); 410 findUl.css({width:loopWidth}).clone().appendTo(selfWrap); 411 412 selfWrap.css({width:loopWidth*3}); 413 414 function loopMove() { 415 selfWrap.animate({left:'-' + (loopWidth) + 'px'},slideSpeed*listCount,'linear',function(){ 416 selfWrap.css({left:'0'}); 417 loopMove(); 418 }); 419 }; 420 loopMove(); 421 422 function loopScroll() { 423 var props = selfWrap.css('transform'); 424 if (props !== undefined) { 425 function translateX_value(e) { 426 var values = e.split('(')[1]; 427 values = values.split(')')[0]; 428 values = values.split(', '); 429 var value = values[4]; 430 return value; 431 } 432 if ( Math.abs(translateX_value(props)) > loopWidth ) { 433 selfWrap.css({marginLeft:(loopWidth) + 'px'}); 434 } else { 435 selfWrap.css({marginLeft:'0'}); 436 } 437 translateX_value(props); 438 } 439 } 440 setInterval(loopScroll, 200); 441 } 442 443 let loopSliderViewport = $(this)[0]; 444 let loopSliderContent = loopSliderViewport.childNodes[0]; 445 446 let sb = new ScrollBooster({ 447 viewport: loopSliderViewport, 448 content: loopSliderContent, 449 friction: 0.1, 450 onUpdate: function (data) { 451 loopSliderContent.style.transform = 'translateX(' + -data.position.x + 'px)' 452 } 453 }); 454 }); 455 } 456 } 457 458 function inViewport( element ) { 459 var elementBounds = element.getBoundingClientRect(); 460 return ( 461 elementBounds.top <= displayHeight 462 && elementBounds.right <= displayWidth 463 && elementBounds.bottom >= 0 464 && elementBounds.left >= 0 465 ); 466 } 467 468 /* home eyecatch */ 469 function homeEyecatch(event) { 470 var element = document.querySelector( '#home-eyecatch' ); 471 if ( element ) { 472 var url = location.href; 473 if ( window.matchMedia('screen and (min-width: ' + dw_sp + 'px)').matches ) { 474 var videoSource = '<source src="' + url + 'wp-content/themes/arimura-shuzo/video/home-eyecatch.mp4" type="video/mp4">'; 475 } 476 if ( window.matchMedia('screen and (max-width: ' + dw_s + 'px)').matches ) { 477 var videoSource = '<source src="' + url + 'wp-content/themes/arimura-shuzo/video/home-eyecatch-sp.mp4" type="video/mp4">'; 478 } 479 var source = element.querySelector( 'source' ); 480 if ( source === null || source.outerHTML !== videoSource ) {
481 element.innerHTML = '<video autoplay muted playsinline loop class="ripples">' + videoSource + '</video>'; 482 } 483 } 484 } 485 486 /* slick setting */ 487 var classHomeSlickEyecatch = $('.home-slick-eyecatch'); 488 if ( classHomeSlickEyecatch.length ) { 489 classHomeSlickEyecatch.slick({ 490 infinite: true, 491 slidesToShow: 1, 492 centerMode: true, 493 variableWidth: false, 494 adaptiveHeight: true, 495 centerPadding: '0px', 496 autoplay: true, 497 autoplaySpeed: 3000, 498 speed: 4500, 499 fade: true, 500 pauseOnHover: false, 501 pauseOnFocus: false, 502 responsive: [ 503 { 504 breakpoint: dw_lp, 505 settings: { 506 infinite: true, 507 slidesToShow: 1, 508 centerMode: true, 509 variableWidth: false, 510 centerPadding: '0px', 511 autoplay: true, 512 autoplaySpeed: 3000, 513 speed: 4500, 514 pauseOnHover: false, 515 pauseOnFocus: false, 516 } 517 } 518 ] 519 }); 520 } 521 var classSimpleSlider = $('.simple-slider'); 522 if ( classSimpleSlider.length ) { 523 classSimpleSlider.slick({ 524 slidesToShow: 1, 525 slidesToScroll: 1, 526 autoplay: true, 527 autoplaySpeed: 4500, 528 speed: 3000, 529 arrows: true, 530 fade: true, 531 }); 532 } 533 var classSimpleSliderDots = $('.simple-slider-dots'); 534 if ( classSimpleSliderDots.length ) { 535 classSimpleSliderDots.slick({ 536 dots: true, 537 slidesToShow: 1, 538 slidesToScroll: 1, 539 autoplay: true, 540 autoplaySpeed: 4500, 541 speed: 3000, 542 arrows: false, 543 fade: true, 544 }); 545 } 546 var classThumbnailSlider = $('.thumbnail-slider'); 547 if ( classThumbnailSlider.length ) { 548 classThumbnailSlider.each(function(i){ 549 $(this).find('.thumbnail-slider-for').addClass('thumbnail-slider-for'+i).slick({ 550 slidesToShow: 1, 551 slidesToScroll: 1, 552 autoplay: true, 553 autoplaySpeed: 5000, 554 speed: 750, 555 arrows: false, 556 fade: true, 557 adaptiveHeight: true, 558 asNavFor: '.thumbnail-slider-nav'+i,
559 }), 560 $(this).find('.thumbnail-slider-nav').addClass('thumbnail-slider-nav'+i).slick({ 561 lazyLoad: 'ondemand', 562 slidesToShow: 5, 563 slidesToScroll: 1, 564 asNavFor: '.thumbnail-slider-for'+i, 565 arrows: true, 566 focusOnSelect: true, 567 appendArrows: $(this).find('.thumbnail-slider-arrows'), 568 responsive: [ 569 { 570 breakpoint: dw_lp, 571 settings: { 572 slidesToShow: 3, 573 } 574 } 575 ] 576 }); 577 }); 578 } 579 var classTileSlider = $('.tile-slider'); 580 if ( classTileSlider.length ) { 581 classTileSlider.each(function(i){ 582 $(this).find('.tile-slider-for').addClass('tile-slider-for'+i).slick({ 583 slidesToShow: 1, 584 slidesToScroll: 1, 585 autoplay: true, 586 autoplaySpeed: 5000, 587 speed: 750, 588 arrows: false, 589 fade: true, 590 adaptiveHeight: true, 591 asNavFor: '.tile-slider-nav'+i, 592 }), 593 $(this).find('.tile-slider-nav').addClass('tile-slider-nav'+i).slick({ 594 lazyLoad: 'ondemand', 595 slidesToShow: 9, 596 asNavFor: '.tile-slider-for'+i, 597 arrows: true, 598 focusOnSelect: true, 599 responsive: [ 600 { 601 breakpoint: dw_lp, 602 settings: { 603 slidesToShow: 9, 604 } 605 } 606 ] 607 }); 608 }); 609 } 610 var classProductSlider = $('.product-slider'); 611 if ( classProductSlider.length ) { 612 classProductSlider.each(function(i){ 613 $(this).find('.product-slider-for').addClass('product-slider-for'+i).slick({ 614 slidesToShow: 1, 615 slidesToScroll: 1, 616 autoplay: true, 617 autoplaySpeed: 5000, 618 speed: 750, 619 arrows: false, 620 fade: true, 621 adaptiveHeight: true, 622 asNavFor: '.product-slider-nav'+i,
623 }), 624 $(this).find('.product-slider-nav').addClass('product-slider-nav'+i).slick({ 625 lazyLoad: 'ondemand', 626 slidesToShow: 4, 627 slidesToScroll: 1, 628 asNavFor: '.product-slider-for'+i, 629 arrows: true, 630 focusOnSelect: true, 631 appendArrows: $(this).find('.product-slider-arrows') 632 }); 633 }); 634 } 635 636 /* scrollbooster */ 637 function scrollX() { 638 let elementScrollxWrapLength = elementScrollxWrap.length; 639 if ( 'undefined' !== typeof elementScrollxWrap && elementScrollxWrapLength ) { 640 var content_x = {}, 641 content_l = {}, 642 content_m = {}, 643 content_s = {}; 644 for ( var i = 0; i < elementScrollxWrapLength; i++ ) { 645 content_x[i] = elementScrollxWrap[i].querySelector('.scrollx-x'), 646 content_l[i] = elementScrollxWrap[i].querySelector('.scrollx-l'), 647 content_m[i] = elementScrollxWrap[i].querySelector('.scrollx-m'), 648 content_s[i] = elementScrollxWrap[i].querySelector('.scrollx-s'); 649 650 if ( window.matchMedia('screen and (min-width: ' + dw_lp + 'px)').matches ) { 651 if ( content_x[i] ) { 652 if ( 'undefined' !== typeof scrollxWrapBol_x[i] ) { 653 scrollxWrapBol_x[i].destroy(); 654 } 655 let i_let = i; 656 scrollxWrapBol_x[i] = new ScrollBooster({ 657 viewport: elementScrollxWrap[i_let], 658 content: content_x[i_let], 659 friction: 0.1, 660 onUpdate: function (data) { 661 content_x[i_let].style.transform = 'translateX(' + -data.position.x + 'px)' 662 } 663 }); 664 } else { 665 if ( 'undefined' !== typeof scrollxWrapBol_l[i] ) { 666 scrollxWrapBol_l[i].destroy(); 667 } 668 if ( 'undefined' !== typeof scrollxWrapBol_m[i] ) { 669 scrollxWrapBol_m[i].destroy(); 670 } 671 if ( 'undefined' !== typeof scrollxWrapBol_s[i] ) { 672 scrollxWrapBol_s[i].destroy(); 673 } 674 } 675 } 676 677 if ( window.matchMedia('screen and (min-width: ' + dw_mp + 'px) and (max-width: ' + dw_l + 'px)').matches ) { 678 if ( content_l[i] ) { 679 if ( 'undefined' !== typeof scrollxWrapBol_l[i] ) { 680 scrollxWrapBol_l[i].destroy(); 681 } 682 let i_let = i; 683 scrollxWrapBol_l[i] = new ScrollBooster({ 684 viewport: elementScrollxWrap[i_let], 685 content: content_l[i_let], 686 friction: 0.1, 687 onUpdate: function (data) { 688 content_l[i_let].style.transform = 'translateX(' + -data.position.x + 'px)' 689 } 690 }); 691 } else { 692 if ( 'undefined' !== typeof scrollxWrapBol_x[i] ) { 693 scrollxWrapBol_x[i].destroy(); 694 } 695 if ( 'undefined' !== typeof scrollxWrapBol_m[i] ) { 696 scrollxWrapBol_m[i].destroy(); 697 } 698 if ( 'undefined' !== typeof scrollxWrapBol_s[i] ) { 699 scrollxWrapBol_s[i].destroy(); 700 } 701 } 702 } 703 704 if ( window.matchMedia('screen and (min-width: ' + dw_sp + 'px) and (max-width: ' + dw_m + 'px)').matches ) { 705 if ( content_m[i] ) { 706 if ( 'undefined' !== typeof scrollxWrapBol_m[i] ) { 707 scrollxWrapBol_m[i].destroy(); 708 } 709 let i_let = i; 710 scrollxWrapBol_m[i] = new ScrollBooster({ 711 viewport: elementScrollxWrap[i_let], 712 content: content_m[i_let], 713 friction: 0.1, 714 onUpdate: function (data) { 715 content_m[i_let].style.transform = 'translateX(' + -data.position.x + 'px)' 716 } 717 }); 718 } else { 719 if ( 'undefined' !== typeof scrollxWrapBol_x[i] ) { 720 scrollxWrapBol_x[i].destroy(); 721 } 722 if ( 'undefined' !== typeof scrollxWrapBol_l[i] ) { 723 scrollxWrapBol_l[i].destroy(); 724 } 725 if ( 'undefined' !== typeof scrollxWrapBol_s[i] ) { 726 scrollxWrapBol_s[i].destroy(); 727 } 728 } 729 } 730 731 if ( window.matchMedia('screen and (max-width: ' + dw_s + 'px)').matches ) { 732 if ( content_s[i] ) { 733 if ( 'undefined' !== typeof scrollxWrapBol_s[i] ) { 734 scrollxWrapBol_s[i].destroy(); 735 } 736 let i_let = i; 737 scrollxWrapBol_s[i] = new ScrollBooster({ 738 viewport: elementScrollxWrap[i_let], 739 content: content_s[i_let], 740 friction: 0.1, 741 onUpdate: function (data) { 742 content_s[i_let].style.transform = 'translateX(' + -data.position.x + 'px)' 743 } 744 }); 745 } else { 746 if ( 'undefined' !== typeof scrollxWrapBol_x[i] ) { 747 scrollxWrapBol_x[i].destroy(); 748 } 749 if ( 'undefined' !== typeof scrollxWrapBol_l[i] ) { 750 scrollxWrapBol_l[i].destroy(); 751 } 752 if ( 'undefined' !== typeof scrollxWrapBol_m[i] ) { 753 scrollxWrapBol_m[i].destroy(); 754 } 755 } 756 } 757 } 758 } 759 } 760 761 /* masonry */ 762 var rowMasonry = $('.row-masonry'); 763 if ( rowMasonry.length ) { 764 rowMasonry.masonry({
765 itemSelector: '.col-scope', 766 columnWidth: '.col-scope', 767 percentPosition: true, 768 }); 769 } 770}(jQuery);
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.