-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (82 loc) · 2.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<body style="margin:0px;"><div style="background-color:#C8C8C8; left:0px; top:0px; width:100%; height:100%; padding:2%;">
<table style="width:100%;">
<tr>
<td>Input Text:</td>
<td><input type="text" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>TextArea (rows=1):</td>
<td><textarea rows="1" style="resize:none"></textarea></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td style="width:30%;">Input Email:</td>
<td style="width:40%;"><input type="email" /></td>
<td style="width:30%;"><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input URL:</td>
<td><input type="url" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Password:</td>
<td><input type="password" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Number:</td>
<td><input type="number" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Range:</td>
<td><input type="range" min="-10" max="10" step="0.5" oninput="RangeChanged(this)"/> <span id="RangeResult"></span></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Date:</td>
<td><input type="date" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Time:</td>
<td><input type="time" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Datetime-local:</td>
<td><input type="datetime-local" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Month:</td>
<td><input type="month" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Week:</td>
<td><input type="week" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input Color:</td>
<td><input type="color" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
<tr>
<td>Input File:</td>
<td><input type="file" /></td>
<td><input type="button" value="Send" onclick="Alert(event)" /></td>
</tr>
</table>
</div></body>
<script>
function Alert(e){
alert(e.target.parentElement.parentElement.getElementsByTagName("input")[0].value);
}
function RangeChanged(Range){
document.getElementById("RangeResult").innerHTML = "Value = "+Range.value;
}
</script>