Created
March 22, 2018 18:19
-
-
Save diego3g/26344d0798b5c22bfabc154dafe03ed3 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
function onResize(event) { | |
var node = document.createElement("p"); | |
var textnode = document.createTextNode(event.target.outerWidth + "x" + event.target.outerHeight); | |
node.appendChild(textnode); | |
document.getElementById('content').appendChild(node); | |
} | |
window.onresize = onResize; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment