Skip to content

Instantly share code, notes, and snippets.

@girvan girvan/gist:5715525
Last active Dec 18, 2015

What would you like to do?
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1" />
<meta name="viewport" id="viewport" />
(function(s, o){
var p = (o == 0),
w = p ? 768 : 1024,
c = p ? 320/w : 480/w;
document.getElementById('viewport').setAttribute('content', 'width=' + w + ',initial-scale=' + c);
})(screen, window.orientation);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.