Last active
November 15, 2016 21:19
-
-
Save kgashok/dbba0ca01ac4d79244e5114df068bce1 to your computer and use it in GitHub Desktop.
Toggling fonts in the Stack visualizer in Java Tutor
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
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