-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.htm
122 lines (121 loc) · 3.29 KB
/
popup.htm
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<title>Active Tabs</title>
<link rel="stylesheet" href="assets/popup.css" type="text/css" media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="tools">
<input class="search tab" placeholder="Search active tabs... ? to toggle help" />
<span class="expand">Expand All</span>
|
<span class="collapse">Collapse All</span>
</div>
<div id="content">
</div>
<script type="text/javascript" src="assets/jquery.min.2.2.0.js"></script>
<script type="text/javascript" src="assets/popup.js"></script>
<div id="confirm" class="modal-box">
<header>
<a href="#" class="js-modal-close close">×</a>
<h3>Confirm</h3>
</header>
<div class="modal-body">
<p>Are you sure you want to close the following:</p>
<p id="name"></p>
</div>
<footer>
<a href="#" class="btn js-modal-close">Cancel</a>
<a href="#" class="btn js-modal-confirm">Close <span id="type">Tab</span></a>
</footer>
</div>
<div id="help" class="modal-box">
<header>
<a href="#" class="js-modal-close close">×</a>
<h3>
<span class="help_tab active" data-tab="keys">Keyboard Shortcuts</span>
|
<span class="help_tab" data-tab="tips">Tips</span>
|
<span class="help_tab" data-tab="keywords">Keywords</span>
</h3>
</header>
<div class="modal-body">
<table class="help_tabs" id="help_tab_keys">
<tr>
<th>ENTER</th>
<td>jump to the highlighted tab</td>
</tr>
<tr>
<th>ARROW UP</th>
<td>select previous tab, will loop to end</td>
</tr>
<tr>
<th>ARROW DOWN</th>
<td>select next tab, will loop to beginning</td>
</tr>
<tr>
<th>S</th>
<td>jump to the search box, can minimize tab results this way</td>
</tr>
<tr>
<th>X</th>
<td>close overlays, esc seems to be reserved</td>
</tr>
<tr>
<th>C</th>
<td>close the highlighted tab, will prompt for confirmation</td>
</tr>
<tr>
<th>M</th>
<td>mute/unmute the highlighted tab</td>
</tr>
<tr>
<th>P</th>
<td>pin/unpin the highlighted tab</td>
</tr>
<tr>
<th>?</th>
<td>will open/close this popup</td>
</tr>
</table>
<div class="help_tabs" id="help_tab_tips" style="display:none;">
<ol>
<li>Using the search box you can quickly narrow your tab list down.</li>
<li>Searching for <span class="help_tab" data-tab="keywords">keywords</span> can help narrow it further</li>
</ol>
</div>
<table class="help_tabs" id="help_tab_keywords" style="display:none;">
<tr>
<th>_audio</th>
<td>will show all tabs currently playing audio</td>
</tr>
<tr>
<th>_muted</th>
<td>will show all muted tabs</td>
</tr>
<tr>
<th>_pinned</th>
<td>will show all pinned tabs</td>
</tr>
<tr>
<th>_highlighted</th>
<td>will show all highlighted tabs</td>
</tr>
<tr>
<th>_incognito</th>
<td>will show all incognito tabs</td>
</tr>
<tr>
<th></th>
<td class="notes">NOTE: searching for keywords will also show any tab which meets the search criteria, its not perfect, click a keyword for an example.</td>
</tr>
</table>
</div>
<footer>
<a href="#" class="btn js-modal-confirm">Close</a>
</footer>
</div>
</body>
</html>