title: Switch from mobile to desktop website?
body: <p>I've a simple JavaScript that check the current screen size in the homepage and decide either to serve user with the current desktop view or redirect to mobile site:</p>
  
  <pre><code>if($(this).width() &lt;= 1024){
    window.location.href = 'http://www.m.website.com';
  }
  </code></pre>
  
  <p>However my mobile site has an option that allow user to switch to desktop view if there are not fond of the mobile site, but how should I do that since the Javascript in my homepage will block any screen that's smaller than 1024?</p>
  
  <p>Thanks for the heads up.</p>