Skip to content

Instantly share code, notes, and snippets.

@danielronnkvist
Created April 9, 2015 20:41
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 danielronnkvist/f0653b6ecb936de44dec to your computer and use it in GitHub Desktop.
Save danielronnkvist/f0653b6ecb936de44dec to your computer and use it in GitHub Desktop.
Make it fat
function makeFat(el){
el.style.fontWeight = "bold";
el.style.border = "10px solid";
if(typeof(el.childNodes) === "array"){
el.childNodes.forEach(function(elem){
makeFat(elem);
});
}
}
makeFat(document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment