-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
89 lines (78 loc) · 4.38 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
<!DOCTYPE html>
<html lang="en">
<!-- head {{{ -->
<head>
<title>Grocery Finder</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="http://livejs.com/live.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<!-- }}} head -->
<body>
<div class="container-fluid transition-all">
<!-- navbar {{{ -->
<nav class="navbar navbar-expand-md fixed-top navbar-custom">
<button class="navbar-toggler" id="navCollapseBtn" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault">
<!-- <span class="navbar-toggler-icon"> -->
<i class="fas fa-bars" id="navCollapseIcon"></i>
<!-- </span> -->
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<div class="dropdown d-none d-md-block">
<button class="btn btn-secondary" type="button" id="userSettingsButton" data-toggle="dropdown">
<i class="fas fa-user-circle fa-2x"></i>
</button>
<div id="profileDropdown" class="dropdown-menu">
<a class="dropdown-item openLoginPopup" href="#">Login</a>
<a class="dropdown-item openSignupPopup" href="#">Sign up</a>
<a class="dropdown-item openSettingsPopup" href="#">Settings</a>
</div>
</div>
<button class="btn my-2 my-sm-0 hover-red ml-auto d-none d-md-block save-cart-btn">
Save current cart
</button>
<button onclick="location.href='/stores.html'"
class="btn my-2 my-sm-0 d-none d-md-block calc-btn">
Calculate cart price
</button>
<button onclick="location.href='/index.html'"
class="btn my-2 my-sm-0 d-none d-md-block cart-btn">
Continue shopping
</button>
<!-- <ul class="navbar-nav" id="category-list"> -->
<ul class="navbar-nav">
<!-- This li only appears on the collapsed drop down menu -->
<!-- d-md-none means hide on screens wider than md -->
<li class="nav-item d-md-none">
<a class="nav-link pointer openLoginPopup">Login</a>
<a class="nav-link pointer openSignupPopup">Sign up</a>
<a class="nav-link pointer openSettingsPopup">Settings</a>
<a class="nav-link pointer cart-btn">Cart</a>
<a class="nav-link pointer save-cart-btn">Save Cart</a>
<a class="nav-link pointer calc-btn">Calculate</a>
</li>
</ul>
</div>
</nav>
<!-- }}} navbar -->
<p class="text-center" id="category-instructions">Your cart is empty. Click "Continue shopping" to add
to your cart, or select a previously saved cart.</p>
<div id="grid">
<div class="row" id="grid-row"></div>
</div>
<script type='text/javascript' src='js/helpers.js'></script>
<script type='text/javascript' src='js/food.js'></script>
<script type='text/javascript' src='js/popups.js'></script>
<script type='text/javascript' src='js/editable-text-field.js'></script>
<script type='text/javascript' src='js/saved-carts.js'></script>
<script type='text/javascript' src='js/cart.js'></script>
</body>
</html>