Update index.html
Browse files- index.html +59 -18
index.html
CHANGED
|
@@ -1,19 +1,60 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Autonomous Compute Arbitrage Gateway</title>
|
| 7 |
+
<style>
|
| 8 |
+
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f172a; color: #f8fafc; padding: 20px; display: flex; justify-content: center; }
|
| 9 |
+
.card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; max-width: 500px; width: 100%; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
|
| 10 |
+
h2 { margin-top: 0; color: #38bdf8; font-size: 1.4rem; }
|
| 11 |
+
label { display: block; margin-top: 15px; font-weight: 600; color: #94a3b8; font-size: 0.9rem; }
|
| 12 |
+
select, input { width: 100%; padding: 10px; margin-top: 6px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: #fff; box-sizing: border-box; }
|
| 13 |
+
button { width: 100%; margin-top: 20px; padding: 12px; background: #0284c7; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; }
|
| 14 |
+
button:hover { background: #0369a1; }
|
| 15 |
+
.output { margin-top: 20px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 12px; font-family: monospace; font-size: 0.85rem; color: #4ade80; white-space: pre-wrap; word-break: break-all; }
|
| 16 |
+
</style>
|
| 17 |
+
</head>
|
| 18 |
+
<body>
|
| 19 |
+
<div class="card">
|
| 20 |
+
<h2>⚡ Liquid Compute Dispatcher</h2>
|
| 21 |
+
<p style="font-size: 0.85rem; color: #94a3b8;">Decentralized GPU Compute Allocation & Settlement Router</p>
|
| 22 |
+
|
| 23 |
+
<label for="gpu">Select Compute Hardware</label>
|
| 24 |
+
<select id="gpu">
|
| 25 |
+
<option value="NVIDIA H100">NVIDIA H100 (Arbitrage Spread: $2.70/hr)</option>
|
| 26 |
+
<option value="NVIDIA A100">NVIDIA A100 (Arbitrage Spread: $1.68/hr)</option>
|
| 27 |
+
<option value="RTX 4090">RTX 4090 (Arbitrage Spread: $0.57/hr)</option>
|
| 28 |
+
</select>
|
| 29 |
+
|
| 30 |
+
<label for="hours">Duration (Hours): <span id="hrs-val">5</span> hrs</label>
|
| 31 |
+
<input type="range" id="hours" min="1" max="168" value="5" oninput="document.getElementById('hrs-val').innerText = this.value">
|
| 32 |
+
|
| 33 |
+
<button onclick="dispatchJob()">🚀 Instant Quote & Dispatch Node</button>
|
| 34 |
+
|
| 35 |
+
<div id="result" class="output" style="display:none;"></div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<script>
|
| 39 |
+
async function dispatchJob() {
|
| 40 |
+
const gpu = document.getElementById('gpu').value;
|
| 41 |
+
const hours = document.getElementById('hours').value;
|
| 42 |
+
const out = document.getElementById('result');
|
| 43 |
+
out.style.display = 'block';
|
| 44 |
+
out.innerText = 'Connecting to Cloudflare Sentinel...';
|
| 45 |
+
|
| 46 |
+
try {
|
| 47 |
+
const res = await fetch("https://compute-arbitrage-engine.sarkarirojgarofficials.workers.dev/", {
|
| 48 |
+
method: "POST",
|
| 49 |
+
headers: { "Content-Type": "application/json" },
|
| 50 |
+
body: JSON.stringify({ gpu: gpu, hours: Number(hours) })
|
| 51 |
+
});
|
| 52 |
+
const data = await res.json();
|
| 53 |
+
out.innerText = JSON.stringify(data, null, 2);
|
| 54 |
+
} catch (err) {
|
| 55 |
+
out.innerText = 'Error: ' + err.message;
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
</script>
|
| 59 |
+
</body>
|
| 60 |
</html>
|