Skip to content

Instantly share code, notes, and snippets.

@kgashok
Last active November 5, 2016 21:01
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 kgashok/a4ff33d387dcc0964218463b714590c3 to your computer and use it in GitHub Desktop.
Save kgashok/a4ff33d387dcc0964218463b714590c3 to your computer and use it in GitHub Desktop.
JS code for PythonTutor bookmarklet
var toggle_count = 0;
var toggleFont = function($) {
var fontSize = parseInt($('.cdataElt').css('font-size'));
console.log(fontSize);
if (fontSize <= 10) {
$(".cdataElt").css("font-size", 30 + "px");
} else {
$(".cdataElt").css("font-size", 10 + "px");
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment