-
Notifications
You must be signed in to change notification settings - Fork 4
/
popup.html
47 lines (47 loc) · 2.68 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
44
45
46
47
<!doctype html>
<html>
<head>
<title>InjectionTools</title>
<link rel="stylesheet" type="text/css" href="libraries/jqueryui/css/dot-luv/jquery-ui-1.10.4.custom.min.css">
<link rel="stylesheet" type="text/css" href="libraries/codemirror/codemirror.css">
<link rel="stylesheet" type="text/css" href="libraries/codemirror/theme.pastel-on.dark.css">
<link rel="stylesheet" type="text/css" href="css/popup.css">
<script src="js/jquery-1.10.2.min.js"></script>
<script src="libraries/jqueryui/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="js/knockout-3.0.0.js"></script>
<script src="js/popup.js"></script>
<script src="libraries/codemirror/codemirror.js"></script>
</head>
<body>
<script type="text/html" id="t1">
<div class="group">
<h3>
<a href="#" data-bind="inline: name" class="editable"></a>
<a href="#" class="title_button ui-corner-all ui-state-default" data-bind="click: deleteme">
<span class="ui-icon ui-icon-trash"></span><span>Delete</span>
</a>
<a href="#" class="title_button ui-corner-all ui-state-default" data-bind="click: toggleActive">
<span class="ui-icon ui-icon-check" data-bind="visible: active"></span><span data-bind="visible: active">Active</span>
<span class="ui-icon ui-icon-cancel" data-bind="visible: (!active())"></span><span data-bind="visible: (!active())">Inactive</span>
</a>
<a href="#" class="title_button ui-corner-all ui-state-default" data-bind="click: run">
<span class="ui-icon ui-icon-play"></span><span>Run</span>
</a>
</h3>
<div>
<textarea data-bind="text: code, attr: { id: id }"></textarea>
</div>
</div>
</script>
<div data-bind="template: { name: 't1', foreach: items }, accordionite: items"></div>
<div data-bind="visible: items().length > 0" class="button_separator"></div>
<button data-bind="click: add" id="add_script">Add Script</button>
<span data-bind="visible: items().length > 0">
<button id="run_scripts">Run Scripts</button>
<button data-bind="visible: scope() == 'local'" id="local_scope" class="fright">Current tab</button>
<button data-bind="visible: scope() == 'global'" id="global_scope" class="fright">All tabs</button>
<label class="fright">Scope: </label>
</span>
</div>
</body>
</html>