PageSourceSearch

https://www.kat.org.il/schemasAssets/asReimProgram/js/gallery.js

js kat.org.il collected 2026-10-07 08:43:35 UTC 1,026 bytes, 40 lines download raw bytes

1(function($){
2   
3   function initGallery (opts) {
4       opts = $.extend({},{
5            selector: '.selector',
6            useLeft:    true,           
7       },opts);
8       $('#gallery').lightGallery(opts);
9   }
10   
11   
12    $(document).ready(function(){
13        $('.selector').each(function(){
14            $(this).addClass('cat-' + $(this).data('category'))
15        });
16        initGallery();
17        if ($('.filtr-container').length) {
18            $('.filtr-container').filterizr();
19        }
20    });   
21    
22    $('.simplefilter li').on('click', function (e) {
23        $('.simplefilter li.active').removeClass('active');
24        $(e.target).addClass('active');
25        
26        var cat = $(e.target).attr('data-filter'),
27            selector    = 'all' == cat
28                ?   '.selector'
29                :   '.selector.cat-' + cat;
30        
31        if (cat) {
32           $('#gallery').data('lightGallery').destroy(true);
33            
34            initGallery ({selector: selector});
35        }
36    });
37
38})(jQuery);
39
40

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.