JSFiddle - React, Tailwind, and code Playground
by apoucoz
JavaScript
function getCookie(name) {
var matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
if(!getCookie('aposess')) {
document.cookie = 'aposess=1';
location.replace('ПУТЬ_ДО_НУЖНОЙ_СТРАНИЦЫ');
};