PageSourceSearch

https://www.divcibarskivajati.rs/wp-content/themes/phobs-wp-v1.1/js/custom/header.js?v=1790344080&ver=7.1.2

js divcibarskivajati.rs collected 2026-09-25 13:48:09 UTC 1,749 bytes, 48 lines download raw bytes

1$(document).ready(function () {
2    if (!$('.hero').length) {
3        // ********************
4        // IF HERO DONT EXIST ON PAGE
5        // ********************
6        $('.rank-math-breadcrumb').addClass('under_header')
7        $('header').addClass('colored');
8        $(window).scroll(function () {
9            $(document).scrollTop() > 200 ?
10                (
11                    $('header').addClass('scrolled'),
12                    $('header').removeClass('colored'),
13                    $('.site-content').css('margin-top', 220)
14                ) :
15                (
16                    $('header').removeClass('scrolled'),
17                    $('header').addClass('colored'),
18                    $('.site-content').css('margin-top', 0)
19                );
20        })
21    } else {
22        // ********************
23        // IF HERO EXIST ON PAGE
24        // ********************
25        $('.rank-math-breadcrumb').addClass('under_hero')
26        const observer = new IntersectionObserver(function (entries) {
27            entries.forEach(entry => !entry.isIntersecting ?
28                $('header').addClass('scrolled') :
29                $('header').removeClass('scrolled'));
30        });
31        observer.observe(document.querySelector('.hero'))
32    }
33    $('.burger').click(function () {
34        $('header nav').hasClass("show") ?
35            (
36                $('html').css('overflow', 'auto'),
37                $('header nav').removeClass("show"),
38                $(this).removeClass("close")
39            ) :
40            (
41                $('html').css('overflow', 'hidden'),
42                $('header nav').addClass("show"),
43                $(this).addClass("close")
44            )
45
46    })
47})
48

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.