-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
46 lines (41 loc) · 2.01 KB
/
options.html
File metadata and controls
46 lines (41 loc) · 2.01 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
35
36
37
38
39
40
41
42
43
44
45
46
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Escape Hatch Options</title>
<style>
:root{ --bg:#f7fafc; --card:#ffffff; --accent:#2563eb; --muted:#6b7280 }
html,body{height:100%}
body{font-family:system-ui, -apple-system, 'Segoe UI', Roboto; background:var(--bg); margin:0; padding:20px}
.container{max-width:900px;margin:0 auto}
h1{font-size:18px;margin:0 0 8px}
.controls{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.controls label{display:flex;align-items:center;gap:8px;font-weight:600}
.phrase{display:flex;gap:8px;margin:6px 0}
.phrase input[type="text"]{flex:1;padding:8px;border-radius:8px;border:1px solid #e6edf3;background:#fff}
.phrase button{background:#ef4444;border:0;color:#fff;padding:8px 10px;border-radius:8px;cursor:pointer}
.actions{margin-top:12px;display:flex;gap:8px}
.actions button{background:var(--accent);color:#fff;border:0;padding:8px 12px;border-radius:8px;cursor:pointer;font-weight:600}
.small{color:var(--muted);font-size:13px;margin-top:8px}
</style>
</head>
<body>
<div class="container">
<h1>Escape Hatch</h1>
<p class="small">Replacements run only on <code>*.gov</code> pages. No data is collected. See <a href="https://osc.gov/Services/Pages/HatchAct.aspx" target="_blank">osc.gov</a> for more information on the Hatch Act.</p>
<div class="controls">
<label><input type="checkbox" id="enabled" /> Enable replacements</label>
</div>
<h2 style="margin-top:12px">Custom replacements</h2>
<div id="list"></div>
<div class="actions">
<button id="add">Add replacement</button>
<button id="save">Save</button>
<button id="reset">Reset to defaults</button>
</div>
<div class="small">Defaults are pre-populated for convenience. Edit or remove as you wish.</div>
</div>
<script src="options.js"></script>
</body>
</html>