/* buys.hk/ajax/server-upgrade *//* cookie-220111.php *//* en *//* 220111 */if(typeof $ != "undefined"){ $(document).ready(function(){ $('head').append($(document.createElement('style')).html('.cookie-disclaimer-box { /* position: fixed; */ bottom: 0; left: 0; width: 100%; box-sizing: border-box; background-color: #e0e0e0; line-height: normal; z-index: 100; } .cookie-disclaimer-box .disclaimer-table { padding: 5px 0 10px 0; margin: 0 auto; border-collapse: separate; } .cookie-disclaimer-box td { padding: 0 5px; font-family: arial, sans-serif; color: #333333; font-size: 12px; text-align: left; line-height: 12px; } .cookie-disclaimer-box .button { white-space: nowrap; background: #ffffff; padding: 5px 15px; border-radius: 2px; border: 1px solid #bbbbbb; font-family: arial, sans-serif; color: #333333; display: inline-block; cursor: pointer; text-decoration: none; margin: 2px; } .cookie-disclaimer-box .button:hover { text-decoration: none; } .cookie-disclaimer-box .td-1 { padding-right: 0; } .cookie-disclaimer-box .td-2 { text-align: left; } @media (max-width: 768px){ .cookie-disclaimer-box .td-2 { display: block; } } @media (max-width: 480px){ .cookie-disclaimer-box .td-1 { display: block; padding-right: 10px; } .cookie-disclaimer-box .td-1 table { margin-left: auto; margin-right: auto; } .cookie-disclaimer-box .td-2 { display: table-cell; padding-top: 0; } }')); }); }if(typeof $ != "undefined"){ function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i
We use tools, such as cookies, to enable services & functionality for you and collect data on how you interact with our website. By clicking OK, you agree to our use of such cookies. You can find more information on how to change your browser settings in our Privacy Policy.
Learn More OK
'); $('.cookie-disclaimer-box').css(cookie_css_change); setTimeout(function(){ if(typeof resizefunction == 'function'){ resizefunction(); } if(typeof wrapperResize == 'function'){ wrapperResize(); } }, 400); $('.cookie-ok').click(function(event){ event.preventDefault(); if(!$(this).hasClass('clicked')){ $(this).addClass('clicked'); //$('.cookie-disclaimer-box').slideToggle(400, function(){ cookie_box_resize(1); }); cookie_box_resize(1); var cookie_expire = new Date(); cookie_expire.setTime(parseInt('1762279369')*1000); document.cookie = "cookie_buys_hk_ajax_server_upgrade=1; expires="+cookie_expire.toUTCString()+"; path=/; domain=buys.hk; secure;"; } setTimeout(function(){ if(typeof resizefunction == 'function'){ resizefunction(); } if(typeof wrapperResize == 'function'){ wrapperResize(); } }, 400); }); $('.cookie-disclaimer-box .button').attr({ 'target': '_blank' }); if($('.cookie-disclaimer-box .cdb-pp-btn').length && $('.cookie-disclaimer-box .cdb-pp-btn').attr('data-href')){ if($('meta[name="site_url"]').length && $('meta[name="lingual_url"]').length){ let temp_href = $('.cookie-disclaimer-box .cdb-pp-btn').attr('data-href'); temp_href = temp_href.replace('{site_url}', $('meta[name="site_url"]').attr('content')); temp_href = temp_href.replace('{lingual_url}', $('meta[name="lingual_url"]').attr('content')); $('.cookie-disclaimer-box .cdb-pp-btn').attr('href', temp_href); } $('.cookie-disclaimer-box .cdb-pp-btn').removeAttr('data-href'); } setTimeout(function(){ cookie_box_resize() }, 400); $(window).resize(function(){ cookie_box_resize(); }); }); }