accept-cookies

0.0.1 • Public • Published

Accept cookies

Description

Displays an alert at the bottom of your website, which informs the user about website cookies. Provides a link to cookies policy page and a button to accept the policy.

Demo

Demo

Installation

Add the both files to your HTML code, for example:

<html>
  <head>
    ...
    <link rel="stylesheet" href="/accept-cookies.css" />
    <script type="text/javascript" src="/accept-cookies.js"></script>
  </head>
  <body>
    ...
  </body>
</html>

Options

There are few options you can customise by editing the accept-cookies.js file:

  • buttonText - text to be displayed on the accept cookies button.
  • message - message, informing the user about the cookies.
  • policyUrl - URL to your cookies policy page.
  • triggerText - which word(s) from your message should be transformed as link to the policyUrl

Package Sidebar

Install

npm i accept-cookies

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

716 kB

Total Files

6

Last publish

Collaborators

  • vmanchev