diff options
author | Aki <please@ignore.pl> | 2021-04-05 22:50:30 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-04-05 22:50:30 +0200 |
commit | 94e69f0b64b08d0a18cce0572efe1821393b884d (patch) | |
tree | b9f0d4aa080cb3a9c0f9c653a371795adcba8048 | |
parent | 7d50c39599d24098fdaa412bc53a57a2f6adf5de (diff) | |
download | derelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.zip derelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.tar.gz derelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.tar.bz2 |
Added killmail opening
-rw-r--r-- | derelict.js | 2 | ||||
-rw-r--r-- | 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}/`) } } @@ -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; |