GDPR Cookie Law – GDPR Cookie Compliance Plugin example – Delay: 1000 milliseconds
For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Delay: 1000 milliseconds
Example code
<link rel="stylesheet" href="http://your-domain.com/gdpr-cookie-law/css/gdpr-cookie-law.min.css">
<script src="http://your-domain.com/gdpr-cookie-law/js/jquery-3.3.1.min.js"></script>
<script src="http://your-domain.com/gdpr-cookie-law/js/gdpr-cookie-law.min.js"></script>
<script>
$(document).ready(function () {
$(document).gdprCookieLaw({
moreLinkHref: 'http://your-domain.com/privacy-policy',
delay: 1000
});
});
</script>
Related options
Peoprty | Possible Values | Default Value | Description |
---|---|---|---|
moreLinkHref | URL e.g. 'http://your-domain.com/privacy-policy' | null | The href attribute of the 'More information' link. |
delay | e.g. null, 500, 1000, etc. | null | The box appears after the specified time (milliseconds). |