Created
August 16, 2016 18:38
-
-
Save andymasteroffish/1a72db2de1469628f3d4f1edd600e648 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var all = document.getElementsByTagName("*"); | |
for (var i=0, max=all.length; i < max; i++) { | |
console.log("doing "+i+" of "+all.length); | |
var rect = all[i].getBoundingClientRect(); | |
all[i].style.fontSize = (rect.top * 0.04)+"px"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment