title: Scale website to mobile devices
body: <p>I have a web app where responsive layout is not an option for mobile devices, so I tried playing with the viewport scaling a bit but had no success in doing so.</p>
  
  <p>Page size is 1280x720 so on small screens it should be zoom out and on larger ones zoomed in:</p>
  
  <pre><code>var scale = $(window).width() / 1280;
  
  $('head').append('&lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=' + scale + ', maximum-scale=' + scale + ', user-scalable=0"&gt;');
  </code></pre>
  
  <p>I've only tried this for width but the result is not the desired one, am I doing something wrong?</p>