-
Notifications
You must be signed in to change notification settings - Fork 0
/
02.html
104 lines (88 loc) · 3.33 KB
/
02.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Cart</title>
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div class="container-fluid">
<!-- Navigation -->
<div class="row navigation">
<div class="logo">
LOGO
</div>
<!-- Mini Cart Starts Here -->
<div class="mini-cart">
<button class="btn btn-default mini-cart-button"><span class="glyphicon glyphicon-shopping-cart"></span></button>
</div>
<div class="mini-cart-container">
<div class="mini-cart-items">
<ul>
</ul>
<div class="mini-cart-totals">
<div id="total-price">
<p>Total Price</p>
<span> $0.0 </span>
</div>
<div id="total-items">
<p>Total Items</p>
<span> 0 </span>
</div>
</div>
</div>
</div>
<!-- Mini Cart Ends Here -->
</div>
<!-- Product Grid -->
<div class="row product-grid">
<!-- START The Product Item -->
<div class="col-md-4 col-sm-4 grid-item">
<img src="images/1.jpg" alt="" />
<h1 class="product-title">Watche 1</h1>
<h3 class="product-price">$120.99</h3>
<div class="quantity-input">
<input class="minus btn" type="button" value="-">
<input id="text_1" value="1" class="input-text qty text" size="4"/>
<input class="plus btn" type="button" value="+">
</div>
<button class="btn btn-success add-to-cart-button" rel="watche_1" product="Watche 1" sel="120.99"><span class="glyphicon glyphicon-ok"></span> Add to Cart</button>
</div>
<!-- END!! The Product Item -->
<!-- START The Product Item -->
<div class="col-md-4 col-sm-4 grid-item">
<img src="images/2.jpg" alt="" />
<h1 class="product-title">Watche 2</h1>
<h3 class="prodcut-price">$199.99</h3>
<div class="quantity-input">
<input class="minus btn" type="button" value="-">
<input id="text_2" value="1" class="input-text qty text" size="4"/>
<input class="plus btn" type="button" value="+">
</div>
<button class="btn btn-success add-to-cart-button" rel="watche_2" product="Watche 2" sel="199.99"><span class="glyphicon glyphicon-ok"></span> Add to Cart</button>
</div>
<!-- END!! The Product Item -->
<!-- START The Product Item -->
<div class="col-md-4 col-sm-4 grid-item">
<img src="images/3.jpg" alt="" />
<h1 class="product-title">Watche 3</h1>
<h3 class="prodcut-price">$240.99</h3>
<div class="quantity-input">
<input class="minus btn" type="button" value="-">
<input id="text_3" value="1" class="input-text qty text" size="4"/>
<input class="plus btn" type="button" value="+">
</div>
<button class="btn btn-success add-to-cart-button" rel="watche_3" product="Watche 3" sel="240.99" ><span class="glyphicon glyphicon-ok"></span> Add to Cart</button>
</div>
</div>
</div>
<script>
window.onload = function(){
document.querySelector('.mini-cart-button').addEventListener('click', function(){
document.querySelector('.mini-cart-container').classList.toggle('mini-cart-open');
});
};
</script>
</body>
</html>