if-cookie-exists
Syntax
if-cookie-exists: (cookie name);
This conditional action will return true if the specified cookie exists.
Syntax
if-cookie-exists: (cookie name);
This conditional action will return true if the specified cookie exists.
body:not-if-cookie-exists(cookieNoticeSeen):init {
.cookieNotice {
display: block;
opacity: 1 after 100ms;
}
}
.cookieNoticeOk:click {
.cookieNotice {
opacity: 0;
display: none after 500ms;
set-cookie: name(cookieNoticeSeen) value("y") expires("Year") path("/") sameSite("Strict") secureIfHttps;
}
}