1/* 2 * familycareç¨ JavaScript 3 */ 4(function($) { 5 6 // --------------------------------------------------------------------------- 7 // Slick 8 // ããã³ããã¼ã¸ ãããPC 9 $('.slickPC').slick({ 10 speed: 500, 11 infinite: true, 12 arrows: true, 13 dots: true 14 }); 15 16 // ãµã ãã¤ã«åæå¤ 17 $('.heroPCThumbs button').eq(0).addClass('isActive'); 18 19 $('.slickPC').on('beforeChange', function(event, slick, currentSlide, nextSlide){ 20 $('.heroPCThumbs button').eq(currentSlide).removeClass('isActive'); 21 $('.heroPCThumbs button').eq(nextSlide).addClass('isActive'); 22 }); 23 24 // Slick Thumbnails 25 $('.heroPCThumbs button').on('click', function(e){ 26 var idx = $('.heroPCThumbs button').index(this); 27 $('.slickPC').slick('slickGoTo', idx); 28 }); 29 30 /// ããã³ããã¼ã¸ ãããSP 31 $('.slickSP').on('init', function(e, slick){ 32 setTimeout( function() { $('.switcherSP').animate({'opacity': 1}, 1000 ); }, 800 ); 33 }); 34 $('.slickSP').slick({ 35 speed: 300, 36 arrows: true, 37 dots: true 38 }); 39 40 /// ããã³ããã¼ã¸ PICKUP 41 $('.secPickupCarousel ul').slick( { 42 speed: 300, 43 infinite: false, 44 arrows: true, 45 touchThreshold: 20, 46 slidesToShow: 4, 47 slidesToScroll: 3 48 }); 49 50 // --------------------------------------------------------------------------- 51 // åæåãã¤ãã³ãå²ãå½ã¦ 52 53 if ( isPC ) { 54 var video = document.querySelector('#slickVideo'); 55 $('.slickPC').addClass('isVisible'); 56 $('.heroPCThumbs').addClass('isVisible'); 57 $('.withSlogan').addClass('isVisible'); 58 } else { 59 $('.slickPC').addClass('isVisible'); 60 $('.heroPCThumbs').addClass('isVisible'); 61 $('.withSlogan').addClass('isVisible'); 62 } 63 64 // --------------------------------------------------------------------------- 65 // InViewå¦ç 66 $('.inView').on('inview', function(e, visible) { 67 if (visible) { 68 $( this ).stop().addClass('inViewOn'); 69 } else { 70 // $( this ).stop().removeClass('inViewOn'); 71 } 72 }); 73 74 // --------------------------------------------------------------------------- 75 // ãç¥ããã®ãã£ã¨è¦ãåãæ¿ã 76 $('.secNewsMore').on('click', function(e){ 77 $( this ).toggleClass('isOpen'); 78 $('.secNewsBottom').slideToggle( 700, 'easeOutQuart' ); 79 }); 80 81})(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.