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.
Initialize the cookie consent framework with the constructor
var cookieSettings = new BootstrapCookieConsent()
On a new visit the dialog is shown automatically. For reconfiguration
show the Dialog again with cookieSettings.showDialog()
.
Read all cookie settings with cookieSettings.getSettings()
Read a specific cookie setting with cookieSettings.getSettings('statistics')
var cookieSettings = new BootstrapCookieConsentSettings({
contentURL: "../cookie-consent-content",
privacyPolicyUrl: "privacy-policy.html",
legalNoticeUrl: "legal-notice.html",
alsoUseLocalStorage: true, // if true, the settings are stored in localStorage, too
postSelectionCallback: function () {
location.reload() // reload after selection
}
})