Browse Source

Dead code for displaying ajax info on ASses

master
Sebastian Lohff 8 years ago
parent
commit
35e897520b
  1. 11
      bgpdata/templates/bgpdata/map.html

11
bgpdata/templates/bgpdata/map.html

@ -164,7 +164,7 @@ $('svg g').tipsy({ @@ -164,7 +164,7 @@ $('svg g').tipsy({
state = '<span class="label label-default">Never seen</span>';
content = '<b>AS '+d.asnumber+'</b><br>';
content += '<table style="opacity: 1.0" class="table table-bordered">';
content += '<table style="opacity: 1.0" class="table table-bordered" id="node-popup-'+d.id+'">';
content += '<tr><th>State</th><td>'+state+'</td>';
if(d.lastSeen) {
content += '<tr><th>Last seen</th><td><a href="/map/'+d.lastSeen+'/">Crawl '+d.lastSeen+'<br>'+d.lastSeenDate+'</a></td></tr>';
@ -173,6 +173,15 @@ $('svg g').tipsy({ @@ -173,6 +173,15 @@ $('svg g').tipsy({
content += '<tr><th>Note</th><td>Directly crawled</td></tr>';
}
content += '</table>';
//(function(node) {
// $.ajax({url: "/map/api/borderrouter/?crawl={{crawl.id}}&AS="+node.id, success: function(result) {
// $('#node-popup-'+node.id).append("<tr><th>Javascript</th><td>I FUCKING HATE IT</td></tr>");
// console.log($('#node-popup-'+node.id));
// console.log(result);
// }
// });
//})(d);
}
return content;
}

Loading…
Cancel
Save