/doria

🍪The cookie box loved by cookies' fanatics

Primary LanguageJavaScriptMIT LicenseMIT

Doria

Build Status codecov

🍪 The cookie box loved by cookies' fanatics

Build

git clone https://github.com/lotrekagency/doria
yarn install
yarn build

And you have in lib folder, compiled Doria Lib

Usage

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

Development

To run test suite

yarn test

See demo on index.html