title: jQuery - Get Screen Size Width
body: <p>Trying to grab the screen size and add an if / else query, but for some reason I can't get it to work</p>
  
  <p>What I'm looking for is if the screen width is larger / equal 480px, the following should be outputted:</p>
  
  <pre><code>{$pPage = $cWidth}
  </code></pre>
  
  <p>Else this:</p>
  
  <pre><code>{$pPage = 1}
  </code></pre>
  
  <p>This is what I have so far:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (function($) {
      $(document).ready(function() {    
          {$pPage = $cWidth}    
  })(jQuery);
  &lt;/script&gt;
  </code></pre>
  
  <p>Anybody out there with advice how to add the the query in reference to the screen.width, so that it also works?</p>