1jQuery(document).ready(function($){ 2 if($('.gallery-slides').length){ 3 if( $(window).width() < 900 ){ 4 setMobileLimits(); 5 } 6 $('.gallery-slides').on('init', function(event, slick){ 7 if($('.slick-active video').length){ 8 $('.slick-active video')[0].play(); 9 } 10 }); 11 $( ".featured-item" ).hover( 12 function() { 13 if($(window).width() > 900){ 14 $( this ).addClass('active-button'); 15 } 16 }, function() { 17 if($(window).width() > 900){ 18 $( this ).removeClass('active-button'); 19 } 20 } 21 ); 22 23 $( ".gallery-slides .image-slide" ).hover( 24 function() { 25 if($(window).width() > 900){ 26 $( this ).addClass('active-button'); 27 } 28 }, function() { 29 if($(window).width() > 900){ 30 $( this ).removeClass('active-button'); 31 } 32 } 33 ); 34 35 $('.gallery-slides').slick({ 36 dots: true, 37 arrows:false, 38 autoplay:true, 39 pauseOnHover:false, 40 autoplaySpeed:4000, 41 adaptiveHeight:true, 42 infinite: true, 43 speed: 600, 44 slidesToShow: 1, 45 slidesToScroll: 1, 46 centerMode: false, 47 variableWidth: false, 48 responsive: [{ 49 breakpoint: 900, 50 settings: { 51 autoplay: true 52 } 53 54 }] 55 }); 56 } 57 58 if($('.news-slides').length){ 59 60 $('.news-slides').on('init', function(){ 61 if( $(window).width() < 900 && $('.news-slides .slick-dots').length ){ 62 $('.news-slides .slick-dots').each(function(){ 63 $(this).css('top', $(this).parent().find('.slick-current .slide-content').height() - 30); 64 }); 65 } 66 }); 67 68 $('.news-slides').slick({ 69 dots: false, 70 arrows:true, 71 autoplay:false, 72 infinite: true, 73 speed: 500, 74 slidesToShow: 3, 75 slidesToScroll: 1, 76 centerMode: false, 77 variableWidth: false, 78 nextArrow: '<i class="arrow arrow-right fa fa-angle-right" aria-hidden="true"></i>', 79 prevArrow: '<i class="arrow arrow-left fa fa-angle-left" aria-hidden="true"></i>', 80 responsive: [{ 81 breakpoint: 900, 82 settings: { 83 slidesToShow: 2, 84 slidesToScroll: 1, 85 } 86 87 }, { 88 89 breakpoint: 767, 90 settings: { 91 slidesToShow: 1, 92 slidesToScroll: 1, 93 dots: true, 94 arrows: false 95 } 96 }] 97 }); 98 } 99 100 101 102 103 $('.gallery-slides').on('afterChange', function(event, slick, currentSlide){ 104 if($('.gallery-slides video').length){$('.gallery-slides video')[0].pause();} 105 if ($('.slick-current video').length) { 106 $('.slick-current video')[0].play(); 107 } 108 }); 109 110 $(window).resize(function(){ 111 /*if( $(window).width() > 900 ){ 112 disableMobileLimits(); 113 }*/ 114 }); 115 116 function setMobileLimits(){ 117 var intro_slide_elements = $('.gallery-slides, .gallery-slides .slide , .content-block .description-wrapper'); 118 var intro_height = $(window).height() - $('#header').height(); 119 //intro_slide_elements.css('max-height', intro_height); 120 //intro_slide_elements.css('height', intro_height); 121 } 122 123 function disableMobileLimits(){ 124 var intro_slide_elements = $('.gallery-slides, .gallery-slides .slide , .content-block .description-wrapper'); 125 //intro_slide_elements.css('max-height', 'calc(100vh - 76px'); 126 //intro_slide_elements.css('height', 'auto'); 127 } 128 129});
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.