AH、GH 增加 cookie 提醒

hotfix/paypal-note
LiaoYijun 3 years ago
parent d9688b8598
commit 739ba0b43b

@ -289,6 +289,22 @@
</div>
</div>
<div class="web_cookie" style='display: none;' 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.htm">privacy policy</a>.</p> <button class="cookie_button" id='gotItBtn'>Got It</button></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 = '';
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底部 结束-->
<!--@PRODUCT-JS@-->

@ -351,7 +351,22 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
</div>
</div>
<div class="web_cookie" style='display: none;' id='gotIdArea'><p>Global 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.htm">privacy policy</a>.</p> <button class="cookie_button" id='gotItBtn'>Got It</button></div>
<script>
var GOT_IT_KEY = '__global_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 = '';
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底部 结束-->
<!--@PRODUCT-JS@-->

Loading…
Cancel
Save