README.md is partially generated and formatted using AI
A simple interactive shopping list built with HTML, CSS, and JavaScript.
The app allows you to add items manually, generate random products, delete them, and calculate the total cost.
It also includes basic input validation, error messages, and fun UI interactions.
- β Add new items with name and price
- π² Add random product from a pre-defined list of 50+ grocery items
- β Delete items individually
- π§Ή Clear entire cart with confirmation dialog
- π² Automatic total price calculation
β οΈ Validation:- Name must be at least 2 characters
- Price cannot be empty or negative
- π¨ UI/UX Enhancements:
- Error messages disappear after 1 second
- Hover effect on the Clear button
- Dynamic placeholder hints when focusing on inputs
- HTML5 β Structure
- CSS3 β Styling
- Vanilla JavaScript (ES6+) β Logic & Interactivity
- DOM & BOM APIs β Event handling, validation, alerts, confirms
π¦ shopping-list
β£ π index.html # App layout
β£ π style.css # Styles
β£ π script.js # Main logic
β π README.md # Project docs-
Clone the repo:
git clone https://github.com/your-username/shopping-list.git
-
Open index.html in your browser.
-
Start adding products! π
Some of the items in the pre-built random list:
π Apple β $ 1.20
π₯¦ Broccoli β $ 2.10
π₯© Beef Steak β $ 9.90
π Salmon β $ 12.00
β Coffee β $ 5.00
π« Chocolate β $ 2.50
(And 45+ more items!)Made with β€οΈ by [Dmitrii Izrailit aka Lukatami]
