-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) · 1.12 KB
/
index.html
File metadata and controls
44 lines (44 loc) · 1.12 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>SuperOffice Tools Launcher</title>
<style>
body {
font-family: sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background: #1e1e1e;
color: #ccc;
}
a.btn {
padding: 12px 24px;
background: #0078d4;
color: white;
text-decoration: none;
border-radius: 4px;
font-size: 16px;
}
a.btn:hover {
background: #005fa3;
}
</style>
</head>
<body>
<h1>SuperOffice Tools</h1>
<script>
const params = new URLSearchParams(window.location.search);
const state = params.get("state");
const code = params.get("code");
const query = new URLSearchParams();
if (state) query.set("state", state);
if (code) query.set("code", code);
const qs = query.toString();
window.location.href = "vscode://ejfasting.superoffice-tools/" + (qs ? "?" + qs : "");
</script>
</body>
</html>