-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
44 lines (43 loc) · 1.11 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
width: 300px;
font-family: "Helvetica", "Arial", sans-serif;
font-size: 16px;
}
div a {
cursor: pointer;
}
div a:hover {
text-decoration: underline;
}
.mi {
margin: 10px 0;
}
</style>
</head>
<body>
<div>
<div class='mi'><a id='javascript_debug'>Toggle JS debugging</a></div>
<div class='mi'><a id='css_debug'>Toggle CSS debugging</a></div>
<div class='mi'><a id='easy_info'>Toggle easy node info</a></div>
</div>
<script type='text/javascript' src='jquery-1.5.2-min.js'></script>
<script type='text/javascript'>
var bg = chrome.extension.getBackgroundPage();
$(document).ready(function () {
$('#javascript_debug').click(function (event) {
bg.toggle_js_debug();
});
$('#css_debug').click(function (event) {
bg.toggle_css_debug();
});
$('#easy_info').click(function (event) {
bg.toggle_easy_info();
});
});
</script>
</body>
</html>