title: disable this jQuery script for mobile devices with user agent?
body: <p>I would like to disable part of my jQuery script for mobile devices, I came across this statement(Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test) but i have no clue of how to use it to disable part of my script for mobile devices, heres the code I'd like to disable, i want to remove the addClass FROM mobile devices, is for a navigation. im a noobie please help:</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt; 
  
  $(window).scroll(function() {
  if ($(window).scrollTop() &gt;= 40) 
          { $('#container-wrapper-ab').addClass('container-wrapper-ab-fixed'); 
          } 
          else { $('#container-wrapper-ab').removeClass('container-wrapper-ab-fixed'); 
         } 
  
  
  }); 
  </code></pre>
  
  <h2></h2>