bootstrap-cookie-consent-settings demo page, blocking banner with reload after selection

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('analyses')


        

The code of this banner

var cookieSettings = new BootstrapCookieConsentSettings({
    contentURL: "../content",
    postSelectionCallback: function () {
        location.reload() // reload after selection
    }
})

More documentation

Find more documentation and the sourcecode on GitHub