Skip to content

Instantly share code, notes, and snippets.

@wir
Forked from brandonrunyon/resize.js
Created October 23, 2020 12:03
Show Gist options
  • Save wir/b088de2a664ee1d2cedcda5a76584f09 to your computer and use it in GitHub Desktop.
Save wir/b088de2a664ee1d2cedcda5a76584f09 to your computer and use it in GitHub Desktop.
accessibility feature: enlarge text
function resize(ele, size, classname){
var elem = document.getElementsByTagName(ele);
for (var i=0; i<elem.length; i++)
{
if (elem[i].className==classname) {
elem[i].style.fontSize=size;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment