-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
147 lines (114 loc) · 5.21 KB
/
index.html
File metadata and controls
147 lines (114 loc) · 5.21 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Archive</title>
<meta name="description" content="Archive">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="js/render_books.js"></script>
<script src="js/drag_drop.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<!-- Optional theme -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"> -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- custom style sheets -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- script testing -->
<script type="text/javascript">
$(document).ready(function() {
$('body').css('background-image', 'url(img/logo.svg)');
$('body').css('background-size', '50%');
});
</script>
<!-- end script testing -->
<!-- start Container for header -->
<div class="container">
<header class="header center-block" id="searchBar">
<!-- start Search Bar-->
<div class="col-xs-12 col-sm-12 col-md-12 center-block">
<form id="search">
<div class="input-group input-group-lg">
<span class="input-group-addon logo"><img src="img/logo_sm.svg" alt="logo"></span>
<input id="subject" class="form-control" placeholder="Search" aria-hidden="true">
<div class="input-group-btn">
<button type="submit" class="btn btn-default" id="go" ><span class="input-group-addon glyphicon glyphicon-search"></span> </button>
</div>
</div>
</form>
</div>
<!-- end Search bar -->
</header>
<!-- end Header -->
</div>
<!-- end Container -->
<!-- start results / bin / etc -->
<div class = "container" id="collectionBin">
<div id="bin">
<script>
$('#search').on("submit",function(e) {
console.log(e);
e.preventDefault();
$("#bin").empty();
$('body').css('background-image','none');
var s = $("#subject").val();
$.getJSON("https://www.googleapis.com/books/v1/volumes",{q:s})
.done(
function(data) {
console.log(data);
// var results = data;
//handleResponse(results);
for (var i = 0; i < 8; i++) {
var item = data.items[i];
renderAll(data.items[i], "#bin")
}
}
);
$("#subject").val("");
});
</script>
<!-- <div class="bin"> -->
</div>
<!-- end bin -->
</div>
<!-- end Container -->
<!-- start Footer -->
</div>
<div class="container">
<div class="clearfix">
<footer class="navbar-fixed-bottom">
<!-- collection categories -->
<div class="container">
<div class="row collections">
<button type="button" data-collection="keeper" class="btn btn-danger col-xs-3 col-sm-3 col-md-3">
<div class="collectionIcon"><img src="img/keeper_wh.svg" alt="keeper icon"></div>
<p class="collectionText">Keeper</p>
</button>
<button type="button" data-collection="surfing" class="btn btn-primary col-xs-3 col-sm-3 col-md-3">
<div class="collectionIcon"><img src="img/surfing_wh.svg" alt="surfing icon"></div>
<p class="collectionText">Surfing</p>
</button>
<button type="button" data-collection="gonna" class="btn btn-warning col-xs-3 col-sm-3 col-md-3">
<div class="collectionIcon"><img src="img/gonna_wh2.svg" alt="gonna icon"></div>
<p class="collectionText">Gonna</p>
</button>
<button type="button" data-collection="maybe" class="btn btn-success col-xs-3 col-sm-3 col-md-3">
<div class="collectionIcon"><img src="img/maybe_wh.svg" alt="maybe icon"></div>
<p class="collectionText">Maybe</p>
</button>
</div>
</div>
</footer>
</div>
</div>
<!-- closed footer container -->
<!-- closed global container -->
</div>
</body>
</html>