From 52a36a693e1e12de52e7f8804c5d05648a0f79a4 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 15 Jul 2022 14:54:14 +0800 Subject: [PATCH] =?UTF-8?q?GH=20=E4=BF=AE=E6=94=B9=20Cookie=20=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 10 +++------- application/views/mobile_first/gh.php | 11 +++++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 561e3864..400a488c 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -372,13 +372,9 @@ height="0" width="0" style="display:none;visibility:hidden"> console.info('If you continue browsing, you agree to the use of cookies.'); } else { document.getElementById('gotIdArea').style.display = ''; - var gotItBtn = document.getElementById('gotItBtn'); - gotItBtn.addEventListener('click', function (evt) { - if (window.localStorage) { - localStorage.setItem(GOT_IT_KEY, '1'); - } - document.getElementById('gotIdArea').style.display = 'none'; - }); + if (window.localStorage) { + localStorage.setItem(GOT_IT_KEY, '1'); + } } diff --git a/application/views/mobile_first/gh.php b/application/views/mobile_first/gh.php index 10d2baa8..2f28a7e3 100644 --- a/application/views/mobile_first/gh.php +++ b/application/views/mobile_first/gh.php @@ -317,6 +317,17 @@ aria-label="festival"> +