forked from kmcgrady/shopping-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (98 loc) · 6.64 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Shopping Cart</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#" onclick="window.location.reload(true);">My Shopping Cart</a>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col col-xs-6 col-sm-6 col-md-9">
<h1>Products</h1>
<div class="row" id="products"></div>
</div>
<div class="col col-xs-6 col-sm-6 col-md-3">
<h1>
<span>Shopping Cart </span>
</h1>
<div id="cartBody">
<div id="cart"></div>
<hr/>
<!-- Button trigger modal -->
<button id="shipping-address-show" type="button" class="btn btn-warning btn-sm">
<span id="shipping-address-icon" class="glyphicon glyphicon-exclamation-sign"></span>
<span>Shipping details</span>
</button>
<hr/>
<div id="totalreport"></div>
<div id="sendStatus">
<button id="send" class="btn btn-primary" disabled>Send</button>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Please provide shipping address</h4>
</div>
<div class="modal-body">
<form id="shipToForm" class="form-horyzontal">
<p>Your address</p>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Full name" name="fullname" id="fullname" required="required">
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Zip" id="zip" name="zip" required="required" pattern="[0-9-]{4,}">
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Street address (Line 1)" id="address1" name="address1" required="required"/>
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Street address (Line 2)" id="address2" name="address2"/>
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="City" id="city" required="required" name="city"/>
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="State" id="state" required="required" name="state"/>
<span class="glyphicon form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="phone" class="form-control" placeholder="Phone" id="phone" required="required" name="phone"</input>
<span class="glyphicon form-control-feedback"></span>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="shipping-address-apply">OK</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="cart.js"></script>
</body>
</html>