-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
101 lines (84 loc) · 3.82 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
99
100
101
<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/d3_wrapper.js"></script>
<script src="js/bestbuy.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/d3_wrapper.css">
<script src="js/app.js"></script>
<script>
jQuery.support.cors = true;
$.support.cors = true;
$(function() {
loadTrendingProducts();
//accessoriesForProduct("6848136", handleAccessories);
//detailsForProduct("6848136", logApiResponse);
//searchFor("cam", handleSearchResults);
//reviewsForProduct("6848136", handleReviews);
// Hook up some events:
$("#searchButton").click(searchForProduct);
$('#searchField').keypress(function (e) {
if (e.which == 13) {
searchForProduct();
return false;
}
});
});
</script>
</head>
<body>
<form class="navbar-form navbar-left" role="search" >
<div class="form-group">
<input type="text" class="form-control" placeholder="Search" id="searchField">
</div>
<button type="button" class="btn btn-default" id="searchButton">Submit</button>
</form>
<!-- Modal -->
<div class="modal fade" id="productModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="productTitle">Macbook Air</h4> <!-- Insert Modal Title here-->
</div>
<div class="modal-body">
<img src="example_image.png" id="modalImage" class="thumbnail"> <!-- Insert Modal Image here-->
<div id="productDescription"> <!-- Insert Modal Description here-->
<p>MacBook Air features fourth-generation Intel Core processors with stunning graphics, all-day battery life*, ultrafast flash storage, and great built-in apps. It's thin, light and durable enough to take everywhere you go — and powerful enough to do everything once you get there.<p>
</div>
<p> <p>
<h4>Reviews</h4>
<div id="reviews">
<!--Review Content goes here-->
<div class="panel panel-default">
<div class="panel-heading"><h5>Amazing Apple computer.</h5></div>
<div class="panel-body">
I bought this laptop for mostly school use and it does not disappoint. Also it is SUPER light! Love the size!
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><h5>Love this lightweight laptop!</h5></div>
<div class="panel-body">
First Mac computer. Love the user friendly interface.
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><h5>Great</h5><span class="glyphicon glyphicon-star"></span></div>
<div class="panel-body">
This is my daughter's computer for school and she absolutely loves it!
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.min.js"></script>
<div id="d3canvas" style="width: 100%;height: 600px;"></div>
</body>
</html>