summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-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) => {