function collapseNavbar() {
    if ($(".navbar").offset().top > 50) {
        $(".navbar-fixed-top").addClass("top-nav-collapse");
        $("#navLogo").attr("src","img/logo_v.png");
        $("#navLogo").attr("height","30");
        $(".navbar-nav a").css("color","#000");
        $(".fone-bottom").hide();
        $(".fone-top").show();
    } else {
        $(".navbar-fixed-top").removeClass("top-nav-collapse");
        $("#navLogo").attr("src","img/logo_amarelo.png");
        $("#navLogo").attr("height","74");
        $(".fone-bottom").show();
        $(".fone-top").hide();

        if (window.innerWidth > 768){
            $(".navbar-nav a").css("color","#f8f012");    
            $(".fone-top").hide();
        }else{
            $(".fone-top").show();
        }

        
    }
}
// jQuery to collapse the navbar on scroll
jQuery to collapse the navbar on scroll
jQuery to collapse the navbar on scroll
function collapseNavbar() {
    if ($(".navbar").offset().top > 50) {
        $(".navbar-fixed-top").addClass("top-nav-collapse");
        $("#navLogo").attr("src","img/logo_v.png");
        $("#navLogo").attr("height","30");
        $(".navbar-nav a").css("color","#000");
        $(".fone-bottom").hide();
        $(".fone-top").show();
    } else {
        $(".navbar-fixed-top").removeClass("top-nav-collapse");
        $("#navLogo").attr("src","img/logo_amarelo.png");
        $("#navLogo").attr("height","74");
        $(".fone-bottom").show();
        $(".fone-top").hide();
        if (window.innerWidth > 768){
            $(".navbar-nav a").css("color","#f8f012");    
            $(".fone-top").hide();
        }else{
            $(".fone-top").show();
        }
    }
}
function collapseNavbar ( ) { if ( $ ( ".navbar" ) . offset ( ) . top > 50 ) { $ ( ".navbar-fixed-top" ) . addClass ( "top-nav-collapse" ) ; $ ( "#navLogo" ) . attr ( "src" , "img/logo_v.png" ) ; $ ( "#navLogo" ) . attr ( "height" , "30" ) ; $ ( ".navbar-nav a" ) . css ( "color" , "#000" ) ; $ ( ".fone-bottom" ) . hide ( ) ; $ ( ".fone-top" ) . show ( ) ; } else { $ ( ".navbar-fixed-top" ) . removeClass ( "top-nav-collapse" ) ; $ ( "#navLogo" ) . attr ( "src" , "img/logo_amarelo.png" ) ; $ ( "#navLogo" ) . attr ( "height" , "74" ) ; $ ( ".fone-bottom" ) . show ( ) ; $ ( ".fone-top" ) . hide ( ) ; if ( window . innerWidth > 768 ) { $ ( ".navbar-nav a" ) . css ( "color" , "#f8f012" ) ; $ ( ".fone-top" ) . hide ( ) ; } else { $ ( ".fone-top" ) . show ( ) ; } } }
jQuery to collapse the navbar on scroll
jQuery to collapse the navbar on scroll