🍪 The cookie box loved by cookies' fanatics
git clone https://github.com/lotrekagency/doria
yarn install
yarn build
And you have in lib
folder, compiled Doria Lib
let doria = new DoriaCookieBox();
doria.addCookieSettings('default', 'Default', 'Accept default cookies', true);
doria.addCookieSettings('marketing', 'Marketing', 'Accept Marketing cookies');
doria.on('default', () => {
// Execute your script
})
doria.on('marketing', () => {
// Execute your script
})
doria.bake()
To run test suite
yarn test
See demo on index.html