-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
118 lines (107 loc) · 4.34 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="CodeHim">
<title>Food Funday</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- Style CSS -->
<link rel="stylesheet" href="cart.css">
<style>
.navbar{
height: 56px;
line-height: 56px;
padding: 0 26px;
}
</style>
</head>
<body>
<header class="intro">
<div class="action">
<a href="https://www.codehim.com/collections/javascript-shopping-cart-examples-with-demo/" title="Back to download and tutorial page" class="btn back"></a>
</div>
</header>
<main>
<!-- Start DEMO HTML (Use the following code into your project)-->
<nav class="navbar navbar-inverse bg-inverse fixed-top bg-faded">
<div class="row">
<div class="col">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#cart">Cart (<span class="total-count"></span>)</button><button class="clear-cart btn btn-danger">Clear Cart</button></div>
</div>
</nav>
<!-- Main -->
<div class="container">
<div class="row">
<div class="col col-md-4">
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="./images/paneerkathiroll.png" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Paneer Kathi Roll</h4>
<p class="card-text">Price: $10.5</p>
<a href="#" data-name="Orange" data-price="0.5" class="add-to-cart btn btn-primary">Add to cart</a>
</div>
</div>
</div>
<div class="col col-md-4">
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="./images/chickenroll.png" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Chicken Roll</h4>
<p class="card-text">Price: $12.22</p>
<a href="#" data-name="Banana" data-price="1.22" class="add-to-cart btn btn-primary">Add to cart</a>
</div>
</div>
</div>
<div class="col col-md-4">
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="./images/eggroll.png" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Egg Roll</h4>
<p class="card-text">Price: $11</p>
<a href="#" data-name="Lemon" data-price="5" class="add-to-cart btn btn-primary text-white">Add to cart</a>
</div>
</div>
</div>
<div class="col col-md-4">
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="./images/potatospringroll.png" alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Potato Spring Roll</h4>
<p class="card-text">Price: $10</p>
<a href="#" data-name="Lemon" data-price="5" class="add-to-cart btn btn-primary text-white">Add to cart</a>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="cart" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Cart</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table class="show-cart table">
</table>
<div>Total price: $<span class="total-cart"></span></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Order now</button>
</div>
</div>
</div>
</div>
<!-- END EDMO HTML (Happy Coding!)-->
</main>
<footer class="credit"><a title="Awesome web design code & scripts" href="https://www.codehim.com?source=demo-page" target="_blank"></a></footer>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="cart.js"></script>
</body>
</html>