-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.html
58 lines (57 loc) · 1.75 KB
/
cart.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="cart.css">
<link rel="icon" href="images/logo2.png">
<title>KeyboardBar</title>
<script type="text/javascript" src="javascript.js"></script>
</head>
<body onload="checkCart(); calTotal()">
<header class="topnav">
<div class="logo">
<a href="homepage.html"><img src="images/logo.png" alt="logo"></a>
</div>
<nav>
<ul class="left">
<li><a href="keyboard.html">Keyboards</a></li>
<li><a href="switches.html">Switches</a></li>
<li><a href="keycaps.html">Keycaps</a></li>
</ul>
</nav>
</header>
<br>
<br>
<div class="emptyCart">
<h2>Your cart is empty</h2>
<a href="keyboard.html">Continue shopping</a>
</div>
<div class="cartTitle">
<div class="yourCart">
<h2>Your Cart</h2>
<a href="keyboard.html">Continue shopping</a>
</div>
<p id='clearCart' type="button" name="button" onclick="clearStorage()" onclick="location.reload()">Clear cart</p>
<ul>
<li id='product'>PRODUCT</li>
<li id='price'>PRICE</li>
<li id='quantity'>QUANTITY</li>
<li id='checkoutTitle'>TOTAL</li>
</ul>
</div>
<div class="checkout">
<p id='totalAmount'>$<span id='subTotal'>0</span></p>
<button id='checkoutBtn' type="button" name="button" onclick="location.href='checkout.html'">Checkout →</button>
</div>
<div class="shoppingCart">
<div class="items">
</div>
<div class="title">
</div>
<div class="price">
</div>
<div class="quantity">
</div>
</div>
</body>
</html>