Skip to content

Instantly share code, notes, and snippets.

@louisameline
Created April 4, 2020 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisameline/d5ae03b07db8185051346b8da55a2704 to your computer and use it in GitHub Desktop.
Save louisameline/d5ae03b07db8185051346b8da55a2704 to your computer and use it in GitHub Desktop.
<!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