summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--derelict.js2
-rw-r--r--index.html30
3 files changed, 2 insertions, 31 deletions
diff --git a/.gitignore b/.gitignore
index 8691330..265df06 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
__pycache__
*.json
+derelict
diff --git a/derelict.js b/derelict.js
index 683e509..c76e0fc 100644
--- a/derelict.js
+++ b/derelict.js
@@ -223,7 +223,7 @@ function init() {
let icon = loadWreckIcon()
- fetch(url.searchParams.get("related") + ".json")
+ fetch(url.searchParams.get("id") + ".json")
.then(response => response.json())
.then(killmails => {
const url = km => `${ESI}/killmails/${km.id}/${km.hash}/?datasource=tranquility`
diff --git a/index.html b/index.html
deleted file mode 100644
index 345aa9a..0000000
--- a/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!doctype html>
-<html lang="en">
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-<link rel="stylesheet" type="text/css" href="style.css">
-<title>Derelict</title>
-<body>
-<div id="wrapper">
- <div id="container"></div>
- <div id="toolbar">
- <h1>Derelict</h1>
- <p>LMB and drag in space to rotate camera.<br>RMB and drag in space to move camera.
- <p>LMB wreck to open killmail.<br>RMB wreck to focus camera.
- <p>Address must contain <code>related</code> parameter to show some wrecks.
- <br>Currently there is no service that would offer an API to acquire battle reports, so only battles that I
- uploaded manually are available as of now:
- <ul>
- <li><a href="?related=30002016_202012141900">Random nano gang</a>
- <li><a href="?related=30002537_202104060300">Battle in Amamake</a>
- <li><a href="?related=31000376_202103301800">Another nano gang</a>
- <li><a href="?related=31001761_202012040000">Foxholers eviction defense</a>
- </ul>
- <p>I plan to address this issue.
- <h2>Grid</h2>
- <select id="grid"></select>
- <h2>Timeline</h2>
- <input type="range" id="timeline">
- </div>
-</div>
-<script type="module" src="derelict.js"></script>