This project demonstrates how to create and manage cookie banners using JavaScript. It includes functions to set, get, and handle cookies, as well as show and hide cookie banners based on user interactions.
- Set Cookies: Function to set cookies with a specified expiration date.
- Get Cookies: Function to retrieve the value of a specified cookie.
- Show/Hide Cookie Banners: Functions to show or hide cookie banners based on whether a specific cookie is set.
Make sure you have the following installed:
-
Clone the repository to your local machine:
git clone https://github.com/betuloran/cookie-banners.git
-
Navigate to the project directory:
cd cookie-banners
To view the site locally, simply open the index.html file in your preferred web browser.