Cookies
Create, update, delete and read cookies.
cookieCreate
Creates a cookie. Requires name {string}, value {string}, and days {number}. Also used for updating and deleting cookies.
Update cookies
Cookies are updated the same way they are created.
Deleting cookies
Assign the days variable as a negative number.
cookieRead
Retreive values from a cookie.
cookieTest
Test for cookie support, replacing a class from your document HTML object, when found, with a new class.
The first variable is the default class {string}, that should be added to your HTML (theme.liquid). Defaults to `no-cookies`
theme.liquid
The second variable is the class {string} that will replace the initial value. Defaults to `cookies`
When cookies are supported by the user's browser, the class applied to the HTML object will changed:
Last updated