-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (46 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Practice - HTML Forms</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/1.11.8/semantic.min.css"
/>
<link rel="stylesheet" href="index.css" />
<script defer type="text/javascript" src="index.js"></script>
</head>
<body>
<!-- navbar -->
<div class="heading">
<div class="item">
<h2 class="ui header">
<i class="blue cart icon"></i>
<div class="content">FLATIRON SUPERMARKET</div>
</h2>
</div>
</div>
<div class="ui centered grid">
<div class="four wide column">
<div class="list-container">
<!-- side menu -->
<h2 id="cart-message"></h2>
<ul class="ui divided list" id="cart"></ul>
<h2 id="total-price-message"></h2>
</div>
</div>
</div>
<div id="form-container">
<form id="new-cart-item-form">
<h4>Add New Item</h4>
<label for="name-input">Name:</label>
<input type="text" id="name-input" name="name" required/>
<label for="price-input">Price:</label>
<input type="number" id="price-input" name="price" step="0.01" required/>
<input type="submit" value="Add Item"/>
</form>
</div>
</body>
</html>