-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (41 loc) · 1.19 KB
/
index.html
File metadata and controls
52 lines (41 loc) · 1.19 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
<!DOCTYPE html>
<html lang="ee">
<head>
<meta charset="UTF-8">
<title>Raamatute haldamise veebirakendus</title>
<script type="text/javascript" src="apiparingud.js"></script>
<script>
window.onload=function(){
listiraamatud();
const frontForm = document.getElementById("frontform");
frontForm.addEventListener("submit", handleFormSubmit);
const otsingForm = document.getElementById("otsinguform");
otsingForm.addEventListener("submit", handleFormSubmit);
}
</script>
</head>
<body>
Raamatu alla laadimine Gutenbergist:
<form action="https://hs9-flask-api-raamatud.azurewebsites.net/raamatud/" id="frontform">
<label for="raamatu_id">
<strong>Raamatu id:</strong>
<input type="text" name="raamatu_id" id="raamatu_id">
</label>
<input type="submit" value="Lae alla raamat">
</form>
<br />
Raamatust sõne otsimine:
<form action="https://hs9-flask-api-raamatute-otsing.azurewebsites.net/raamatu_otsing" id="otsinguform">
<label for="raamatu_id">
<strong>Sõne:</strong>
<input type="text" name="sone" id="sone">
</label>
<input type="submit" value="Otsi raamatust">
</form>
<br />
<div id="tulemus"></div>
<br />
Raamatud:
<div id="raamatud_result"></div>
</body>
</html>