diff --git a/src/web/aprsc.js b/src/web/aprsc.js index 54c703b..12e89d1 100644 --- a/src/web/aprsc.js +++ b/src/web/aprsc.js @@ -8,33 +8,6 @@ function isUndefined(v) return v === undef; } -function cancel_events(e) -{ - if (!e) - if (window.event) e = window.event; - else - return; - - if (e.cancelBubble != null) e.cancelBubble = true; - if (e.stopPropagation) e.stopPropagation(); - if (e.preventDefault) e.preventDefault(); - if (window.event) e.returnValue = false; - if (e.cancel != null) e.cancel = true; -} - -function addr_loc_port(s) -{ - return s.substr(s.lastIndexOf(':') + 1); -} - -function htmlent(s) -{ - if (isUndefined(s)) - return ''; - - return $('
').text(s).html(); -} - function lz(i) { if (i < 10) @@ -88,14 +61,6 @@ function dur_str(i) return i.toFixed(0) + 's'; } -function conv_none(s) -{ - return s; -} - -var listeners_table, uplinks_table, peers_table, clients_table, memory_table, - dupecheck_table, dupecheck_more_table, totals_table; - var key_tooltips = { // dupecheck block 'dupes_dropped': 'Duplicate APRS-IS packets dropped in the dupecheck thread (per-client counts not available for performance reasons)', @@ -120,42 +85,6 @@ var key_tooltips = { -var alarms_visible = 0; - -function render_alarms(alarms) -{ - var s = ''; - for (var i = 0; i < alarms.length; i++) { - a = alarms[i]; - //console.log("alarm " + i + ": " + a['err']); - if (a['set'] != 1) - continue; - s += '