responsive design - Call jquery method on desktop -


i have following jquery call on website , actioned if visitor using desktop device (screen size on 767px). how can achieved?

script

<script>$("#sidebar").stick_in_parent();</script> 

you can check window width, keep in mind, there handhelds on 767px width. not "desktop check".

if( $(window).width() >= 767 )     $("#sidebar").stick_in_parent(); 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -