Cookie Notice
Overview
The Style Kit includes a plugin for hiding a cookie notice for 30 days.
This plugin builds upon functionality provided by the alert plugin.
Using this plugin to target multiple elements (i.e. multiple cookie notices) is not supported.
Dependencies
This plugin depends upon:
See distribution for how to include these dependencies.
Uses
Add the data-bsk-role="cookie-notice"
data attribute to any alert
using the alert plugin.
It is recommended to use the cookie notice alert variant with this plugin.
When this alert is dismissed, a cookie is set on the client to expire after 30 days. On each page load, a check is made
for this cookie, if found the data-bsk-role="cookie-notice"
is removed from the DOM, hiding the alert.
The cookie is set at the sub-domain level (i.e. foo.example.com
is considered different to bar.example.com
).