-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.44 KB
/
Copy pathindex.html
File metadata and controls
40 lines (40 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Download plugin.md - Gitbank</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; background: #0d1117; color: #e6edf3; }
.box { text-align: center; padding: 2rem; }
.logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
p { color: #8b949e; margin: 0.5rem 0; }
a { color: #58a6ff; }
</style>
</head>
<body>
<div class="box">
<div class="logo">Gitbank</div>
<p>Downloading <strong>plugin.md</strong>...</p>
<p>If it does not start, <a id="fallback" href="plugin.md">click here</a>.</p>
</div>
<script>
(async () => {
try {
const res = await fetch("https://raw.githubusercontent.com/gitbankio/plugin/main/plugin.md");
const text = await res.text();
const blob = new Blob([text], { type: "text/plain" });
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "plugin.md";
document.body.appendChild(a);
a.click();
setTimeout(() => { URL.revokeObjectURL(url); a.remove(); }, 1000);
} catch (e) {
document.getElementById("fallback").click();
}
})();
</script>
</body>
</html>