// куки попап
jQuery(function($) {
const popupId = 'cookie-popup';
const storageKey = 'cookieConsentGiven';
const oneDay = 24 * 60 * 60 * 1000;
const lastConsent = localStorage.getItem(storageKey);
const now = Date.now();
if (!lastConsent || now - lastConsent > oneDay) {
const $popup = $(`
`);
$('body').append($popup);
$popup.find('.close-btn').on('click', function() {
localStorage.setItem(storageKey, Date.now());
$popup.remove();
});
}
});