-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
37 lines (31 loc) · 755 Bytes
/
example.html
File metadata and controls
37 lines (31 loc) · 755 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="queue-event.js"></script>
<script>
var EventManager = new QueueEvent();
EventManager.addListener('after_apply_point',10,function(param1,param2){
alert(param1);
alert(param2);
})
EventManager.addListener('after_apply_point',1,function(){
alert(2);
})
EventManager.addListener('before_apply_point',10,function(){
alert(3);
})
EventManager.addListener('before_apply_point',10,function(){
alert(4);
})
EventManager.addListener('before_apply_point',11,function(){
alert(1);
})
EventManager.fire('before_apply_point');
EventManager.fire('after_apply_point',[101,102]);
</script>
</head>
<body>
</body>
</html>