diff --git a/head.php b/head.php index f76172255..54f33a20f 100644 --- a/head.php +++ b/head.php @@ -163,4 +163,5 @@ if ($config['cf_include_head']) {
+
\ No newline at end of file diff --git a/js/common.js b/js/common.js index 25d3c0c06..ba517b69d 100644 --- a/js/common.js +++ b/js/common.js @@ -530,6 +530,10 @@ function font_resize(id, act) if(isNaN(count)) count = 0; + // 크롬의 최소 폰트사이즈 버그로 작게는 한단계만 가능 + if(count == -1) + return; + $elements.each(function() { if($(this).hasClass("no_text_resize")) return true; @@ -567,12 +571,39 @@ function font_resize(id, act) } +/** + * 텍스트 기본사이즈 +**/ +function font_default(id) +{ + var act; + var count = parseInt(get_cookie("ck_font_resize_count")); + if(isNaN(count)) + count = 0; + + // font resize 카운트 초기화 + set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain); + + if(count > 0) + act = "decrease"; + else + act = "increase"; + + for(i=0; i