Skip to content

Instantly share code, notes, and snippets.

@kgashok
Last active November 15, 2016 21:19
Show Gist options
  • Select an option

  • Save kgashok/dbba0ca01ac4d79244e5114df068bce1 to your computer and use it in GitHub Desktop.

Select an option

Save kgashok/dbba0ca01ac4d79244e5114df068bce1 to your computer and use it in GitHub Desktop.
Toggling fonts in the Stack visualizer in Java Tutor
var elems = [".heapRow", ".highlightedStackFrame"];
fontSize = parseInt($(elems[0]).css('font-size'));
console.log(elems[0], fontSize);
if (fontSize <= 13) {
elems.map(elem=>$(elem).css("font-size", 30 + "px"));
} else {
elems.map(elem=>$(elem).css("font-size", 10 + "px"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment