summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-01 12:50:13 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-01 12:50:13 +0200
commitd1b6c589cef0c8957d8b2e3522106e30035bab97 (patch)
treea481be9fec786f42cce2976516a02a99db739fec
parentc2e1a991820a880907b6da2da7210c27bf608613 (diff)
downloadbridge-d1b6c589cef0c8957d8b2e3522106e30035bab97.tar.gz
bridge-d1b6c589cef0c8957d8b2e3522106e30035bab97.zip
dashboard: show lmcd and more
-rw-r--r--index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.html b/index.html
index d3e66aa..13cd1f3 100644
--- a/index.html
+++ b/index.html
@@ -33,10 +33,13 @@
});
$("#update-form").submit(function(e) {
let name = $("input:first").val();
- $.get("/api/player/name/" + name).done(function() {
+ $.get("/api/player/name/" + name).done(function(player) {
$("#updates").append(
$("<li>")
- .text(name + ": found")
+ .text(name + " (" + player.region + ")" + ": " +
+ "found in " + player.source + ", " +
+ "last update " + player.last_update
+ )
.css("color", "green")
);
client.subscribe("/topic/" + name, (msg) => {