(function (window, $) {
App.prototype.init = function () {
var map = $('#map'),
nodesTmpl = this.render([
'
',
'%ip% | ',
'%link% | ',
'%path% | ',
'%version% | ',
'
'
].join(''));
this.send('/map', function (resp) {
var nodes = resp.nodes;
if (nodes) {
nodes = nodes.map(nodesTmpl);
map.html(nodes.join(''));
}
});
};
new App();
} (window, jQuery));