AH 修改 Cookie 提示规则

hotfix/paypal-note
LiaoYijun 3 years ago
parent 4f5a3a0f11
commit 878fd9a896

@ -364,13 +364,9 @@
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';
});
}
</script>
<!--PC底部 结束-->

@ -307,6 +307,17 @@
© 2016-2022 Asia Highlights <br>— Discovery Your Way!
</div>
<div class="web_cookie" id='gotIdArea'><p>Asia Highlights uses cookies to give you the best possible service. If you continue browsing, you agree to the use of cookies. More details can be found in our <a href="/privacy">privacy policy</a>.</p> </div>
<script>
var GOT_IT_KEY = '__asia_highlights_you_agree_to_use_of_cookies__';
if (window.localStorage && localStorage.getItem(GOT_IT_KEY)) {
console.info('If you continue browsing, you agree to the use of cookies.');
} else {
document.getElementById('gotIdArea').style.display = '';
if (window.localStorage) {
localStorage.setItem(GOT_IT_KEY, '1');
}
}
</script>
</footer>
<!--移动底部 结束-->

Loading…
Cancel
Save