From 5b709a9ccba9aaca0ee3f551615f6d234cdeeb2a Mon Sep 17 00:00:00 2001 From: Hyunchul Kim Date: Mon, 25 Jan 2021 17:04:32 +0900 Subject: [PATCH] ... --- test_data/about.html | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test_data/about.html b/test_data/about.html index 297eb60..69197a1 100644 --- a/test_data/about.html +++ b/test_data/about.html @@ -144,9 +144,6 @@ var cookie_value = escape(value) + ((days == null)? '':'; expires=' + exdate.toUTCString()); document.cookie = cookie_name + '=' + cookie_value; - // 설정 일수만큼 - console.log("done") - console.log(document.cookie) } function deleteCookie (cookie_name) { @@ -169,17 +166,9 @@ } } - // setCookie('lang', 'en', 30); - console.log(getCookie('lang')); - - console.log(getCookie('hyunchul')); - - if (getCookie('lang') ==='en') { - // Hide korean contents showEnglish(); } else { - // Hide english contents showKorean(); } @@ -193,7 +182,7 @@ function showEnglish(){ document.querySelector(".en").style.display = 'none'; document.querySelector(".ko").style.display = ''; - setCookie('lang', 'en', 100); // save cookie for + setCookie('lang', 'en', 100); }