I have a jQuery code that I want to run only when the resolution is greater than 950px. If not, I risk losing the responsive logo. My goal is to create a navigation bar similar to the one on the Lenovo homepage.
$(document).ready(function(){
//left side menu functions End
//Logo function
$(document).scroll(function() {
if ($(document).scrollTop() < 25) {
$("div.logo").height(200);
$('div.logo a').css('background-image', 'url(img/logo-clear.png)');
} else {
$("div.logo").height(50);
$('div.logo a').css('background-image', 'url(img/logo-sm.png)');
}
});
});