From 1f4bf072cc376631ecf95ec3fb923176b7513100 Mon Sep 17 00:00:00 2001 From: Adriel Cavalcanti Date: Fri, 4 Sep 2020 13:15:31 -0300 Subject: [PATCH 1/2] update readme badges --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bed6476..971d2e9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # 🍪 CookiesNotification +![jsdelivr hits](https://data.jsdelivr.com/v1/package/gh/adrcav/cookies-notification/badge) +![Dependencies](https://david-dm.org/adrcav/cookies-notification.svg) +![License: MIT](https://img.shields.io/github/license/adrcav/cookies-notification)
A simple and small cookies consent notification.
@@ -21,10 +24,16 @@ If you have imported CookiesNotification via one of the above methods, you are r ## Usage -Here's an example of a basic implementation with default options: +Here's an example of a basic implementation: ```javascript -const cookies = new CookiesNotification({ +const cookies = new CookiesNotification(); +``` + +You can also customize the notification, here's a default options: + +```javascript +const options = { container: document.body, message: 'We use cookies and others technologies to make interactions with our services easy and meaningful. By continuing to use this site you are giving us your consent to do this.', confirmButton: 'Got it', @@ -33,7 +42,9 @@ const cookies = new CookiesNotification({ position: 'left', borderColor: '#333333', remember: 365 -}); +}; + +const cookies = new CookiesNotification(options); ``` ## License From e0ecaf875aa5eba1c4dc95f1a9431910714e9f7f Mon Sep 17 00:00:00 2001 From: Adriel Cavalcanti Date: Fri, 4 Sep 2020 17:04:47 -0300 Subject: [PATCH 2/2] add travis cdi badge --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 971d2e9..10599d9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # 🍪 CookiesNotification ![jsdelivr hits](https://data.jsdelivr.com/v1/package/gh/adrcav/cookies-notification/badge) +[![Build Status](https://travis-ci.org/adrcav/cookies-notification.svg?branch=master)](https://travis-ci.org/adrcav/cookies-notification) ![Dependencies](https://david-dm.org/adrcav/cookies-notification.svg) ![License: MIT](https://img.shields.io/github/license/adrcav/cookies-notification) -
A simple and small cookies consent notification.
+
A simple and lightweight cookies consent notification.
## Preview ![Preview](https://i.imgur.com/WmPSTpk.gif)