Update header

Updates header to remove hamburger on desktop, set 100px margin, and
adds 100px margin to body.
This commit is contained in:
Eric Baum
2016-12-09 23:03:48 +00:00
parent 4477df5242
commit 08a199d6d1
5 changed files with 128 additions and 4 deletions
+18
View File
@@ -503,3 +503,21 @@ var pushmenu = (function(){
show: show
};
})();
$(function() {
// Make global nav be active based on pathname
if ((location.pathname.split("/")[1]) !== ""){
$('.global-nav li a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
}
// If vendor strip doesn't exist add className
if ( !$('#vendorStrip').length > 0 ) {
$('#hero').addClass('bot-bar');
}
// If is not homepage add class to hero section
if (!$('#home').length > 0 ) {
$('#hero').addClass('no-sub');
}
});