medeq-supply/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-top');
            if (windowpos >= 110) {
                siteHeader.addClass('fixed-header');
                scrollLink.addClass('open');
            } else {
                siteHeader.removeClass('fixed-header');
                scrollLink.removeClass('open');
            }
        }
    }
function headerStyle ( ) { if ( $ ( '.main-header' ) . length ) { var windowpos = $ ( window ) . scrollTop ( ) ; var siteHeader = $ ( '.main-header' ) ; var scrollLink = $ ( '.scroll-top' ) ; if ( windowpos >= 110 ) { siteHeader . addClass ( 'fixed-header' ) ; scrollLink . addClass ( 'open' ) ; } else { siteHeader . removeClass ( 'fixed-header' ) ; scrollLink . removeClass ( 'open' ) ; } } }
Update Header Style and Scroll to Top
Update Header Style and Scroll to Top