PageSourceSearch

https://bip.blonie.pl/cms/js/custom.js

js blonie.pl collected 2026-10-02 12:25:55 UTC 16,528 bytes, 530 lines download raw bytes

1jQuery(document).ready(function($) {
2    "use strict"
3
4
5    // ------- Navigation ------- //
6    if ($('ul.nav li.dropdown').length) {
7        $('ul.nav li.dropdown').on('hover', function() {
8            $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
9        }, function() {
10            $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
11        });
12    }
13    // ------- Navigation End ------- //
14
15
16    // ------- Home Slider Start ------- //
17    if ($('#home-slider').length) {
18        $('#home-slider').owlCarousel({
19            loop: true,
20            margin: 0,
21            nav: false,
22            items: 1,
23            autoplay: true,
24
25        })
26    }
27    // ------- Home Slider End ------- //
28
29
30    // ------- Home Slider Start ------- //
31    if ($('#highlight-slider').length) {
32        $('#highlight-slider').owlCarousel({
33            loop: true,
34            margin: 5,
35			dots:false,
36            responsiveClass: true,
37            responsive: {
38                0: {
39                    items: 1,
40                    nav: true,
41                    loop: false,
42                },
43                600: {
44                    items: 2,
45                    nav: true,
46                    loop: false,
47                },
48                1000: {
49                    items: 4,
50                    nav: true,
51                    loop: false
52                }
53            }
54        })
55    }
56    // ------- Home Slider End ------- //
57
58
59    // ------- Home Slider Start ------- //
60    if ($('#highlight-slider-2').length) {
61        $('#highlight-slider-2').owlCarousel({
62            loop: true,
63            margin: 0,
64            dots: false,
65            responsiveClass: true,
66            responsive: {
67                0: {
68                    items: 1,
69                    nav: true,
70                    loop: false,
71                },
72                700: {
73                    items: 2,
74                    nav: true,
75                    loop: false,
76                },
77                1000: {
78                    items: 3,
79                    nav: true,
80                    loop: false
81                }
82            }
83        })
84    }
85    // ------- Home Slider End ------- //
86
87
88
89    // ------- Pretty Photo Start ------- // 
90    if ($('.gallery').length) {
91        $("area[data-rel^='prettyPhoto']").prettyPhoto();
92        $(".gallery:first a[data-rel^='prettyPhoto']").prettyPhoto({
93            animation_speed: 'normal',
94            theme: 'light_square',
95            slideshow: 3000,
96            autoplay_slideshow: false
97        });
98
99    }
100    // ------- Pretty Photo End ------- // 
101
102
103   
104
105
106
107
108    // ------- Event Slider Start ------- //
109    if ($('.recent-event-slider').length) {
110        $('.recent-event-slider').slick({
111            slidesToShow: 1,
112            slidesToScroll: 1,
113            arrows: false,
114        });
115        $('.recent-event-slider-nav').slick({
116            slidesToShow: 4,
117            slidesToScroll: 1,
118            asNavFor: '.recent-event-slider',
119            dots: false,
120            centerMode: false,
121            focusOnSelect: true,
122        });
123    }
124    // ------- Event Slider End ------- //	
125
126
127    // ------- Home Slider Start ------- //
128    if ($('#h3team-slider').length) {
129        $('#h3team-slider').owlCarousel({
130            loop: true,
131            margin: 30,
132
133            dots: false,
134            responsiveClass: true,
135            responsive: {
136                0: {
137                    items: 1,
138                    nav: true
139                },
140                600: {
141                    items: 2,
142                    nav: true
143                },
144                1000: {
145                    items: 2,
146                    nav: true,
147                    loop: false
148                }
149            }
150        })
151    }
152    // ------- Home Slider End ------- //
153
154
155
156    // ------- Close Btn ------- //
157    if ($('#closebtn').length) {
158        $('#closebtn').on('click', function() {
159            $('#closetopbar').slideUp().empty();
160        });
161
162        $(function() {
163            $('#closetopbar').slideDown();
164        });
165    }
166    // ------- Close Btn ------- //
167
168
169
170    // ------- Events Counter ------- //
171    if ($('#defaultCountdown').length) {
172        if($('#eventDate').length){
173        let year = $('#eventDate').data('eventyear');
174        let month = $('#eventDate').data('eventmonth');
175        let day = $('#eventDate').data('eventday');
176        let hour = $('#eventDate').data('eventhour');
177        
178        var austDay = new Date();
179        
180        austDay = new Date(year, month, day, hour);
181        $('#defaultCountdown').countdown({
182            until: austDay,
183            regionalOptions:{
184                labels:["dadas","Months","Weeks","Dni","Hours","Minutes","Seconds"],
185                labels1:["Year","Month","Week","Day","Hour","Minute","Second"],
186            }
187        });
188        $('#year').text(austDay.getFullYear());
189    }
190    }
191
192
193    // ------- Filter Gallery Start ------- //
194    if ($('.filter-gallery').length) {
195        if ($('.filter-gallery .isotope').length) {
196            var $container = $('.filter-gallery .isotope');
197            $container.isotope({
198                itemSelector: '.item',
199                transitionDuration: '0.6s',
200                masonry: {
201                    columnWidth: $container.width() / 12
202                },
203                layoutMode: 'masonry'
204            });
205            $(window).on("resize", function() {
206                $container.isotope({
207                    masonry: {
208                        columnWidth: $container.width() / 12
209                    }
210                });
211            });
212        }
213        if ($('.filter-gallery #filters').length) {
214            $('.filter-gallery #filters').on('click', 'button', function() {
215                var filterValue = $(this).attr('data-filter');
216                $container.isotope({
217                    filter: filterValue
218                });
219            });
220            // change is-checked class on buttons
221            $('.filter-gallery .button-group').each(function(i, buttonGroup) {
222                var $buttonGroup = $(buttonGroup);
223                $buttonGroup.on('click', 'button', function() {
224                    $buttonGroup.find('.is-checked').removeClass('is-checked');
225                    $(this).addClass('is-checked');
226                });
227            });
228
229        }
230    }
231
232    // ------- Classic Gallery ------- //
233
234    if ($('.classic-gallery').length) {
235        if ($('.classic-gallery .isotope').length) {
236            var $container = $('.classic-gallery .isotope');
237            $container.isotope({
238                itemSelector: '.item',
239                transitionDuration: '0.6s',
240                masonry: {
241                    columnWidth: $container.width() / 12
242                },
243                layoutMode: 'masonry'
244            });
245            $(window).on("resize", function() {
246                $container.isotope({
247                    masonry: {
248                        columnWidth: $container.width() / 12
249                    }
250                });
251            });
252        }
253    }
254
255
256    // ------- Filter Gallery End ------- //
257
258
259
260
261    // ------- Testimonials Page Slider Start ------- //
262    if ($('#h3testimonials').length) {
263        $('#h3testimonials').owlCarousel({
264            loop: true,
265            margin: 30,
266            responsiveClass: true,
267            autoHeight: true,
268            autoplay: true,
269            center: true,
270            responsive: {
271                0: {
272                    items: 1,
273                },
274                600: {
275                    items: 2,
276                },
277                1000: {
278                    items: 3,
279                    loop: true,
280                }
281            }
282        })
283    }
284
285    // ------- Testimonials 2nd Option ------- //
286
287    if ($('#testimonials').length) {
288        $('#testimonials').owlCarousel({
289            loop: true,
290            margin: 30,
291            responsiveClass: true,
292            autoHeight: true,
293            autoplay: true,
294            responsive: {
295                0: {
296                    items: 1,
297                },
298                600: {
299                    items: 2,
300                },
301                1000: {
302                    items: 4,
303                    loop: true,
304                }
305            }
306        })
307    }
308    // ------- Testimonials Page Slider End ------- //
309
310
311
312    // ------- Counter Start ------- //
313    if ($('.countdown').length) {
314        var austDay = new Date();
315        austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
316        $('.countdown').countdown({
317            until: austDay
318        });
319        $('#year').text(austDay.getFullYear());
320    }
321    // ------- Counter End ------- // 
322
323    // ------- Search Overlay Start ------- //
324    if ($('a[href="#search"]').length) {
325        $(function() {
326            $('a[href="#search"]').on('click', function(event) {
327                event.preventDefault();
328                $('#search').addClass('open');
329                $('#search > form > input[type="search"]').focus();
330            });
331            $('#search, #search button.close').on('click keyup', function(event) {
332                if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
333                    $(this).removeClass('open');
334                }
335            });
336            $('form').submit(function(event) {
337                event.preventDefault();
338                return false;
339            })
340        });
341    }
342
343    // ------- Search Overlay End ------- //
344	
345	 if ($('#dismiss, .overlay').length) {
346       $('#dismiss, .overlay').on('click', function () {
347       $('#sidebar').removeClass('active');
348       $('.overlay').removeClass('active');
349       });
350
351       $('#sidebarCollapse').on('click', function () {
352       $('#sidebar').addClass('active');
353       $('.overlay').addClass('active');
354       $('.collapse.in').toggleClass('in');
355       $('a[aria-expanded=true]').attr('aria-expanded', 'false');
356       });
357	 }
358
359
360}); //End
361
362
363 // ------- Site Sticky Footer Start ------- //
364    if ($('#site-footer').length) {
365        if ($('#site-footer').length) {
366            siteFooter();
367            $(window).on('resize', function() {
368                siteFooter();
369            });
370
371            function siteFooter() {
372                var siteContent = $('#site-footer');
373                var siteContentHeight = siteContent.height();
374                var siteContentWidth = siteContent.width();
375
376                var siteFooter = $('#call-2-action');
377                var siteFooterHeight = siteFooter.height();
378                var siteFooterWidth = siteFooter.width();
379
380                console.log('Content Height = ' + siteContentHeight + 'px');
381                console.log('Content Width = ' + siteContentWidth + 'px');
382                console.log('Footer Height = ' + siteFooterHeight + 'px');
383                console.log('Footer Width = ' + siteFooterWidth + 'px');
384
385                siteContent.css({
386                    "margin-bottom": siteFooterHeight + 50
387                });
388            };
389        }
390    }
391    // ------- Site Sticky Footer End ------- //	
392
393
394// change font size
395function changeFontSize(fontSize){
396    $(':root').css("font-size", fontSize+'px');
397    setCookie('fontsize', fontSize, 365);
398}
399if(!getCookie('fontsize')){
400    setCookie('fontsize', 1, 365);
401}
402else {
403    let fontSize = getCookie('fontsize');
404    changeFontSize(fontSize);
405}
406$('#zmniejszczcionke').click(function(){
407    let fontSize = getCookie('fontsize');
408    fontSize = parseFloat(fontSize)-0.1;
409    changeFontSize(fontSize);
410});
411$('#standardowaczcionka').click(function(){
412    fontSize = 1;
413    changeFontSize(fontSize);
414});
415$('#zwiekszczcionke').click(function(){
416    let fontSize = getCookie('fontsize');
417    fontSize = parseFloat(fontSize)+0.1;
418    changeFontSize(fontSize);
419});
420// end font size
421// change contrast version
422function changeContrast(version){
423    if(version === 0){
424        $('body').addClass("contrast");
425        $('#logoJednostki-pzdkrosno').attr("src","/media/pzd-krosno-biale.gif");
426        setCookie('contrastversion', 1, 365);
427    }
428    else {
429        $('body').removeClass("contrast");
430        $("#logoJednostki-pzdkrosno").attr("src","/tenancy/tenants/bip.pzdkrosno.pl/2022-07/af12725401b9bffc9379ddc0ac70c284.gif");
431        setCookie('contrastversion', 0, 365);
432    }
433}
434function isContrastEnabled(){
435    let version = getCookie('contrastversion');
436    if(parseInt(version) === 1){
437        return true;
438    }
439    else {
440        return false;
441    }
442}
443function pogodynka(){
444     
445        let bacgroundColor = '0e9bd8';
446
447        if(isContrastEnabled()){
448            bacgroundColor = '000000';
449        }
450        const template = `
451            <div id="inpl-weather-main" data-icT="1" data-cId="7337" data-clBg="${bacgroundColor}" data-clTxt="f8f8f8" data-clLink="75c7f1" data-txtDesc="0" data-fTemp="0" data-crPs="0" data-crWind="0" data-fr="2" data-wdh="300" data-hIf="400" data-d="//widgets.interia.pl" style="position:relative;width:300px;background-color:#0e9bd8">
452                <div id="inpl-weather-links" style="background-color:#${bacgroundColor}; padding:5px 0px 15px;text-align:center">
453                    <a id="wlHbh" style="color:#75c7f1;font-size:13px;padding-right:24px;text-decoration:none;" href="https://pogoda.interia.pl/prognoza-szczegolowa-dzierzkowice-rynek,cId,7337" title="Dzierzkowice-Rynek - prognoza pogody" >Godzina po godzinie </a>
454                    <a id="wlfr" style="color:#75c7f1;font-size:13px;text-decoration:none;
454" href="https://pogoda.interia.pl/prognoza-dlugoterminowa-dzierzkowice-rynek,cId,7337" title="Dzierzkowice-Rynek - prognoza pogody" >Na 45 dni</a>
455                </div>
456            </div>
457        `;
458        const selector = document.querySelector('.pogodynka-template');
459        
460        if(selector){
461            selector.innerHTML = template;
462        }
463        
464        (function (d, t, i) {
465            if (d.getElementById(i))
466                return;
467            var f = d.getElementsByTagName(t)[0], js = d.createElement(t);
468            js.id = i;
469            js.src = "//w.iplsc.com/widget/weather.jssc";
470            f.parentNode.appendChild(js);
471        }(document, "script", "widget-js"));
472}
473if(!getCookie('contrastversion') ){
474    setCookie('contrastversion', 0, 365);
475}
476else {
477    let version = getCookie('contrastversion');
478    if(parseInt(version) === 1){
479          $('body').addClass("contrast");
480      }
481      else {
482          $('body').removeClass("contrast");
483      }
484}
485$('#zmianawersjikontrastowej').click(function(){
486    let version = getCookie('contrastversion');
487    changeContrast(parseInt(version));
488});
489// end check contrast version
490
491   
492$(document).ready(function(){
493   pogodynka();
494});
495$(document).ready(function(){
496        $('.showcase-panels-container > ul > li').hover(
497            function() {
498              $(this).parents('.showcase-panels-container').attr('data-hover', $(this).index());
499              $(this).addClass('hovered');
500              var $this = $(this);
501              $(this).siblings().each(function() {
502            if ($(this).index() < $this.index()) {
503              $(this).addClass('right-was-hovered');
504            } else if ($(this).index() > $this.index()) {
505              $(this).addClass('left-was-hovered');
506            }
507              });
508            },
509            function() {
510              $(this).parents('.showcase-panels-container').removeAttr('data-hover')
511              .find('> ul > li').removeClass('hovered right-was-hovered left-was-hovered');
512            }
513      );
514});
515$(function () {
516  $('[data-tooltip="tooltip"]').tooltip()
517})
518$(document).ready(function(){
519    let menu = $('.toogleHeaderMenu');
520    let body = $('body');
521    $('.openMenuButton').click(function(){
522        menu.show();
523        body.addClass('menuActivated');
524    });
525    $('.closeMenuButton').click(function(){
526        menu.hide();
527        body.removeClass('menuActivated');
528
529    });
530});

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.