PageSourceSearch

https://www.tjekdet.dk/themes/custom/niche_media/prototype/source/js/gallery.js?v=10.6.9

js tjekdet.dk collected 2026-10-02 05:50:42 UTC 1,167 bytes, 47 lines download raw bytes

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.