GDPR Cookie Law JavaScript GDPR Consent Plugin Example

GDPR Cookie Law – JavaScript GDPR Cookie Consent Plugin example – Theme: theme-light-1

For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Theme: theme-light-1
Example code
<link rel="stylesheet" href="">
<script src=""></script>
document.addEventListener('DOMContentLoaded', function () {
    var gdprCookieLaw = new GDPRCookieLaw({
        moreLinkHref: '',
        theme: 'theme-light-1'
Related options
Peoprty Possible Values Default Value Description
moreLinkHref URL e.g. '' null The href attribute of the 'More information' link.
theme e.g. null, 'theme-dark', 'theme-light', 'theme-1', 'theme-2', ... 'theme-10', 'theme-light-1', 'theme-light-2' ... 'theme-light-10', and 'theme-mixed-1', 'theme-mixed-2' ... 'theme-mixed-10', etc. null The theme of the pop-up. If you set a theme the following options do not apply: background color, background color opacity and the font color of the pop-up, the 'More information' link font color, background color and font color of the accept button (included the hover, focus and active states).