-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (107 loc) · 2.99 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!doctype html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Let's Shop</title>
<link rel="stylesheet" href="index.css">
<link rel="icon" href="assets/icon-192.png">
<link rel="manifest" href="manifest.json">
<script src="dexie.min.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./gsw.js');
});
}
</script>
</head>
<body>
<nav>
<p>My list</p>
</nav>
<div class="container">
<h1>Shopping Cart</h1>
<div class="cart">
<div class="products">
<div class="product">
<img src="shoes-153310_640.png">
<div class="product-info">
<h3 class="product-name">New Shoes</h3>
<h4 class="product-price">₹ 1,000</h4>
<h4 class="product-offer">50%</h4>
<p class="product-quantity">Qnt: <input value="1" name="">
<p class="product-remove">
<i class="fa fa-trash" aria-hidden="true"></i>
<span class="remove">Remove</span>
</p>
</div>
</div>
<div class="product">
<img src="bag-1854148_640.jpg">
<div class="product-info">
<h3 class="product-name">New Bag</h3>
<h4 class="product-price">₹ 2,000</h4>
<h4 class="product-offer">40%</h4>
<p class="product-quantity">Qnt: <input value="1" name="">
<p class="product-remove">
<i class="fa fa-trash" aria-hidden="true"></i>
<span class="remove">Remove</span>
</p>
</div>
</div>
</div>
<div class="cart-total">
<p>
<span>Total Price</span>
<span>₦ 3,000</span>
</p>
<p>
<span>Number of Items</span>
<span>2</span>
</p>
<p>
<span>You Save</span>
<span>₦ 1,000</span>
</p>
<a href="#">Thanks for shopping</a>
</div>
</div>
<form id="itemForm">
<label>
Name of Item:
<input type="text" id="nameInput" required>
</label>
<label>
Quantity:
<input type="number" id="quantityInput" value=1>
</label>
<label>
Price:
<input type="number" id="priceInput" value=0>
</label>
<button type="submit" id="addItemButton">Add item</button>
</form>
<div id="itemsDiv">
<div class="cart-total">
<p>
<span>Total Price</span>
<span>₦ 3,000</span>
</p>
<p>
<span>Number of Items</span>
<span>2</span>
</p>
<p>
<span>You Save</span>
<span>₦ 1,000</span>
</p>
<a href="#">Thanks for shopping</a>
</div>
</div>
<div id="totalPriceDiv"></div>
</div>
<script src="index.js"></script>
</body>
</html>