Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Easily and fully customizable bootstrap EU Cookie Consent Banner.

Notifications You must be signed in to change notification settings

MartinBucko/meteor-cookie-consent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookie-consent

Create easily a fully customizable bootstrap EU Law (imply) Cookie consent banner for your website.

Install

$ meteor add selaias:cookie-consent

This packages makes also use of cookies via the chuangbo:cookie package.

Usage

Place {{> cookieConsent}} or {{> cookieConsentImply}} in your main template. Something like:

<body>
    {{> cookieConsent}}
    or
    {{> cookieConsentImply}}
</body>

and then place under client/lib/cookie_consent.js file the initialisation code

var options = {
  cookieTitle: "We use Cookies",
  cookieMessage: "We are using cookies to give you the best"
     + " experience on our site. Cookies are files stored in your"
     + " browser and are used by most websites to help personalise your web experience.",
  showLink: true,
  linkText: "Read more",
  linkRouteName: "/cookiePolicy",
  acceptButtonText: "Accept and Continue",
  html: false,
  expirationInDays: 7,
  forceShow: false
};

CookieConsent.init(options);

// or

var optionsImply = {
  cookieMessage: "We are using cookies to give you the best"
     + " experience on our site. Cookies are files stored in your"
     + " browser and are used by most websites to help personalise your web experience.",
  cookieMessageImply: "By continuing to use our website without changing the settings,"
    + " you are agreeing to our use of cookies.",
  showLink: true,
  position: 'top',
  linkText: "Read more",
  linkRouteName: "/cookiePolicy",
  html: false,
  className: null,
  expirationInDays: 7,
  forceShow: false
};

CookieConsent.init(optionsImply);

Feedback

This is the most basic setup, customization ideas are always welcome!

Licence

MIT License

About

Easily and fully customizable bootstrap EU Cookie Consent Banner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.2%
  • CSS 27.4%
  • HTML 22.4%