In this post I am going to share useful jQuery plugin (Cookie Alert) to display EU Cookie Law Notice bar on page on load to every new website visitor as it is important to display Cookie notice bar if your website uses cookie on user’s browser that’s why in this post i am writing tutorial about integration of Cookie Alert Bar Plugin. Cookie-Alert is a pure JavaScrip plugin that creates a cookie notice bar using Bootstrap 4 alert component to make your webpage to comply the European cookie law.
Integrate Bootstrap Cookie Notice Alert Bar
Libraries
Add bootstrap library + plugin’s library on page to enable cookie notice alert bar.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"> <link rel="stylesheet" href="cookiealert.css"> <script src="cookiealert-standalone.js">script> |
HTML
Add following html bootstrap div container on page to display your own cookie alert custom message to comply EU Cookie Law Notice.
|
See live demo and download source code.
Visit official github repository for more information and follow for future updates. Don’t forget to read license for using this plugin in your projects.