PageSourceSearch

https://turystyka-nizanski.pl/wp-content/themes/trucking/js/include.js?ver=1.0

js turystyka-nizanski.pl collected 2026-10-06 19:53:08 UTC 7,906 bytes, 241 lines download raw bytes

1(jQuery)(function ($) {
2    "use strict";
3
4    // MAIN NAVIGATION
5    $('.nav .dropdown').hover(function () {
6        $(this).find('ul:first').css({
7            visibility: "visible",
8            display: "none"
9        }).fadeIn(300);
10    }, function () {
11        $(this).find('ul:first').css({
12            display: "none"
13        });
14    });
15
16    // RESPONSIVE NAVIGATION
17    $(function () {
18        var backLabel = VolcannoConfig.mobileMenuBackLabel;
19        
20        $('#dl-menu').dlmenu({
21            animationClasses: {
22                classin: 'dl-animate-in-2',
23                classout: 'dl-animate-out-2'
24            },
25            backLabel : backLabel
26        });
27    });
28
29    // SEARCH ANIMATION
30    $('#header').on('click', '#search', function (e) {
31        e.preventDefault();
32
33        $(this).find('#m_search').fadeIn().focus();
34    });
35
36    $('#m_search').focusout(function (e) {
37        $(e.target).fadeOut();
38    });
39
40    // SOLID HEADER  - TRANSPARENT HEADER
41    function set_static_header(position) {
42
43        var adminBarHeight = 0;
44
45        if ($('#header').hasClass('header-style01')) {
46            var header_height = $(".header-wrapper.header-transparent").height();
47
48            if ($('body').hasClass('admin-bar')) {
49                adminBarHeight = 32;
50            }
51
52            var mainNavMargin = adminBarHeight + 10;
53
54            if (position > header_height) {
55                $(".header-wrapper.header-transparent").addClass("solid-color").find('.header-style01 .main-nav').css('margin-top', mainNavMargin + 'px');
56                $(".header-wrapper.header-transparent02").addClass("solid-color").find('.header-style01 .main-nav').css('margin-top', mainNavMargin + 'px');
57            } else {
58                $(".header-wrapper.header-transparent").removeClass("solid-color").find('.header-style01 .main-nav').css('margin-top', '35px');
59                $(".header-wrapper.header-transparent02").removeClass("solid-color").find('.header-style01 .main-nav').css('margin-top', '35px');
60            }
61
62            var top_bar_height = $('#top-bar-wrapper').height();
63
64            if (position > header_height) {
65                $('.header-wrapper').css(
66                        'top', -top_bar_height - 20
67                        );
68            } else {
69                if ($('body').hasClass('admin-bar')) {
70                    $('.header-wrapper').css('top', "32px");
71                } else {
72                    $('.header-wrapper').css('top', "0");
73                }
74            }
75        }
76
77        if ($('#header').hasClass('header-style02')) {
78            var header_height = $(".header-style02").height();
79            var top_bar_height = $('#top-bar-wrapper').height();
80
81            if (position > header_height) {
82                if ($('body').hasClass('admin-bar')) {
83                    adminBarHeight = 32;
84                }
85
86                $('.header-wrapper').css(
87                        'top', -top_bar_height - 20 + adminBarHeight
88                        );
89            } else {
90                if ($('body').hasClass('admin-bar')) {
91                    $('.header-wrapper').css('top', "32px");
92                } else {
93                    $('.header-wrapper').css('top', "0");
94                }
95            }
96        }
97
98        if ($('#header').hasClass('header-style03')) {
99            var header_height = $(".header-wrapper").height();
100
101            if ($('body').hasClass('admin-bar')) {
102                adminBarHeight = 32;
103            }
104
105            if (position > header_height) {
106                $('.header-wrapper').css(
107                        'top', adminBarHeight
108                        );
109            } else {
110                if ($('body').hasClass('admin-bar')) {
111                    $('.header-wrapper').css('top', adminBarHeight);
112                } else {
113                    $('.header-wrapper').css('top', "0");
114                }
115            }
116        }
117
118
119    }
120
121
122    if (!VolcannoFunctions.isTouchDevice() && VolcannoConfig.staticHeader == '1') {
123
124        (function () {
125            var window_y = $(document).scrollTop();
126            if (window_y > 0) {
127                set_static_header(1);
128            } else {
129                // HEADER POSITION ADJUSTMENT
130                if ($('body').hasClass('admin-bar')) {
131                    $('#header-wrapper').css('top', '30px');
132                }
133            }
134        })();
135
136        $(window).scroll(function () {
137            var position = $(this).scrollTop();
138            set_static_header(position);
139        });
140
141        $(window).resize(function () {
142            var position = $(this).scrollTop();
143            set_static_header(position);
144        });
145
146        var headerWrapperHeight = $('.header-wrapper').height();
147        $('.header-wrapper').not('.header-transparent').next().css('margin-top', headerWrapperHeight);
148        if ($('.header-wrapper').next().hasClass('page-title-style01')) {
149            $('.header-wrapper').next().css('marginTop', 0).css('paddingTop', '185px');
150        }
151
152    } else if (VolcannoConfig.staticHeader == '0') {
153
154        if ($('.header-wrapper').next().hasClass('page-title-style01')) {
155            $('.header-wrapper').addClass('solid-color not-static');
156        }
157    } else if (VolcannoFunctions.isTouchDevice() && VolcannoConfig.staticHeader == '1') {
158        $('.header-wrapper').addClass('solid-color not-static');
159
160    }
161
162
163    // SCROLL TO TOP 
164    $(window).scroll(function () {
165        if ($(this).scrollTop() > 100) {
166            $('.scroll-up').fadeIn();
167        } else {
168            $('.scroll-up').fadeOut();
169        }
170    });
171
172    $('.scroll-up').click(function () {
173        $("html, body").animate({
174            scrollTop: 0
175        }, 600);
176        return false;
177    });
178
179
180    // function to check is user is on touch device
181    if (!VolcannoFunctions.isTouchDevice()) {
182
183        // ANIMATED CONTENT
184        if ($(".animated")[0]) {
185            jQuery('.animated').css('opacity', '0');
186        }
187
188        var currentRow = -1;
189        var counter = 1;
190
191        if (VolcannoConfig.cmaActive == '1') {
192            $('.triggerAnimation').waypoint(function () {
193                var $this = $(this);
194                var rowIndex = $('.row').index($(this).closest('.row'));
195                if (rowIndex !== currentRow) {
196                    currentRow = rowIndex;
197                    $('.row').eq(rowIndex).find('.triggerAnimation').each(function (i, val) {
198                        var element = $(this);
199                        setTimeout(function () {
200                            var animation = element.attr('data-animate');
201                            element.css('opacity', '1');
202                            element.addClass("animated " + animation);
203                        }, (i * 250));
204                    });
205
206                }
207
208                //counter++;
209
210            },
211                    {
212                        offset: '80%',
213                        triggerOnce: true
214                    }
215            );
216
217            $('.post-timeline-item').waypoint(function () {
218                var timeline_animation = $(this).attr('data-animate');
219                $(this).css('opacity', '');
220                $(this).addClass("animated " + timeline_animation);
221            },
222                    {
223                        offset: '80%',
224                        triggerOnce: true
225                    }
226            );
227        }
228
229    }
230
231    // Static footer - when there isn't enough text on page
232    VolcannoFunctions.setStaticFooter();
233
234});
235
236// retina test
237(function () {
238    var cookieName = VolcannoConfig.themeName + '_device_pixel_ratio';
239
240    VolcannoFunctions.retinaTest(cookieName);
241})();

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.