From 94e69f0b64b08d0a18cce0572efe1821393b884d Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 5 Apr 2021 22:50:30 +0200 Subject: Added killmail opening --- derelict.js | 2 ++ style.css | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/derelict.js b/derelict.js index 4a166e7..2bb47c7 100644 --- a/derelict.js +++ b/derelict.js @@ -57,6 +57,8 @@ class Wreck { this.domElement.appendChild(iconElement) this.point.position.copy(position) this.point.add(object2d) + + this.domElement.onclick = () => window.open(`https://zkillboard.com/kill/${this.killmail.killmail_id}/`) } } diff --git a/style.css b/style.css index bd1cb01..bbeb91b 100644 --- a/style.css +++ b/style.css @@ -3,14 +3,24 @@ body { } .wreck { - width: 18px; - fill: #8886; + width: 20px; + cursor: pointer; + padding: 2px; + fill: none; + stroke: #eee; + stroke-width: 0.4; + stroke-dasharray: 1; } .wreck.killed { + stroke: none; fill: #eee; } +.wreck:hover { + border: 2px solid #eee; +} + #wrapper { display: flex; width: 100vw; -- cgit v1.1