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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -