Created
February 19, 2014 15:31
-
-
Save leaysgur/9094362 to your computer and use it in GitHub Desktop.
Adjust display size by style zoom to html elm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(global) { | |
var doc = global.document; | |
var deviceRatio = global.innerWidth / 320; | |
doc.documentElement.style.zoom = deviceRatio; | |
}(this.self || global)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment