-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (36 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<title>Hello Ding!</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="main.js"></script>
</head>
<body>
<ul class="tabbar">
<li class="tab selected">
<div class="title">One</div>
<div class="close-icon"></div>
</li>
<li class="tab">Two</li>
<li class="tab">Three</li>
</ul>
<script>
new Tabs( document.getElementsByClassName('tabbar')[0] );
function eventFire(el, etype){
if (el.fireEvent) {
(el.fireEvent('on' + etype));
} else {
var evObj = document.createEvent('MouseEvents');
evObj.initEvent(etype);
el.dispatchEvent(evObj);
}
}
// function ondrop ( evt ) {
// console.log('here');
// console.log( evt );
// }
// eventFire( $('.tabbar')[0], 'mousedown' );
</script>
</body>
</html>