summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;