From 4cd3be430d0cde09093822ae749c95903fe8c719 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 20 Oct 2013 04:47:01 -0700 Subject: show more character and item data on kills --- web/static/js/kill.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'web/static') diff --git a/web/static/js/kill.js b/web/static/js/kill.js index 67f819d..57c0a3f 100644 --- a/web/static/js/kill.js +++ b/web/static/js/kill.js @@ -24,6 +24,27 @@ window.addEvent('domready', function() { })); div.appendText(char['alliance_name']); } + div.adopt(new Element('img', { + 'src': '//image.eveonline.com/Type/' + char['ship_type_id'] + '_32.png', + 'alt': char['ship_name'], + })); + if (!char['victim']) { + div.adopt(new Element('img', { + 'src': '//image.eveonline.com/Type/' + char['weapon_type_id'] + '_32.png', + 'alt': char['weapon_name'], + })); + } + div.appendText(char['damage']); + div.adopt(new Element('br')); + }); + + div = $('items'); + data.items.each(function(item) { + div.adopt(new Element('img', { + 'src': '//image.eveonline.com/Type/' + item['type_id'] + '_32.png', + 'alt': item['item_name'], + })); + div.appendText(item['item_name'] + ' (' + item['dropped'] + ',' + item['destroyed'] + ')'); div.adopt(new Element('br')); }); }); -- cgit v1.2.3