Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ We've built this package with flexibility in our mind: you'll be able to customi
4. [Checking for consent](#checking-for-consent)
- [Using the Cookies facade](#using-the-cookies-facade)
- [Using dependency injection](#using-dependency-injection)
- [Using javascript event](#using-javascript-event)
5. [Customization](#customization)
- [The views](#the-views)
- [Styling](#styling)
Expand Down Expand Up @@ -340,6 +341,12 @@ class FooController
}
```

### Using javascript event

Here are the different events dispatched:
- `fullyConsented`, which is dispatched after all cookies have been accepted;
- `essentialsConsented`, which is dispatched after only essential cookies have been accepted;

## Customization

Cookie notices are boring and this package's default design is no different. It has been built in a robust, accessible and neutral way so it could serve as many situations as possible.
Expand Down
2 changes: 1 addition & 1 deletion dist/cookies.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/script.js": "/script.js",
"/cookies.js": "/cookies.js",
"/modal.js": "/modal.js",
"/style.css": "/style.css"
}
1 change: 1 addition & 0 deletions dist/modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/script.js

This file was deleted.

Loading