aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/index.html')
-rw-r--r--html/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/html/index.html b/html/index.html
index d8ce009..4a9ac19 100644
--- a/html/index.html
+++ b/html/index.html
@@ -237,6 +237,22 @@ Endpoint.prototype.sortable_value = function(value) {
return value;
}
+Endpoint.prototype.cell_contents = function(value) {
+ value = this.sortable_value(value);
+ if (value == '-')
+ return Field.prototype.cell_contents.call(this, value);
+
+ let parts = value.split(':');
+ let ip = parts[0];
+
+ let elem = document.createElement('a');
+ elem.setAttribute('href', 'https://infobyip.com/ip-' + ip + '.html');
+ elem.setAttribute('target', '_blank');
+ elem.appendChild(document.createTextNode(value));
+
+ return [elem];
+}
+
var Rx = function() {
Field.call(this, 'receive_bytes');
}