Merge branch 'Tsenzuk-master'

master
Sven Slootweg 8 years ago
commit a16a01af22

@ -19,12 +19,12 @@ module.exports = (html) ->
rows.each -> rows.each ->
element = $(this) element = $(this)
timestamp = element.children(".timestamp").attr("rel") timestamp = element.children(".timestamp").attr("rel")
port = element.children("td:nth-of-type(3)").text().replace("\n", "") port = element.children("td:nth-of-type(3)").text().replace(/\n/g, "").trim()
country = element.find("td .country").parent().attr("rel") country = element.find("td.country").attr("rel")
speed = element.find("td .progress-indicator").eq(0).attr("value") speed = element.find("td .progress-indicator").eq(0).attr("value")
connectionTime = element.find("td .progress-indicator").eq(1).attr("value") connectionTime = element.find("td .progress-indicator").eq(1).attr("value")
protocol = element.children("td:nth-of-type(7)").text() protocol = element.children("td:nth-of-type(7)").text().replace(/\n/g, "").trim()
anonymity = element.children("td:nth-of-type(8)").text() anonymity = element.children("td:nth-of-type(8)").text().replace(/\n/g, "").trim()
ipSegments = [] ipSegments = []

@ -21,12 +21,12 @@ module.exports = function(html) {
var anonymity, connectionTime, country, element, ipBlock, ipSegments, port, protocol, speed, timestamp; var anonymity, connectionTime, country, element, ipBlock, ipSegments, port, protocol, speed, timestamp;
element = $(this); element = $(this);
timestamp = element.children(".timestamp").attr("rel"); timestamp = element.children(".timestamp").attr("rel");
port = element.children("td:nth-of-type(3)").text().replace("\n", ""); port = element.children("td:nth-of-type(3)").text().replace(/\n/g, "").trim();
country = element.find("td .country").parent().attr("rel"); country = element.find("td.country").attr("rel");
speed = element.find("td .progress-indicator").eq(0).attr("value"); speed = element.find("td .progress-indicator").eq(0).attr("value");
connectionTime = element.find("td .progress-indicator").eq(1).attr("value"); connectionTime = element.find("td .progress-indicator").eq(1).attr("value");
protocol = element.children("td:nth-of-type(7)").text(); protocol = element.children("td:nth-of-type(7)").text().replace(/\n/g, "").trim();
anonymity = element.children("td:nth-of-type(8)").text(); anonymity = element.children("td:nth-of-type(8)").text().replace(/\n/g, "").trim();
ipSegments = []; ipSegments = [];
ipBlock = element.find("td:nth-of-type(2) > span"); ipBlock = element.find("td:nth-of-type(2) > span");
ipBlock.contents().each(function() { ipBlock.contents().each(function() {

Loading…
Cancel
Save