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
- 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
This project was developed using and the following technologies were used:
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!