jquery - Execute code if not a touch screen and also width is 960px or over -
these 2 conditionals work fine:
if ( jquery(window).width() > 959 ) { // if browser window 960px or more } if (!modernizr.touch) { // if not touch screen }
i need execute code if device not touch screen, , on 960px wide. reason isnt working:
if ( (!modernizr.touch) && (jquery(window).width() > 959) { }
you're missing closing parenthesis here:
// here------↓ if( (!modernizr.touch) && (jquery(window).width() > 959) ) { }
Comments
Post a Comment