-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (51 loc) · 1.39 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
<!doctype html>
<html lang="en">
<head>
<title>Book API</title>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet" />
</head>
<body>
<h1>Book API</h1>
<div id="app"></div>
<button id="knapp" title="Read data from API">Read data</button>
<div class="box">
<div>
<label for="author">Author</label>
<input type="text" id="author" />
</div>
<div>
<label for="title">Title</label>
<input type="text" id="title" />
</div>
<div>
<label for="remove">Id</label>
<input type="text" id="remove" />
</div>
<div>
<button id="addButton" title="Add">Add</button>
<button id="removeButton" title="Remove">Remove</button>
<button id="update" title="Update">Update</button>
</div>
</div>
<div>
<h3>API Messages</h3>
<p>
<strong>Status: </strong>
<span id="status"></span>
</p>
<p>
<strong>Message: </strong>
<span id="message"></span>
</p>
<p>
<strong>Attempts: </strong>
<span id="attempts"></span>
</p>
</div>
<h2>List of books</h2>
<ol id="booklist">
</ol>
<script src="book.js" type="module"></script>
</body>
</html>