-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (44 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Example</title>
<meta name="description" content="Example">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="/main.css">
</head>
<body>
<div id="books">
<form id="addBook" action="#">
<label for="coverImage">CoverImage: </label><input id="coverImage" type="file">
<label for="title">Title: </label><input id="title" type="text">
<label for="author">Author: </label><input id="author" type="text">
<label for="releaseDate">Release date: </label><input id="releaseDate" type="text">
<label for="keywords">Keywords: </label><input id="keywords" type="text">
<button id="add" class="btn btn-primary">Add</button>
</form>
</div>
<script id="bookTemplate" type="text/template">
<img src="{{ coverImage }}">
<ul>
<li>{{ title }}</li>
<li>{{ author }}</li>
<li>{{ releaseDate }}</li>
<li>{{ keywords }}</li>
</ul>
<button class="delete btn btn-danger">Delete</button>
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.16/backbone.localStorage-min.js"></script>
<script src="/js/models/book.js"></script>
<script src="/js/collections/library.js"></script>
<script src="/js/views/book.js"></script>
<script src="/js/views/library.js"></script>
<script src="/js/app.js"></script>
</body>
</html>