Skip to content

bdbch/customelement-cookie-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<cookie-notice>

Easy to embed Youtube Embeds

cookie-notice adds a simple to use solution for cookie- or data-related notices

Installation

npm install --save customelement-cookie-notice

Usage

ES6:

import "customelement-cookie-notice"

Via <script> in ES6

<script src="build/cookie-notice.js"></script>

Via <script> in ES5

<script src="build/cookie-notice.es5.js"></script>

When customelement-cookie-notice is loaded correctly, you can just use it like this:

<cookie-notice id="my-cookiebar">
  We're using cookies.
  <a href="#" data-accept>Yeah thats cool</a>
</cookie-notice>

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.