1(function($) { 2 "use strict"; 3 4 $(document).ready(function () { 5 6 $('.owl-carousel').each(function() { 7 var _this = $(this); 8 var data = { 9 navText : ['<i class="fa fa-long-arrow-left"></i></i>','<i class="fa fa-long-arrow-right"></i>'], 10 responsive:{ 11 0:{ 12 items:parseInt($(this).attr('data-item-xs')), 13 }, 14 768:{ 15 items:parseInt($(this).attr('data-item-sm')), 16 }, 17 992:{ 18 items:parseInt($(this).attr('data-item-md')), 19 }, 20 1200:{ 21 items:parseInt($(this).attr('data-item-lg')), 22 stagePadding :parseInt($(this).attr('data-stagepadding')), 23 } 24 } 25 }; 26 if(typeof _this.attr('data-loop') !== 'undefined') { 27 data.loop = _this.attr('data-loop') == 'true' ? true : false; 28 } 29 if(typeof _this.attr('data-autoplay') !== 'undefined') { 30 data.autoplay = _this.attr('data-autoplay') == 'true' ? true : false; 31 } 32 if(typeof _this.attr('data-bullets') !== 'undefined') { 33 data.dots = _this.attr('data-bullets') == 'true' ? true : false; 34 } 35 if(typeof _this.attr('data-center') !== 'undefined') { 36 data.center = _this.attr('data-center') == 'true' ? true : false; 37 } 38 if(typeof _this.attr('data-arrows') !== 'undefined') { 39 data.nav = _this.attr('data-arrows') == 'true' ? true : false; 40 } 41 if(typeof _this.attr('data-rtl') !== 'undefined') { 42 data.rtl = _this.attr('data-rtl') == 'true' ? true : false; 43 } 44 if(typeof _this.attr('data-margin') !== 'undefined') { 45 data.margin = parseInt(_this.attr('data-margin')); 46 } 47 if(typeof _this.attr('data-autoplaytimeout') !== 'undefined') { 48 data.autoplayTimeout = parseInt(_this.attr('data-autoplaytimeout')); 49 } 50 if(typeof _this.attr('data-smartspeed') !== 'undefined') { 51 data.smartSpeed = parseInt(_this.attr('data-smartspeed')); 52 } 53 var owl = _this.owlCarousel(data); 54 var owlAnimateFilter = function(even) { 55 $(this) 56 .addClass('item-loading') 57 .delay(70 * $(this).parent().index()) 58 .queue(function() { 59 $(this).dequeue().removeClass('item-loading'); 60 }); 61 }; 62 63 _this.parent().find('.cms-carousel-filter').on('click', '.cms-filter-item', function(e) { 64 var filter_data = $(this).attr('data-filter'); 65 if($(this).hasClass('cms-filter-active')) return; 66 $(this).addClass('cms-filter-active').siblings().removeClass('cms-filter-active'); 67 owl.owlFilter(filter_data, function(_owl) { 68 $(_owl).find('.cms-item').each(owlAnimateFilter); 69 }); 70 }); 71 72 }); 73 74 }); 75}(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.