You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
758 B
23 lines
758 B
$(document).ready(function(){
|
|
// Reset Font Size
|
|
var originalFontSize = $('body').css('font-size');
|
|
$(".reset_font").click(function(){
|
|
$('body').css('font-size', originalFontSize);
|
|
});
|
|
// Increase Font Size
|
|
$(".increase_font").click(function(){
|
|
var currentFontSize = $('body').css('font-size');
|
|
var currentFontSizeNum = parseFloat(currentFontSize, 10);
|
|
var newFontSize = currentFontSizeNum*1.2;
|
|
$('body').css('font-size', newFontSize);
|
|
return false;
|
|
});
|
|
// Decrease Font Size
|
|
$(".decrease_font").click(function(){
|
|
var currentFontSize = $('body').css('font-size');
|
|
var currentFontSizeNum = parseFloat(currentFontSize, 10);
|
|
var newFontSize = currentFontSizeNum*0.8;
|
|
$('body').css('font-size', newFontSize);
|
|
return false;
|
|
});
|
|
}); |