An open API service indexing awesome lists of open source software.

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.

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.