Health

coronavirus

x

By continuing to browse or by clicking “I Accept Cookies” you agree to the storing of first-party and third-party cookies on your device. By agreeing to the use of cookies on our site, you direct us to disclose your personal information to our third party service providers for the purposes for which we collect your information.

I Accept Cookies

5) { dd = 5; } //$(‘.powered-by’).append(dd); //$(‘.powered-by’).append(”+date_diff+’|’+rj_cookie_diff+’]]>’);

if (date_diff >= rj_cookie_diff) {
$(‘.accept-cookie’).show();
}
}

function check_cookie() {
$(‘.accept-cookie .field-btn’).bind(‘click’, accept_cookie);
$(‘.accept-cookie .x-btn’).bind(‘click’, x_btn_clicked);

var is_accept_cookie = getCookie(‘is_accept_cookie’);
if (is_accept_cookie != ‘1’ && is_accept_cookie != ‘0’) {
$(‘.accept-cookie’).show();
}
}

function x_btn_clicked() {
setCookie(‘is_accept_cookie’, ‘0’, 1); //1year = 365, 10 mins = 0.007
$(‘.accept-cookie’).hide();
}

function accept_cookie() {
setCookie(‘is_accept_cookie’, ‘1’, 365); //1year = 365, 10 mins = 0.007
$(‘.accept-cookie’).hide();
}
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = ‘expires=’+d.toUTCString();
document.cookie = cname + ‘=’ + cvalue + ‘;’ + expires + ‘;path=/’;
}
function getCookie(a) {
var b = document.cookie.match(‘(^|[^;]+)\s*’ + a + ‘\s*=\s*([^;]+)’);
return b ? b.pop() : ”;
}
});
})(jQuery);

Source