-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (76 loc) · 2.5 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!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-list"></ul>
<h2 id="total-price-message"></h2>
</div>
</div>
<!-- poster -->
<div class="four wide column">
<img
id="item-image"
src="images/image-placeholder.jpg"
alt="[ITEM NAME]"
/>
</div>
<!-- showing info -->
<div class="four wide column">
<div class="ui cards" id="showing">
<div class="card">
<select id="item-select" style="margin:40px"></select>
<div id="item-name" class="name">[ITEM NAME]</div>
<div class="content">
<div class="description">
$<span id="item-price" class="ui label">[ITEM PRICE]</span>
Number in cart: <span id="item-number-in-cart">[X]</span>
</div>
</div>
<div class="extra content">
<button id="add-to-cart" class="ui green button">
Add To Cart
</button>
</div>
</div>
</div>
</div>
</div>
<div id="form-container">
<form id="new-item-form">
<h4>Add New Item</h4>
<label for="name-input">Name:</label>
<input type="text" id="name-input" name="name" required/>
<label for="image-input">Image:</label>
<input type="text" id="image-input" name="image" 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>