1window.nichemediet = window.nichemediet || {}; 2 3(function($) { 4 5 nichemediet.gallery = function(root) { 6 this.element = root; 7 this._attach(); 8 } 9 10 nichemediet.gallery.prototype = { 11 12 _attach : function() { 13 14 var container = this.element.find('.js-gallery-body').get()[0]; 15 var gallery = this.gallery = new Swiper(container, { 16 direction: 'horizontal', 17 slidesPerView: 'auto', 18 wrapperClass : 'js-gallery-items', 19 slideClass : 'js-gallery-item', 20 observer: true, 21 observeParents: true, 22 pagination: { 23 el: this.element.find('.js-gallery-pagination'), 24 type: 'fraction', 25 } 26 }); 27 28 this.element.find('.js-gallery-next').click(function(e) { 29 e.preventDefault(); 30 gallery.slideNext(); 31 }); 32 this.element.find('.js-gallery-previous').click(function(e) { 33 e.preventDefault(); 34 gallery.slidePrev(); 35 }); 36 } 37 } 38 39 Drupal.behaviors.nichemedietgallery = { 40 attach : function(context, settings) { 41 $('.js-gallery', context).each(function() { 42 new nichemediet.gallery($(this)); 43 }) 44 } 45 }; 46 47})(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.