-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04.event-breakpoints.html
More file actions
34 lines (29 loc) · 1.04 KB
/
04.event-breakpoints.html
File metadata and controls
34 lines (29 loc) · 1.04 KB
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
<html>
<head>
<script src="resource/jquery.js"></script>
<style>
button {
display: block;
margin: 10px;
}
</style>
</head>
<body>
<h1>Event breakpoints</h1>
<ul>
<li>Add breakpoint on event</li>
<li>Add breakpoint on global event</li>
<li>Find the event listener code for an element</li>
<li>Not easy to locate the code when some framework is used (Try black box the framework script)</li>
</ul>
<button id="click-to-expand">Click me to add a item</button>
<button id="click-to-remove">Click me to move a item</button>
<button id="click-to-color">Click me to change item's color</button>
<button id="click-to-expand2">Click me to add a item(Jquery)</button>
<button id="click-to-remove2">Click me to move a item(Jquery)</button>
<button id="click-to-color2">Click me to change item's color(Jquery)</button>
<ul id="panel">
</ul>
<script src="04.event-breakpoints.js"></script>
</body>
</html>