-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (41 loc) · 890 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
#div1{
text-decoration: none;
background-color: green;
}
</style>
</head>
<body>
<button id="btn">click</button>
<div id="div1" class="apple">
<p id="p1">saakdjf</p>
<p class="aa">asgeer</p>
<h1 class="aa">q4y5</h1>
</div>
<ul id="ul1">
<li class="aa">jerijqw</li>
<li class="aa">asefew</li>
<li class="aa">regtwe</li>
</ul>
<script src="myLibrary.js"></script>
<script>
var oBtn = document.getElementById('btn');
var oUl = document.getElementById('ul1');
var oDiv = document.getElementById('div1');
var oP = document.getElementById('p1');
addEvent();
function addEvent(elem, type, handler){
var fn = function(){
}
if(elem.addEventListener){
return elem.addEventListener(type, fn, false);
}
}
</script>
</body>
</html>