Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ravi-aratchige/chocolate-chip-delights

A demo website showing a simple cookie consent popup with a translucent overlay
https://github.com/ravi-aratchige/chocolate-chip-delights

cookie cookie-bar cookie-consent cookie-popup cookies

Last synced: about 1 month ago
JSON representation

A demo website showing a simple cookie consent popup with a translucent overlay

Awesome Lists containing this project

README

        

# Chocolate Chip Delights





This is a demo website built to show a basic cookie consent popup appearing in the form of a bar at the bottom of the site, placed above a translucent overlay.


This has been build purely with HTML, CSS and Vanilla JavaScript. No frameworks or libraries have been used.



How It Works




The cookie consent bar appears over the website when it is refreshed. It appears above a translucent overlay which prevents the user from interacting with the website until they have interacted with the cookie consent bar.



The bar has two buttons; "Sure, I'll have one!" for accepting cookies and "No thanks, I'm good." for declining cookies. Interacting with either button will remove the bar and overlay from the website.



TO-DO




- [ ] Add a cookie/cookies to the user's browser to remember their decision

- [ ] Fix mobile responsivity for Galaxy Fold

- [ ] Add a "Learn More" capability to the bar

- [ ] Cleanup code