Skip to content

Commit

Permalink
Small update of the JS file
Browse files Browse the repository at this point in the history
some general improvements
  • Loading branch information
Slober3 committed Jul 6, 2017
1 parent 3dc03ae commit 0779ad3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Website+Backend/js/scriptv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ function getLast(number) {
$.getJSON("http://7ol.eu/api/api.php/connection/last/" + number, function(data) {
var items = [];
$.each(data, function(key, val) {
items.push("<tr>" + "<td>" + val.id + "</td>" + "<td>" + val.time + "</td>" + "<td>" + "<a href='http://www.ipvoid.com/scan/" + val.ip + "/'>" + val.ip + "</a>" + "</td>" + "<td>" + val.port + "</td>" + "<td>" + val.country+ "</td>" + "<td>" + val.isp+ "</td>" + "<td>" + val.portHacker + "</td>" + "</tr>");
items.push("<tr>" + "<td>" + val.id + "</td>" + "<td>" + val.time + "</td>" + "<td>" + "<a href='http://www.ipvoid.com/scan/" + val.ip + "/'>" + val.ip + "</a>" + "</td>" + "<td>" + val.port + "</td>" + "<td class='yellow'>" + val.country+ "</td>" + "<td>" + val.isp+ "</td>" + "<td>" + val.portHacker + "</td>" + "</tr>");
});

$("<tbody/>", {
html: items.join("")
}).appendTo("table");
$("table").fadeIn("slow");
});
items = [];
}


Expand Down Expand Up @@ -50,10 +52,11 @@ function getIP() {
$("<tbody/>", {
html: items.join("")
}).appendTo("table");
$("table").fadeIn("slow");
});
}


$("table").hide();
$("table").show("slow");

}

0 comments on commit 0779ad3

Please sign in to comment.