-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpopup.jhtml
30 lines (26 loc) · 1.32 KB
/
popup.jhtml
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
<h1>xTab</h1>
<form>
<h2>Maximum Tabs:</h2>
<select id="max" name="max">
{% var hasMatch %}
{% var match %}
{% for (var key in args.options) %}
{% match = max == key; %}
{% if (match) %}
{% hasMatch = true %}
{% end %}
<option value="{{ key }}"{% if (match) %} selected{% end %}>{{ options[key] }}</option>
{% end %}
<option value="other"{% if (!hasMatch) %} selected{% end %}>Other...</option>
</select>
<input type="number" name="max" id="input-max"{% if (!hasMatch) %} style="display: block;" value="{{ max }}"{% end %}>
<h2>Close existing tab:</h2>
<label><input type="radio" name="algo" value="used"{% if (algo == 'used') %} checked{% end %}>Least recently used</label>
<label><input type="radio" name="algo" value="accessed"{% if (algo == 'accessed') %} checked{% end %}>Least accessed</label>
<label><input type="radio" name="algo" value="oldest"{% if (algo == 'oldest') %} checked{% end %}>Oldest</label>
<h2>Block new tab:</h2>
<label><input type="radio" name="algo" value="block"{% if (algo == 'block') %} checked{% end %}>Block new tabs from opening</label>
</form>
<div class="donate">
<iframe src="https://donatefor.me/craig" width="100%" height="187" frameborder="0"></iframe>
</div>