public/taxi-park/scripts_theme.js
/* Navbar is set darker on main page on scroll */
Navbar is set darker on main page on scroll
Navbar is set darker on main page on scroll
function checkNavbar() {
	var scroll = jQuery(window).scrollTop(),
    	navBar = jQuery('nav.navbar'),
    	topBar = jQuery('.top-bar'),
	    slideDiv = jQuery('.slider-full');
	if (topBar.length) {
		jQuery('.navbar-affix').affix({
		      offset: {
		        top: topBar.height(),
		      }
		});
	}
    if (scroll > 1) navBar.addClass('dark'); else navBar.removeClass('dark');
}
function checkNavbar ( ) { var scroll = jQuery ( window ) . scrollTop ( ) , navBar = jQuery ( 'nav.navbar' ) , topBar = jQuery ( '.top-bar' ) , slideDiv = jQuery ( '.slider-full' ) ; if ( topBar . length ) { jQuery ( '.navbar-affix' ) . affix ( { offset : { top : topBar . height ( ) , } } ) ; } if ( scroll > 1 ) navBar . addClass ( 'dark' ) ; else navBar . removeClass ( 'dark' ) ; }
Navbar is set darker on main page on scroll
Navbar is set darker on main page on scroll