1$(document).ready(function(){ 2 3 //Wait and then show Owl Gallery 4 setTimeout(function(){ 5 $('.owl-gallery-loader-container').fadeOut(200); 6 }, 1500); 7 8 //Owl Gallery Sync 9 var sync1 = $('.owl-gallery'); 10 var sync2 = $('.owl-gallery-thumbs'); 11 var slidesPerPage = 6; 12 var syncedSecondary = true; 13 sync1.owlCarousel({ 14 lazyLoad: true, lazyLoadEager: 2, items: 1, slideSpeed: 2000, nav: true, autoplay: false, dots: true, loop: true, margin: 10, navText: [], responsiveRefreshRate: 100 15 }).on('changed.owl.carousel', syncPosition); 16 sync2 17 .on('initialized.owl.carousel', function() { 18 sync2.find('.owl-item').eq(0).addClass('current'); 19 }) 20 .owlCarousel({ 21 lazyLoad: true, items: slidesPerPage, dots: false, nav: true, loop: false, smartSpeed: 200, slideSpeed: 500, slideBy: 1, navText: [], responsiveRefreshRate: 100, margin: 10, 22 responsive: { 0: { items: 3 }, 480: { items: 4 }, 568: { items: 5 }, 768: { items: 6 }, 1200: { items: 8 } } 23 }) 24 .on('changed.owl.carousel'); 25 26 function updateResult(pos,value){ 27 status.find(pos).find('.result').text(value); 28 } 29 function syncPosition(el) { 30 var count = el.item.count-1; 31 var current = Math.round(el.item.index - (el.item.count/2) - .5); 32 if(current < 0) { 33 current = count; 34 } 35 if(current > count){ 36 current = 0; 37 } 38 sync2 39 .find('.owl-item') 40 .removeClass('current') 41 .eq(current) 42 .addClass('current'); 43 var onscreen = sync2.find('.owl-item.active').length - 1; 44 var start = sync2.find('.owl-item.active').first().index(); 45 var end = sync2.find('.owl-item.active').last().index(); 46 if (current > end) { 47 sync2.data('owl.carousel').to(current, 100, true); 48 } 49 if (current < start) { 50 sync2.data('owl.carousel').to(current - onscreen, 100, true); 51 } 52 } 53 sync2.on('click', '.owl-item', function(e){ 54 e.preventDefault(); 55 var number = $(this).index(); 56 sync1.data('owl.carousel').to(number, 300, true); 57 }); 58 59});
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.