-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgateway.html
More file actions
70 lines (63 loc) · 2.95 KB
/
Copy pathgateway.html
File metadata and controls
70 lines (63 loc) · 2.95 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!-- AIFVS-ARTIFACT: Universal Meta Loader -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loading Repository…</title>
<!-- 🔹 UNIVERSAL META BLOCK -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="index, follow">
<meta name="author" content="FireGem Systems">
<meta name="description" content="Universal loader for FireGem, MercWar, CVBGOD, and GGUF repositories. Auto-detects repo root and redirects to Constellation LIVE.">
<meta name="keywords" content="FireGem, MercWar, CVBGOD, GGUF, MSVC, LLM, AI, compiler, optimization, Constellation, AVIS, AIFVS">
<meta name="ACK" content="schema.json">
<meta name="AVIS" content="artifact-loader">
<meta name="FVS" content="universal-meta">
<meta property="og:title" content="FireGem Universal Loader">
<meta property="og:description" content="Auto-detects repo root and redirects to Constellation LIVE.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://mercwar.github.io/assets/firegem-banner.png">
<meta property="og:url" content="https://mercwar.github.io/Constellation/LIVE/">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="FireGem Universal Loader">
<meta name="twitter:description" content="Universal redirect system for FireGem, MercWar, CVBGOD, and GGUF.">
<meta name="twitter:image" content="https://mercwar.github.io/assets/firegem-banner.png">
<style>
body {
background: #000;
color: #0ff;
font-family: monospace;
text-align: center;
padding-top: 20vh;
}
</style>
</head>
<body>
<h2>Loading Repository…</h2>
<script>
// -----------------------------------------
// 1. DETECT REPO NAME FROM URL PATH
// -----------------------------------------
const pathParts = window.location.pathname.split("/").filter(Boolean);
const repoName = pathParts.length >= 2 ? pathParts[pathParts.length - 2] : "mercwar";
// -----------------------------------------
// 2. LOCAL MODE SWITCH
// -----------------------------------------
const LOCAL_MODE = false;
const gitBase = LOCAL_MODE ? "../../" : "https://mercwar.github.io/";
// -----------------------------------------
// 3. CLEAN URL JOINER (NO DOUBLE SLASHES)
// -----------------------------------------
const joinURL = (base, segment) =>
base.replace(/\/+$/, "") + "/" + segment.replace(/^\/+/, "");
// -----------------------------------------
// 4. BUILD FINAL REDIRECT URL
// -----------------------------------------
const redirectURL = joinURL(gitBase, "Constellation/LIVE/index.html") + `?index=${repoName}`;
// -----------------------------------------
// 5. REDIRECT TO LIVE HOST
// -----------------------------------------
window.location.href = redirectURL;
</script>
</body>
</html>