From 9fabacfb7dfb8ec4eee2e50e51817add9bed1fc1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 6 Mar 2013 17:55:39 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EC=A6=88=20=EC=A1=B0=EC=A0=88=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=EC=97=90=20=EC=9B=90=EB=9E=98=20=ED=81=AC=EA=B8=B0=EB=A1=9C=20?= =?UTF-8?q?=EB=8F=8C=EB=A6=AC=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.php | 1 + js/common.js | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) 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