$(document).ready(function(){
var originalFontSize = $('html').css('font-size'); //初期のフォントサイズ
$(".resetFont").click(function(){ //.resetFontをクリックしたときに
$('html').css('font-size', originalFontSize); //フォントサイズを戻す
$('#pd_iframe').contents().find('html').css('font-size', originalFontSize);
});


$(".increaseFont").click(function(){ //.increaseFontをクリックしたとき
var currentFontSize = $('html').css('font-size'); //現在のフォントサイズ
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*1.2; //フォントサイズを1.2倍する
$('html').css('font-size', newFontSize); //大きくしたフォントサイズを適用
$('#pd_iframe').contents().find('html').css('font-size', newFontSize);
return false;
});


$(".decreaseFont").click(function(){ //.decreaseFontをクリックしたとき
var currentFontSize = $('html').css('font-size'); //現在のフォントサイズ
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*0.8; //フォントサイズを0.8倍する
$('html').css('font-size', newFontSize); //小さくしたフォントサイズを適用
$('#pd_iframe').contents().find('html').css('font-size', newFontSize);
return false;
});
});
