Created
February 24, 2016 15:23
-
-
Save paxti/6737876115aa74c05c12 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
<script> | |
function resize(id){ | |
var width1 = (window.innerWidth > 0) ? window.innerWidth : screen.width; | |
var height1 = (window.innerHeight > 0) ? window.innerHeight : screen.height; | |
var height1 = height1 * 0.8; | |
document.getElementById(id).height = height1; | |
document.getElementById(id).width = width1; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment