1$(function () { 2 $('.section-slider__wrapper').on('init', function() { 3 $('.section-slider__wrapper').css('opacity', 1); 4 }); 5 6 $('.section-slider__wrapper').slick({ 7 dots: true, 8 slidesToShow: 1, 9 adaptiveHeight: true, 10 arrows: false, 11 autoplay: true, 12 autoplaySpeed: 5000, 13 }); 14 15 $('.js-fancy-popup').fancybox({ 16 margin: 0, 17 padding: 20, 18 maxWidth: 710, 19 autoScale: true, 20 transitionIn: 'none', 21 transitionOut: 'none', 22 type: 'inline', 23 helpers: { 24 overlay: { 25 locked: false 26 } 27 } 28 }); 29 30 if (typeof(mainSlider) == 'undefined') { 31 var mainSlider = {}; 32 } 33 34 $('.section-slider__item').each(function() { 35 var slide = $(this); 36 var slideId = slide.data('id'); 37 var slidePc = slide.data('pc'); 38 var slideMob = slide.data('mob'); 39 40 if (slidePc && slideMob) { 41 mainSlider[slideId] = { 42 slide: slide, 43 pc: slide.data('pc'), 44 mob: slide.data('mob') 45 } 46 } 47 }); 48 49 function changeBackground() { 50 $.each(mainSlider, function(index, value) { 51 var backgroundImage = ($(window).width() > 480) ? value.pc : value.mob; 52 value.slide.css('background-image', 'url(' + backgroundImage + ')'); 53 }); 54 } 55 56 changeBackground(); 57 $(window).resize(changeBackground); 58 59 $(document).on('click', '.fancybox-close', function (e) { 60 $('.vjs-play-control[title="Pause"]').trigger('click'); 61 }); 62});
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.