Js issue: Sticky Nav won't work with Hamburger menu

Js issue: Sticky Nav won't work with Hamburger menu
0

#1

individually they work fine but when put together something is causing them not to work at the same time. I will only have one to function while the other one will not work at all, I need some help please!!!

$(document).ready(function(){
//hamburger portion
$(’.hamburger’).on(‘click’, function(){
$(’.mainNav’).toggle();
});

//stickyNav Portion
var navOffset = $(‘nav’).offset().top;

$(‘nav’).wrap(’

);
$(’.nav-placeholder’).height($(‘nav’).outerHeight());
$(window).scroll(function(){
var scrollPos = $(window).scrollTop();

if(scrollPos >= navOffset){
	$('nav').addClass('fixed');
}else{
	$('nav').removeClass('fixed');
}

});

});