public/peddyhub/js/script.js
//Update Header Style and Scroll to Top
Update Header Style and Scroll to Top
Update Header Style and Scroll to Top
function headerStyle() {
        if ($('.main-header').length) {
            var windowpos = $(window).scrollTop();
            var siteHeader = $('.main-header');
            var scrollLink = $('.scroll-to-top');
            if (windowpos >= 250) {
                siteHeader.addClass('fixed-header');
                scrollLink.fadeIn(300);
            } else {
                siteHeader.removeClass('fixed-header');
                scrollLink.fadeOut(300);
            }
        }
    }
function headerStyle ( ) { if ( $ ( '.main-header' ) . length ) { var windowpos = $ ( window ) . scrollTop ( ) ; var siteHeader = $ ( '.main-header' ) ; var scrollLink = $ ( '.scroll-to-top' ) ; if ( windowpos >= 250 ) { siteHeader . addClass ( 'fixed-header' ) ; scrollLink . fadeIn ( 300 ) ; } else { siteHeader . removeClass ( 'fixed-header' ) ; scrollLink . fadeOut ( 300 ) ; } } }
Update Header Style and Scroll to Top
Update Header Style and Scroll to Top