-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
58 lines (44 loc) · 1.86 KB
/
search.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
<!DOCTYPE html>
<body>
<div class="section no-pad-bot" id="index-banner" ng-controller="searchclr">
<div class="container">
<br/>
<table class="striped bordered centered">
<thead class="light-blue lighten-1">
<tr><th>Book Title</th><th>Author</th><th>Publisher</th><th>More Details</th>></tr>
</thead>
<tbody>
<tr ng-repeat="books in ourResult">
<td>{{books.volumeInfo.title}}</td>
<td><span ng-repeat="author in books.volumeInfo.authors">{{author}}, </span></td>
<td>{{books.volumeInfo.publisher}}</td>
<td><button ng-click="book($index)">More Details</button></td>
</tr>
</tbody>
</table>
<br/>
<br/>
<h6><center><b>Can't Find the book you were looking for? Were you looking for these?</b></center></h6>
<br/>
<table class="striped bordered centered">
<thead class="light-blue lighten-1">
<tr><th>Book Title</th><th>Author</th><th>Publisher</th><th>More Details</th><th>Request Book</th>></tr>
</thead>
<tbody>
<tr ng-repeat="books in requestBooks">
<td>{{books.volumeInfo.title}}</td>
<td><span ng-repeat="author in books.volumeInfo.authors">{{author}}, </span></td>
<td>{{books.volumeInfo.publisher}}</td>
<td><button ng-click="bookMore($index)">More Details</button></td>
<td><button ng-click="request($index)">Request Book</button></td>
</tr>
</tbody>
</table>
</div>
</div>
<br><br>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
</body>