https://github.com/polydile/dile-cookie-consent
https://github.com/polydile/dile-cookie-consent
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/polydile/dile-cookie-consent
- Owner: Polydile
- Created: 2018-01-01T22:28:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T09:18:27.000Z (over 8 years ago)
- Last Synced: 2025-01-25T18:43:26.904Z (over 1 year ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# \
Polymer Web Component to implement a cookie consent.
This components accepts a "role" property to styling.
When you click on the button create a cookie in navigator.
If cookie is created, the component is not visible, in other case is visible.
```html
```
Property | Description | Default
---------|-------------|---------
text | Text of consent. | {}
label-button | Label of button | Ok
role | undefined, primary, danger, success, warning | danger
position | 'top' => Top of screen, 'bottom' => Bottom of screen | bottom
name-cookie | Cookie's name | dile
days-expiration-cookie | Number of days expiration of cookie
Custom property | Description | Default
----------------|-------------|---------
--dile-cookie-consent-background-color | Background color | gray