$('body').addClass('ofh');
$('body').css({ 'padding-left': '15px' });
$(document).on('click', '#js_popup_close_btn', function () {
let type = this.dataset.type;
let val = this.dataset.val;
if (val != undefined && val != '') {
setCookie('_' + type, val, "1", '');
} else {
setCookie('_' + type, 'true', "1", '');
}
$(this).closest($('.welcome_login_popup_container')).fadeOut();
$('body').css({ 'padding-left': '0' });
if (!$('body').hasClass('no_scroll') && document.getElementById('js_non_verified_reminder_cont') == null && document.getElementById('js_gdpr_popup_cont') == null) {
$('body').removeClass('ofh');
}
});
$(document).on('click', '.js_after_24_hours', function () {
$('#js_popup_close_btn').trigger('click');
});
$(document).on('click', '.js_not_now', function () {
$(this).closest($('.welcome_login_popup_container')).fadeOut();
$('body').css({ 'padding-left': '0' });
if (!$('body').hasClass('no_scroll') && document.getElementById('js_non_verified_reminder_cont') == null && document.getElementById('js_gdpr_popup_cont') == null) {
$('body').removeClass('ofh');
}
});