-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (46 loc) · 1.11 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
form > input, form > label {
display: block;
}
iframe {
width: 50%;
height: 10em;
display: block;
float: right;
}
</style>
</head>
<body>
<iframe name="ajax-result"></iframe>
<form id="regist-user" method="POST"
target="ajax-result" action="/user.json">
<h2>regist</h2>
<label>username: <input name="user" type="text"></label>
<input type="submit">
</form>
<form id="answer-question" method="POST"
target="ajax-result" action="/answer.json">
<h2>answer</h2>
<label>username:
<input name="user" type="text">
</label>
<label>answer:
<input name="answer" min="0" max="3" type="number">
</label>
<input name="id" min="0" type="number">
<input type="submit">
</form>
<form id="get-question" method="GET"
target="ajax-result" action="/question.json">
<h2>get question</h2>
<label>username:
<input name="user" type="text">
</label>
<input type="submit">
</form>
</body>
</html>