-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (50 loc) · 2.1 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
<!DOCTYPE html>
<html>
<head>
<title>Hello App!</title>
<style type="text/css">
#a1::before {
content: "t";
}
</style>
<script type="text/javascript">
document.onload = run();
function test(e) {
var evt = e ? e : window.event;
var d = document.createElement("div");
var t = document.createTextNode(evt.type+" " +evt.target);
d.appendChild(t);
document.getElementById("d1").appendChild(d);
}
function run() {
var d = document.createElement("div");
var t = document.createTextNode("hello");
d.appendChild(t);
document.getElementById("d1").appendChild(d);
}
</script>
</head>
<body>
<button>one</button>
<p>Hello World!</p>
<button>two</button>
<div>
<label id="endTimeLabel">Wake at</label>
<input role="textbox" class="timeInput" type="time" id="endTime" style="margin-left: 33px;" aria-labelledby="endTimeLabel" onchange="onTimeChange()" onblur="endTimeBlur();"/>
</div>
<button>three</button>
<div id="d1">
<select title="Entry" type="text" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);" onkeypress="test(event);" onchange="test(event);">
<option> Apple </option>
<option> Cherry</option>
<option> Pumpkin</option>
</select>
<input title="Entry" type="text" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);" onkeypress="test(event);" onchange="test(event);"/>
<button onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);" onkeypress="test(event);"> Test </button>
<a aria-label="jason" tabindex="0" href="#" id="a1" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);" onkeydown="test(event);" aria-haspopup="true" onkeypress="test(event);">op</a>
<h3>Log area</h3>
<div id="d1" aria-live="polite" >
</div>
</div>
</body>
</html>