Skip to content

ChezzyDerp/cookie-widget

Repository files navigation

Cookies widget - ePrivacy Directive consent

Simple cookie widget to web pages one notify users about policy of using their personal data

ePrivacy Directive consent text I'm took from https://www.privacypolicies.com/cookie-consent/

Usage Example

To connect the widget, you need to insert these 2 lines into the head tag:

<link rel="stylesheet" href="https://github.com/chezzyderp/cookie-widget/build/widget.min.css">
<script src="https://github.com/chezzyderp/cookie-widget/build/widget.min.js">

Also you can

You can also write your own custom text , for this you need to use the text attribute in the script tag

<script text="custom text" src="https://chezzyderp.github.io/cookie-widget/build/widget.min.js"></script>

(image)

Also you can write every_active prop to script and cookie notification will show you every time

<script every_active src="https://chezzyderp.github.io/cookie-widget/build/widget.min.js"></script>

Just download widget.min.js and widget.min.css from build folder and use them locally.

Widget Appearance

Widget has a pretty simple appearance and small spawn animation.