bootstrap-cookie-consent-settings demo page

This is a modal dialog (cookie banner) and framework to handle the German and EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies in a website. This banner requires Bootstrap.

Usage

Construct

Initialize the cookie consent framework with the constructor

var cookieSettings = new BootstrapCookieConsent()

Show the Dialog

On a new visit the dialog is shown automatically. For reconfiguration show the Dialog again with cookieSettings.showDialog().

Cookie Settings

Read the settings

Read all cookie settings with cookieSettings.getSettings()


        

Read a specific cookie setting with cookieSettings.getSettings('statistics')


        

The code of this banner

var cookieSettings = new BootstrapCookieConsentSettings({
    contentURL: "../cookie-consent-content",
    privacyPolicyUrl: "privacy-policy.html",
    legalNoticeUrl: "legal-notice.html",
    postSelectionCallback: function () {
        location.reload() // reload after selection
    }
})

More documentation

Find more documentation and the sourcecode on GitHub