idai-cookie-notice

Simple JS library for creating a notice that cookies are used on the website.

Usage no npm install needed!

<script type="module">
  import idaiCookieNotice from 'https://cdn.skypack.dev/idai-cookie-notice';
</script>

README

idai-cookie-notice

Simple JS library for creating a notice that cookies are used on the website.

The library handles displaying the message and saving the fact in a cookie that the user gave her consent by clicking the dismiss-button. The message is shown again after 30 days.

Installation

npm i idai-cookie-notice --save

Usage

Just include idai-cooke-notice.js in your HTML.

Styling

Styling uses bootstrap classes but can be customised using CSS with the id #idai-cookie-notice.