https://github.com/bdbch/customelement-cookie-notice
Easy to implement cookie notice solution.
https://github.com/bdbch/customelement-cookie-notice
bar cookies elements notice ui webcomponent
Last synced: about 2 months ago
JSON representation
Easy to implement cookie notice solution.
- Host: GitHub
- URL: https://github.com/bdbch/customelement-cookie-notice
- Owner: bdbch
- Created: 2018-04-22T18:49:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T03:19:32.000Z (over 4 years ago)
- Last Synced: 2025-09-12T03:03:45.321Z (10 months ago)
- Topics: bar, cookies, elements, notice, ui, webcomponent
- Language: JavaScript
- Homepage: https://bdbch.github.io/customelement-cookie-notice/
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ``
> Easy to embed Youtube Embeds
### [Live Demo (try to change attributes in dev tools)](https://bdbch.github.io/customelement-cookie-notice/)
`cookie-notice` adds a simple to use solution for cookie- or data-related notices
## Installation
`npm install --save customelement-cookie-notice`
## Usage
#### ES6:
```js
import "customelement-cookie-notice"
```
#### Via `` in ES6
```js
<script src="build/cookie-notice.js">
```
#### Via `` in ES5
```js
<script src="build/cookie-notice.es5.js">
```
When customelement-cookie-notice is loaded correctly, you can just use it like this:
```html
We're using cookies.
Yeah thats cool
```
## Available Attributes
* `id="my-cookie-bar"` - Cookie Notice needs an ID to hide the cookie notice when the user accepts it
## Browser Support
This will need an update to find out what browsers are currently supporting all features
## Contribution
Feel free to send in Pull Requests. I'll take my time to look into them.