I'm encountering some difficulties with the site. When viewing it on a mobile device or resizing the browser to phone size, if you scroll down and then back up, the logo appears oversized. I want it to remain small like it was at the beginning (refreshing the page helps):
Although I have CSS breakpoints in place, I am using JS for a specific reason. Here is the JavaScript code that I am using:
$(window).scroll(function () {
if ($(document).scrollTop() == 0) {
$('.logo').attr('src', '/birdie4baycrest/images/logobig3.jpg');
$('.logo').width(203);
$('.logo').height(293);
} else {
$('.logo').attr('src', '/birdie4baycrest/images/logobig.jpg');
$('.logo').width(108);
$('.logo').height(70);
}
});