1window.eviivo = window.eviivo ? window.eviivo : {}; 2window.eviivo.fullPageSlider = window.eviivo.fullPageSlider ? window.eviivo.fullPageSlider : {}; 3 4window.eviivo.fullPageSlider = function ($) { 5 6 var main = $(".hero-slides"); 7 var thumbs = $(".thumb-slides"); 8 var count = $(".image-count"); 9 var title = $(".slide-title"); 10 11 if ($(".hero-slide").length > 1) { 12 13 // set first image title before slider get initialised. 14 title.text($(".hero-slide_has-strapline").find("img").attr("title")); 15 16 main.on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) { 17 //currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based) 18 var i = (currentSlide ? currentSlide : 0) + 1; 19 var slide = $(".slick-slide[data-slick-index='" + currentSlide + "']").find("img").attr("title"); 20 21 title.text(slide); 22 count.text(i + '/' + slick.slideCount); 23 }); 24 25 $(document).on('keydown', function (e) { 26 if (e.keyCode === 37) { 27 main.slick('slickPrev'); 28 } 29 if (e.keyCode === 39) { 30 main.slick('slickNext'); 31 } 32 }); 33 34 main.slick({ 35 lazyLoad: "ondemand", 36 slidesToShow: 1, 37 slidesToScroll: 1, 38 dots: false, 39 asNavFor: '.thumb-slides', 40 mobileFirst: true, 41 arrows: true, 42 responsive: [ 43 { 44 breakpoint: 1023, 45 settings: { 46 arrows: false 47 } 48 } 49 ] 50 }); 51 52 thumbs.slick({ 53 slidesToShow: 5, 54 slidesToScroll: 1, 55 asNavFor: '.hero-slides', 56 dots: false, 57 centerMode: true, 58 focusOnSelect: true 59 }); 60 } 61 62}(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.