PageSourceSearch

https://www.chmielno.pl/wp-content/themes/chmielno/js/scripts.js?v=1790320367

js chmielno.pl collected 2026-09-25 07:13:22 UTC 5,332 bytes, 169 lines download raw bytes

1jQuery(document).ready(function() {
2    jQuery('#nav-icon1,#nav-icon2,#nav-icon3,#nav-icon4').click(function(){
3        jQuery('body').toggleClass('blur');
4		jQuery('.header-logo').toggle();
5        jQuery('aside').slideToggle();
6        jQuery(this).toggleClass('open');
7    });
8
9    if (jQuery(window).width() < 600) {
10        items = 2;
11    } else if(jQuery(window).width() < 1000) {
12        items = 4;
13    } else {
14        items = 8
15    }
16
17    jQuery('#bottomCarousel .owl-carousel').owlCarousel({
18        stagePadding: 35,
19        loop: true,
20        margin: 0,
21        nav: true,
22        dots: false,
23        navText: [
24            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
25            '<i class="fa fa-angle-right" aria-hidden="true"></i>'
26        ],
27        navContainer: '#bottomCarousel .custom-nav',
28        responsive:{
29            0:{
30                items: items
31            },
32            600:{
33                items: items
34            },
35            1000:{
36                items: items
37            }
38        }
39    });
40
41    jQuery('#objectCarousel .owl-carousel').owlCarousel({
42        stagePadding: 40,
43        loop: false,
44        margin: 10,
45        nav: true,
46        dots: false,
47        navText: [
48            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
49            '<i class="fa fa-angle-right" aria-hidden="true"></i>'
50        ],
51        navContainer: '#objectCarousel .custom-nav',
52        responsive:{
53            0:{
54                items: 1
55            },
56            600:{
57                items: 3
58            },
59            1000:{
60                items: 6
61            }
62        }
63    });
64
65    jQuery('.contrast').styleSwitcher({
66        hasPreview: false,
67        defaultThemeId: 'jssDefault',
68        fullPath: template_directory+'/css/',
69        cookie: {
70            expires: 86400,
71            isManagingLoad: true
72        }
73    });
74
75    jQuery('ul.menu > li a.menu-item-has-children').click(function(e) {
76        e.preventDefault();
77        jQuery(this).toggleClass('open');
78        jQuery(this).parent('li').children('ul').slideToggle();
79		
80    });
81
82    jQuery('#contactTable').DataTable({
83        paging: false,
84        info: false,
85        searching: false,
86        responsive: true
87    });
88
89    var refferer = document.referrer;
90
91    jQuery('ul.menu li a').each(function() {
92        if( jQuery(this).hasClass('current-menu-item') ) {
93            var target = jQuery(this).parents('.tab-pane').attr('id');
94			let brakeLoop = false;
95            if(jQuery(this).text() == 'Aktualności') {
96                if (refferer.indexOf("turysta") >= 0 || refferer.indexOf("baza_noclegowa") >= 0 || refferer.indexOf("atrakcja_turystyczna") >= 0 || refferer.indexOf("konkurs") >= 0 ) {
97                    jQuery('.nav a').filter('[href="#turysta"]').tab('show');
98                } else if (refferer.indexOf("inwestor") >= 0) {
99                    jQuery('.nav a').filter('[href="#inwestor"]').tab('show');
100                }
101            } else {
102				jQuery('.nav a').filter('[href="#'+target+'"]').tab('show');
103				brakeLoop = true; 
104            }
105
106            if( jQuery(this).parents('ul').hasClass('sub-menu') ) {
107                jQuery(this).parents('ul').show();
108                jQuery(this).parents('ul').parent('li').addClass('active');
109            }
110			if (brakeLoop)
111				brake;
112        }
113    });
114
115    jQuery('.mec-color-hover').each(function() {
116        var id = jQuery(this).data('event-id');
117        jQuery(this).attr('href','/events?id='+id);
118
119    })
120
121    jQuery('.owl-prev').prop('title','Poprzedni');
122    jQuery('.owl-next').prop('title','Następny');
123});
124
125function increaseFontSize(id, increaseFactor){
126     txt = document.getElementById(id);
127     style = window.getComputedStyle(txt, null).getPropertyValue('font-size');
128     currentSize = parseFloat(style);
129     txt.style.fontSize = (currentSize + increaseFactor) + 'px';
130}
131
132jQuery(function () {
133  jQuery('[data-toggle="tooltip"]').tooltip()
134})
135
136function increaseFontSize() {
137    var fontSizeBody = parseInt(jQuery("body").css("font-size"));
138    fontSizeBody = fontSizeBody + 1 + "px";
139    jQuery("body").css({'font-size':fontSizeBody});
140
141    var fontSizeLink = parseInt(jQuery("a").css("font-size"));
142    fontSizeLink = fontSizeLink + 1 + "px";
143    jQuery("a").not('.options a').css({'font-size':fontSizeLink});
144
145    var fontSizeAkapit = parseInt(jQuery("p").css("font-size"));
146    fontSizeAkapit = fontSizeAkapit + 1 + "px";
147    jQuery("p").css({'font-size':fontSizeAkapit});
148
149    var fontSizeh3 = parseInt(jQuery("h3").css("font-size"));
150    fontSizeh3 = fontSizeh3 + 1 + "px";
151    jQuery("h3").css({'font-size':fontSizeh3});
152}
153function decreaseFontSize() {
154    var fontSizeBody = parseInt(jQuery("body").css("font-size"));
155    fontSizeBody = fontSizeBody - 1 + "px";
156    jQuery("body").css({'font-size':fontSizeBody});
157
158    var fontSizeLink = parseInt(jQuery("a").css("font-size"));
159    fontSizeLink = fontSizeLink - 1 + "px";
160    jQuery("a").not('.options a').css({'font-size':fontSizeLink});
161
162    var fontSizeAkapit = parseInt(jQuery("p").css("font-size"));
163    fontSizeAkapit = fontSizeAkapit - 1 + "px";
164    jQuery("p").css({'font-size':fontSizeAkapit});
165
166    var fontSizeh3 = parseInt(jQuery("h3").css("font-size"));
167    fontSizeh3 = fontSizeh3 - 1 + "px";
168    jQuery("h3").css({'font-size':fontSizeh3});
169}

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.