summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-04-05 22:50:30 +0200
committerAki <please@ignore.pl>2021-04-05 22:50:30 +0200
commit94e69f0b64b08d0a18cce0572efe1821393b884d (patch)
treeb9f0d4aa080cb3a9c0f9c653a371795adcba8048
parent7d50c39599d24098fdaa412bc53a57a2f6adf5de (diff)
downloadderelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.zip
derelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.tar.gz
derelict-prototype-94e69f0b64b08d0a18cce0572efe1821393b884d.tar.bz2
Added killmail opening
-rw-r--r--derelict.js2
-rw-r--r--style.css14
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;