-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (36 loc) · 1.08 KB
/
index.html
File metadata and controls
39 lines (36 loc) · 1.08 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ofa playground</title>
<script src="https://cdn.jsdelivr.net/gh/kirakiray/ofa.js/dist/ofa.min.js#debug"></script>
<link
rel="stylesheet"
href="https://core.noneos.com/nos-tool/css/palette.css"
/>
<link
rel="stylesheet"
href="https://core.noneos.com/nos-tool/css/theme.css"
/>
</head>
<nos-version auto-install></nos-version>
<body>
<script type="module">
const load = lm(import.meta);
$("nos-version").on("installed", () => {
// 判断并重定向
const params = new URLSearchParams(location.search);
const redirect = params.get("redirect");
if (redirect === "w") {
const data = params.get("d");
if (!data) {
return;
}
location.href = `./code/w.html?d=${data}`;
}
});
await load("https://core.noneos.com/nos-tool/comps/nos-version.html");
</script>
</body>
</html>