For create the structure , I have use the container tag in html, for structure in two blocks one for the items / price component and the second for the form component. With the flex I modify the position in mobile or pc device.
For this I have used the basic tag in html for create this and I used the required element in input tag for obliged user to write in input.
For the items/prices js, I am used the getElementById for shearch the buton + & - for incremant the numbers of this and the number is write with the innerHTML. To final price for all items, I have used a basic math formul.
For the form, I have used the localStorage for store deferently information of this and used a count for verrify the content after send this at the server.
- Js vanilla / localStorage
- HTML 5
- CSS 3
This application/site was created as a submission to a DevChallenges challenge. The challenge was to build an application to complete the given user stories.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/your-user-name/your-project-name
# Install dependencies
$ npm install
# Run the app
$ npm start
- Website your-website.com
- GitHub @antozr