Skip to content

Omolara5861/cookie-consent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World's Most Annoying Cookie Consent 😄

This project is part of the Essential Javascript Concept Module from Scrimba's The Frontend Career Path Course. It is an annoying cookie consent project, that forces the users to accept the site cookies. When a user attempts to decline the cookies, the decline button is swapped with the accept button, hence making it impossible for the user to decline the cookies. LOL

Concepts Learned

- setTimeout Method: to control when the modal popup appears
- element.style: to dynamically update an element's css property
- forms: used HTML form element with the input type of text and email 
- formData & get Method: to get the form data as an object and access the name value, display it in the app
- event.preventDefault: to get more control over how the form is submitted
- CSS: row-reverse: to prevent the users from clicking the decline button
- classList.toggle(): to dynamically add and remove the class that set the row-reverse property to motion
- 'disabled' attribute: to disable the button that closes the modal until the last message appears

Tools & Technologies Used

This project was developed using Visual Studio Code and the following technologies were used:

  • Frontend
    HTML5 Css3 JavaScript

  • Project Management and Version Control
    GitHub

About Scrimba

Scrimba's goal is to create the best possible coding school at the cost of a gym membership! 💜 If we succeed with this, it will give anyone who wants to become a software developer a realistic shot at succeeding, regardless of where they live and the size of their wallets 🎉 The Frontend Developer Career Path aims to teach you everything you need to become a Junior Developer, or you could take a deep-dive with one of our advanced courses 🚀

Happy Coding!