Repository navigation
Expand file tree
/
Copy pathadmin.html
More file actions
42 lines (40 loc) · 1.67 KB
/
Copy pathadmin.html
File metadata and controls
42 lines (40 loc) · 1.67 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; connect-src https://api.github.com; base-uri 'none'; form-action 'none'">
<title>Projects admin</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="admin">
<header class="top">
<a class="admin-link" href="index.html">← View site</a>
<p class="mode">Editing mode: click any text to edit it, drag ⠿ to reorder.</p>
<div class="card" id="tokenBox">
<div id="tokenNew">
<label for="tok">GitHub fine-grained token (one repo, Contents read/write)</label>
<input id="tok" type="password" autocomplete="off" placeholder="github_pat_...">
<div class="bar"><button class="primary" id="saveTok">Save token and load</button></div>
</div>
<div id="tokenHave" hidden>
<span class="hint">A token is stored on this device only.</span>
<div class="bar">
<button id="reload">Reload from GitHub</button>
<button class="danger" id="forget">Forget token</button>
</div>
</div>
</div>
</header>
<div id="status" role="status">Paste your token to start.</div>
<main id="editor"></main>
<div class="savebar" id="saveBar" hidden>
<div class="savebar-in">
<button class="primary" id="save" disabled>Save to GitHub</button>
<span class="hint">The public site updates about a minute after saving.</span>
</div>
</div>
<script src="admin.js"></script>
</body>
</html>