blob: b0bc9d0260e05a0226479a7fa23f2b30d581dcca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
window.addEvent('domready', function() {
var table = $('expensive');
ykill.api('/top/cost', function(kills) {
kills.each(function(kill) {
table.grab(new Element('tr').adopt(
new Element('td').grab(ykill.portrait(kill['ship_type_id'], kill['ship_name'], 'type', '_32.png')),
new Element('td', {'html': kill['ship_name']}),
new Element('td', {'html': ykill.format_system(kill['system_name'], kill['security'], kill['security_status'])}),
new Element('td').grab(
new Element('a', {
'href': '/kill/' + kill['kill_id'],
'html': ykill.format_billions(kill['cost'])
})
)
));
});
});
});
|