https://github.com/schalkt/cookie-warn
Simple EU Cookie Law warning
https://github.com/schalkt/cookie-warn
cookie europe gdpr javascript law warning
Last synced: 11 months ago
JSON representation
Simple EU Cookie Law warning
- Host: GitHub
- URL: https://github.com/schalkt/cookie-warn
- Owner: schalkt
- License: mit
- Created: 2016-04-04T20:42:20.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-06-18T21:48:54.000Z (about 1 year ago)
- Last Synced: 2025-06-29T15:02:15.667Z (12 months ago)
- Topics: cookie, europe, gdpr, javascript, law, warning
- Language: JavaScript
- Homepage: https://projects.schalk.hu/cookie-warn/demo/index.html
- Size: 3.68 MB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cookie Warn
EU Cookie Law warning message
[](https://www.npmjs.com/package/cookie-warn)
[](https://github.com/schalkt/cookie-warn/issues)
[](https://www.npmjs.com/package/cookie-warn)
[](https://sonarcloud.io/dashboard?id=schalkt_cookie-warn)
[](https://sonarcloud.io/dashboard?id=schalkt_cookie-warn)
[](https://sonarcloud.io/dashboard?id=schalkt_cookie-warn)
[](https://sonarcloud.io/dashboard?id=schalkt_cookie-warn)
## Preview
[](https://projects.schalk.hu/cookie-warn/demo/)
## Features
- jQuery not required
- multilanguage support
- customizable style
- responsive
- Bootstrap detect
- adjustable delay and expire days
- callback
## Examples
### Example 1
- without parameters
```html
```
### Example 2
- all parameters
- texts and links by html lang attribute
```html
const cookieWarnCallback = function(accepted) {
if (accepted) {
// do something...
} else {
// do nothing...
}
};
```
### Example 3
- with default parameters
- texts and links by html lang attribute
```html
```
## Todo
- accept cookies by types (necessary, all, custom)