Created
August 14, 2012 17:34
-
-
Save hsquareweb/3351089 to your computer and use it in GitHub Desktop.
jQuery: Text Resizing Feature
This file contains hidden or 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
// text resizing feature | |
$(".text-size").on('click','a',function(){ | |
var $this = $(this), | |
$body = $("body").eq(0); | |
if($this.hasClass("small")){ | |
$body.addClass("small").removeClass("large normal"); | |
} | |
else if($this.hasClass("normal")){ | |
$body.addClass("normal").removeClass("large small"); | |
} | |
else if($this.hasClass("large")){ | |
$body.addClass("large").removeClass("small normal"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment