-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
260 lines (249 loc) · 8.42 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>E-Commerce - website</title>
</head>
<body>
<div class="begin">
<div>
<div id="scart">
<div id="topnav" class="head">
<a href="">Intro</a>
<a href="#middle">About</a>
<a href="#buy">Shop</a>
</div>
<button id="cart" onclick="OnandOfPopPay()">
<img
src="docum/Images/cart.svg"
alt=""
height="20px"
width="20px"
/><span id="spa">0</span>
</button>
</div>
<img src="docum/Images/EMS.svg" alt="" />
<div class="mill">
<h1 id="word">THE E-MILLENIAL STORE</h1>
<img src="docum/Images/heroImage.png" alt="" width="600px" />
</div>
<div id="tunde">
<a href="#middle" id="shop"><p>SHOP NOW</p></a>
</div>
</div>
</div>
<div id="middle">
<p>
E-Millenial store is an hypothethical online store for gadgets we
believe every 'Millenial' or 'GEN-Z' should have today.We've got mobile
phones, laptops, smartwatches and other gadgets.Explore all our gadgets
and choose the one that suit you.
</p>
</div>
<div id="buy">
<h1>OUR GADGETS</h1>
<div id="group">
<div id="sell">
<img
src="docum/Images/product1.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>SAMSUNG-TV</p>
<button id="p1">ADD TO CART</button>
</div>
</div>
<div id="sell">
<img
src="docum/Images/product2.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>PIXEL 4a</p>
<button id="p2">ADD TO CART</button>
</div>
</div>
<div id="sell">
<img
src="docum/Images/product3.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>PS 5</p>
<button id="p3">ADD TO CART</button>
</div>
</div>
<div id="sell">
<img
src="docum/Images/product4.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>MACBOOK AIR</p>
<button id="p4">ADD TO CART</button>
</div>
</div>
<div id="sell">
<img
src="docum/Images/product5.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>APPLE WATCH</p>
<button id="p5">ADD TO CART</button>
</div>
</div>
<div id="sell">
<img
src="docum/Images/product6.png"
height="350px"
width="400px"
alt=""
/>
<div id="come">
<p>AIR PODS</p>
<button id="p6">ADD TO CART</button>
</div>
</div>
</div>
</div>
<div id="foot">
<div id="set">
<img src="docum/Images/EMS.svg" alt="" />
<p>Coded and Implemented by Musoye <small>©Ustacky</small></p>
</div>
</div>
<div id="pay">
<div>
<div>
<button onclick="RemovePopPay()" id="cancelpop">×</button>
<table>
<thead>
<tr>
<th>Item</th>
<th>Price</th>
<th> </th>
<th>Quantity</th>
<th> </th>
</tr>
</thead>
<tbody >
<!-- Element to add as product -->
<tr class="element1" id="pixel1">
<td class="nomen1">Samsung TV</td>
<td class="price1" id="prc1">500000</td>
<td><button id="btn-sal1" class="btn-sale classsub1">-</button></td>
<td id="present1">0</td>
<!-- onclick="IncreaseNum()" -->
<td><button id="btn-sale1" class="btn-sale btnadd1" >+</button></td>
</tr>
<tr class="element2" id="pixel2">
<td class="nomen2">Pixel 4a</td>
<td class="price1" id="prc2">250000</td>
<td><button id="btn-sal2" class="btn-sale btnsub2">-</button></td>
<td id="present2">0</td>
<td><button id="btn-sale2" class="btn-sale btnadd2">+</button></td>
</tr>
<tr class="element3" id="pixel3">
<td class="nomen3">PS 5</td>
<td class="price1" id="prc3">300000</td>
<td><button id="btn-sal3" class="btn-sale btnsub3">-</button></td>
<td id="present3">0</td>
<td><button id="btn-sale3" class="btn-sale btnadd">+</button></td>
</tr>
<tr class="element4" id="pixel4">
<td class="nomen4">MacBook Air</td>
<td class="price1" id="prc4">800000</td>
<td><button id="btn-sal4" class="btn-sale btnsub4">-</button></td>
<td id="present4">0</td>
<td><button id="btn-sale4" class="btn-sale btnadd4">+</button></td>
</tr>
<tr class="element5" id="pixel5">
<td class="nomen5">Apple Watch</td>
<td class="price1" id="prc5">95000</td>
<td><button id="btn-sal5" class="btn-sale btnsub5">-</button></td>
<td id="present5">0</span></td>
<td><button id="btn-sale5" class="btn-sale btnadd5">+</button></td>
</tr>
<tr class="element6" id="pixel6">
<td class="nomen6">Air Pods</td>
<td class="price1" id="prc6">75000</td>
<td><button id="btn-sal6" class="btn-sale btnsub6">-</button></td>
<td id="present6">0</td>
<td><button id="btn-sale6" class="btn-sale btnadd6">+</button></td>
</tr>
<!-- This will be he area for where the shop thing will show -->
</tbody>
</table>
</div>
<div>
<form action="">
<input type="text" id='elementname' placeholder="Your Name" onblur="NameVerification()" required/>
<br />
<p class="error" id="nameError"></p>
<input type="email" id='email'placeholder="Your E-mail" onblur="EmailVerification()" required />
<br />
<p class="error" id="emailError"></p>
<input type="tel" id="pnumber" placeholder="your Phone Number" onblur="PNumberVerification()" required />
<p class="error" id="pError"></p>
</form>
</div>
<div id="paid">
<p>Total Amount to be paid</p>
<div class="divamount">
<span class="amounted">₦</span>
<p class="amounted" id="amounted"></p>
<p id='tamounnt' class="hid"></p>
</div>
</div>
<div id="check">
<button
style="background-color: #ff9a3d"
id="nul"
onclick="RemovePopPay()"
>
Continue Shopping
</button>
<button style="background-color: #ff9a3d" onclick="Checkout()">
Checkout
</button>
</div>
</div>
</div>
<div id="summary" class="summary">
<h3 class="sum-head">Thank you <span class="sum-name" id="sum-name"> </span>, Your order has been received!</h3>
<img class='sum-img'src="docum/Images/check.svg
" alt="Check" height="100" class="check-img">
<h3 >Summary</h3>
<table class="sum-tab" >
<thead>
<tr>
<th class="sum-tab-head">Item</th>
<th class="sum-tab-head">Quantity</th>
</tr>
</thead>
<tbody>
<tr id='sum-quantity'>
</tr>
</tbody>
</table>
<p class="ref-p">Your Receipt Reference ID is <span id="refid"></span></p>
<button class="sum-btn" onclick="ReloadSession()">OK!</button>
</div>
<script src="https://js.paystack.co/v1/inline.js"></script>
<script src="./commerce.js"></script>
</body>
</html>