diff options
author | Aki <please@ignore.pl> | 2021-04-16 01:23:34 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-04-16 01:23:34 +0200 |
commit | 2cc04321c53e0bfed7ea4eccb2a00402322aa8ab (patch) | |
tree | 238e13e12c26728f0ea9684aa08b318539a3858d | |
parent | 49497f381003f51eb146ff60176497d57f5fa7ca (diff) | |
download | derelict-prototype-2cc04321c53e0bfed7ea4eccb2a00402322aa8ab.zip derelict-prototype-2cc04321c53e0bfed7ea4eccb2a00402322aa8ab.tar.gz derelict-prototype-2cc04321c53e0bfed7ea4eccb2a00402322aa8ab.tar.bz2 |
Added stub go server
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | derelict.js | 2 | ||||
-rw-r--r-- | index.html | 30 |
3 files changed, 2 insertions, 31 deletions
@@ -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> |