PageSourceSearch

https://lakerlutznews.com/wp-content/plugins/topbar-for-genesis/assets/scripts/front.js?x97905&ver=2.3.2

js lakerlutznews.com collected 2026-10-02 06:43:06 UTC 4,815 bytes, 126 lines download raw bytes

1/**
2 *
3 * @package Sticky Genesis Topbar Pro
4 * @author RainaStudio
5 * @version 2.3.6
6 */
7
8(function( $ ) {
9    
10    $(document).ready(function() {
11        // check cookie
12        var visited = $.cookie("visited")
13
14        if (visited == null) {
15            $('.topbar_container').show();      
16        }
17
18        // set cookie
19        $.cookie('visited', 'yes', { expires: 1, path: '/' });
20        if( visited == "yes" ) {
21            $('.topbar_container').show();
22        }
23    });
24    var dem = $(".site-inner").css('margin-top'),
25            elm = $(".topbar_container"),
26            footelm = $(".site-footer"),
27            theight = $(".topbar").outerHeight();
28    if($(".site-header").css('position') == 'fixed') {
29        $(".site-inner").css('margin-top', '+='+theight);
30    };
31    // Dynamically Height and Margin Change
32    function topbarHeight() {
33        $(".topbar_container + .site-header").css("margin-top", theight );
34        if(footelm.next(elm).length) {
35            $(".site-footer").css("margin-bottom", theight );
36            $(".site-inner").css('margin-top', dem);
37        };
38        
39    };
40    if($("#on_off").length > 0 ){
41        topbarHeight();
42        $(window).resize(function() {
43            if ( $( ".topbar" ).length > 0 ) {
44                topbarHeight();
45            }
46        });
47    } else {
48        $(".topbar").css('position', 'relative');
49        $(".topbar_container + .site-header").css("margin-top", theight );
50        $(window).scroll(function() {
51            if ($(this).scrollTop() >= theight) {
52                $( ".topbar_container + .site-header" ).css('margin-top', '0px');
53            } else if($(this).scrollTop() < theight) {
54                $( ".topbar_container + .site-header" ).css('margin-top', theight);
55            } 
56        });
57        //$(".site-inner").css('margin-top', dem);
58    };
59    if($('.topbar').hasClass('set_bottom') && $("#on_off").length > 0){
60        $(".topbar").css({'position': 'fixed', 'bottom': '0'});
61    };
62    // Close Topbar
63    $( "#on_off" ).click(function() {
64        $( ".topbar" ).fadeOut( "slow", function() {
65          // Animation complete.
66        });
67        $( ".topbar_container + .site-header" ).animate({ marginTop: '0px' }, 1000);
68        $(".site-inner").animate({ marginTop: dem }, 1000);
69        $( ".site-footer" ).animate({ marginBottom: '0px' }, 1000);
70        Cookies.set('hidetopbar', '1', { expires: 1, path: '/', secure: true });
71        $.cookie("visited", null, { path: '/' });
72    });
73    // Perform cookie
74    $(function () {
75        if ( Cookies.set('hidetopbar') ) {
76            $('.topbar').css({"position":"absolute", "left":"-9999px","opacity":"0","visibility":"hidden"});
77            $( ".topbar_container + .site-header" ).css("margin-top", "0px");
78            $(".site-inner").css('margin-top', dem);
79            $( ".site-footer" ).css("margin-bottom", "0px");
80        }
81    });
82    // Remove extra margin top of site header
83    $(function() {
84        if( $(".topbar").length == 0 ){
85            $(".site-header").css("margin-top", "0");
86        }
87    });
88
89    // Countdown
90    $(function(){
91        var printdate = $(".stick_cdate").text();
92        var countDownDate = new Date( printdate ).getTime();
93
94        // Update the count down every 1 second
95        var x = setInterval(function() {
96
97        // Get today's date and time
98        var now = new Date().getTime();
99            
100        // Find the distance between now and the count down date
101        var distance = countDownDate - now;
102            
103        // Time calculations for days, hours, minutes and seconds
104        var days = Math.floor(distance / (1000 * 60 * 60 * 24));
105        var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
106        var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
107        var seconds = Math.floor((distance % (1000 * 60)) / 1000);
108            
109        // Output the result in an element with id="DateCountdown"
110        $("#DateCountdown .pr .days").text( days );
111        $("#DateCountdown .pr .hrs").text( hours );
112        $("#DateCountdown .pr .min").text( minutes );
113        $("#DateCountdown .pr .sec").text( seconds );
114        
115        /*= "<div class='pr days'><span class='days'>" + days + "</span><small>Days</small></div><div class='pr hrs'><span class='hrs'>"+ hours +"</span><small>Hours</small></div><div class='pr min'><span class='min'>"+ minutes +"</span><small>Minutes</small></div><div class='pr sec'><span class='sec'>"+ seconds +"</span><small>Seconds</small></div>";*/
116            
117        // If the count down is over, write some text 
118        if (distance < 0) {
119            clearInterval(x);
120            document.getElementById("DateCountdown").innerHTML = "EXPIRED";
121        }
122        }, 1000);
123    });
124    
125    
126})( jQuery );

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.