blob: 547c349768cc428876648e7a55d84c778cb747cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Object.append(window.ykill, {
'api': function (path, cb) {
new Request.JSON({
'url': ykill.api_host + path,
'onSuccess': cb,
}).get();
},
'portrait': function (id, text, img_dir, img_suffix) {
var img = new Element('img', {
'src': '//image.eveonline.com/' + img_dir + '/' + id + img_suffix,
'alt': text,
});
return img;
},
});
|