PageSourceSearch

https://www.um.si/wp-content/themes/um_si/assets/js/interactiveMap.js?x69468&ver=6.9.0

js um.si collected 2026-10-01 10:12:12 UTC 3,461 bytes, 97 lines download raw bytes

1$(function () {
2
3    $('[data-im-tab-trigger]').on('click', function(){
4        let e = $(this), id = e.attr('data-im-tab-trigger');
5
6        e.parent().find('.is-active').removeClass('is-active');
7        e.addClass('is-active');
8       
9        $('[data-im-tab="'+id+'"]').parent('div').find('.is-active').removeClass('is-active');
10        $('[data-im-tab="'+id+'"]').addClass('is-active');
11
12        let firstTabInput = $('[data-im-tab="'+id+'"]').find('input[data-im-input-id]:first');        
13        getTabContent( firstTabInput.attr('data-im-input-id'), firstTabInput.attr('data-im-input-el') );
14
15        return false;
16    });
17
18    $('[data-im-trigger-id]').on('click keydown', function(event){
19
20        if (event.keyCode === 9) return; 
21        event.preventDefault();
22        if (!(event.type === 'click' || event.keyCode  === 13 || event.keyCode  === 32)) return;
23
24        let e = $(this), id = e.attr('data-im-trigger-id'), name = e.attr('data-im-trigger-name'), c = e.closest('.interactiveMapC');
25        
26        if(!name && !id) return;
27        getTabContent(id, name);
28    });
29
30    $('[data-im-trigger-id]').each(function(){
31        $(this).attr('tabindex','0');
32    });
33
34    $('[data-im-trigger-tt]').on('click', function(){
35        $(this).closest('.tabC').find('[data-im-tab-trigger]:last').click();
36    });
37
38    $('.tabC').each(function(){
39        let e = $(this), i = e.find('input[data-im-input-id]:first');
40        e.find('[data-im-tab-trigger]:first').click();
41    });
42
43    function getTabContent(id, name){
44        let p = $('div[data-tab-content="'+id+'"]'), e = $('[data-im-trigger-id="'+id+'"][data-im-trigger-name="'+name+'"]'), c;
45        if(p.length && !e.hasClass('is-active')) {
46            c = e.closest('.interactiveMapC'), f = c.find('[data-im-frame="'+name+'"]');
47            e.hasClass('imp__frame_li') ? c.find('.imp__frame_li.is-active').removeClass('is-active') : c.find('.is-active').removeClass('is-active');
48
49            if (e.data('is-multiple') !== undefined) {
50                let ms = f.find('[data-im-trigger-name]:first');
51                name = ms.data('im-trigger-name');
52                ms.addClass('is-active');
53            }
54            
55            if (e.data('is-multiple') !== undefined) {
56                f.find('[data-im-trigger-name]:first').addClass('is-active');
57            }
58
59            e.addClass('is-active');
60            f.addClass('is-active');
61                    
62            p.html( JSON.parse($('input[data-im-input-id="'+id+'"][data-im-input-el="'+name+'"]').val()));
63        }
64    }
65
66   /**
67    * 
68    * 
69
70    $('[data-im-trigger-id]').on('click', function(){
71        let e = $(this), id = e.attr('data-im-trigger-id'), name = e.attr('data-im-trigger-name');
72        if(id && name) getTabContent(id, name);
73
74        $('[data-pp').removeClass('is-active');
75    });
76
77    $('[data-im-trigger-multiple]').on('click', function(){
78        let p = $(this).closest('.imp');
79        p.find('[data-im-trigger-id]:first').click();
80    });
81    $('[data-im-mobile-trigger-multiple]').on('click', function(){
82        let e = $(this),
83            p = e.closest('.interactiveMapC'),
84            d = e.data('im-mobile-trigger-multiple');
85            
86            e.addClass('is-active');
87        $('[data-pp="'+d+'"]').addClass('is-active');
88    });
89
90    $('[data-im-trigger-tt]').on('click', function(){
91        $(this).closest('.tabC').find('[data-im-tab-trigger]:last').click();
92    });
93
94
95
96    */
97});

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.