Last active
November 5, 2016 21:01
-
-
Save kgashok/a4ff33d387dcc0964218463b714590c3 to your computer and use it in GitHub Desktop.
JS code for PythonTutor bookmarklet
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 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