Created
April 4, 2020 19:55
-
-
Save louisameline/d5ae03b07db8185051346b8da55a2704 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"> | |
<script> | |
setInterval( | |
function() { | |
// this value will not be correct until you rotate your screen to landscape and back to portrait | |
document.write("window.height === " + window.innerHeight + "<br />") | |
}, | |
3000 | |
) | |
</script> | |
</head> | |
<body></body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment