Hello! I'm having a small problem with bugs on a site I'm putting together, where when you open the interface, a JQuery
function that was made to replace the navbar logo with a larger one is not being applied. Only when you scroll down and return to the top of the interface does it take effect.
Image of the interface start:
Imageofhowitshouldlook:
JQuery function:
if ($(window).width() > 1024) {
$(window).on('scroll', function(){
if($(window).scrollTop()){
$('.logoresponsive').hide();
$('#logo1').show();
}else{
$('#logo1').hide();
$('.logoresponsive').show();
}
});
}
Where: .logoresponsive is the major logo and # logo1 is the default navbar logo, which should disappear when the site opens at the top of the home screen.