-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·32 lines (30 loc) · 1006 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>ISBN Handlebars</title>
</head>
<body>
<form>
<input type="text" id="title" name="title" value="" placeholder="Please enter a Book Title">
<button type="submit">Find Book</button>
</form>
<ul class="books">
<!-- // Step 1: Create template -->
<script id="book" type="text/x-handlebars-template">
<li>
<h2>Author(s): {{authors}}</h2>
<h2>Title: {{title}}</h2>
<p>Description: {{description}}</p>
<img src="{{imageLinks.thumbnail}}"><br>
<a href="{{previewLink}}">Preview Book</a>
</li>
</script>
</ul>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script src="js/handlebars-v4.7.6.js"></script>
<script src="js/main.js"></script>
</body>
</html>