From 2ff4ae5a38f225becb0cd4830d5d7f51df708be3 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 1 Mar 2018 20:10:19 -0500 Subject: [PATCH] css updates many thx triptolemus --- .../www/www-static/index.html | 126 ++++++--- op25/gr-op25_repeater/www/www-static/main.css | 258 +++++++++++++++++- op25/gr-op25_repeater/www/www-static/main.js | 85 ++++-- 3 files changed, 409 insertions(+), 60 deletions(-) diff --git a/op25/gr-op25_repeater/www/www-static/index.html b/op25/gr-op25_repeater/www/www-static/index.html index 506e52c..75603db 100644 --- a/op25/gr-op25_repeater/www/www-static/index.html +++ b/op25/gr-op25_repeater/www/www-static/index.html @@ -1,44 +1,106 @@ + + -OP25 - - - - + + OP25 + + + + - -  |   - -

-"; return html; } - var html = "

"; - html += ""; + var html = "
"; + html += "
"; html += ""; - html += ""; + html += ""; var ct = 0; for (var freq in d) { var color = "#d0d0d0"; @@ -127,10 +151,15 @@ function adjacent_data(d) { ct += 1; html += ""; } - html += "
Adjacent Sites
FrequencyRF IdSite IdUplink
FrequencyRFSSSiteUplink
" + freq / 1000000.0 + "" + d[freq]["rfid"] + "" + d[freq]["stid"] + "" + (d[freq]["uplink"] / 1000000.0) + "
"; + html += "

"; + +// end adjacent sites table + return html; } +// additional system info: wacn, sysID, rfss, site id, secondary control channels, freq error + function trunk_update(d) { var do_hex = {"syid":0, "sysid":0, "wacn": 0}; var do_float = {"rxchan":0, "txchan":0}; @@ -138,32 +167,36 @@ function trunk_update(d) { for (var nac in d) { if (!is_digit(nac.charAt(0))) continue; - html += ""; + html += ""; html += "NAC " + "0x" + parseInt(nac).toString(16) + " "; html += d[nac]['rxchan'] / 1000000.0; html += " / "; html += d[nac]['txchan'] / 1000000.0; html += " tsbks " + d[nac]['tsbks']; - html += "
"; - html += "WACN " + "0x" + parseInt(d[nac]['wacn']).toString(16) + " "; - html += "System ID " + "0x" + parseInt(d[nac]['sysid']).toString(16) + " "; - html += "RF ID " + d[nac]['rfid'] + " "; - html += "Site ID " + d[nac]['stid'] + "
"; + html += "
"; + + html += "WACN: " + "0x" + parseInt(d[nac]['wacn']).toString(16) + " "; + html += "System ID: " + "0x" + parseInt(d[nac]['sysid']).toString(16) + " "; + html += "RFSS ID: " + d[nac]['rfid'] + " "; + html += "Site ID: " + d[nac]['stid'] + "
"; if (d[nac]["secondary"].length) { - html += "Secondary control channel(s): "; + html += "Secondary control channel(s): "; for (i=0; iFrequency error: " + error_val + " Hz. (approx) "; } - html += "

"; - html += ""; + +// system frequencies table + + html += "

"; + html += "
"; // was width=350 html += ""; - html += ""; + html += ""; var ct = 0; for (var freq in d[nac]['frequency_data']) { tg2 = d[nac]['frequency_data'][freq]['tgids'][1]; @@ -175,13 +208,17 @@ function trunk_update(d) { ct += 1; html += ""; } - html += "
System Frequencies
FrequencyLast SeenTalkgoup ID(s)Count
FrequencyLast SeenTalkgoup IDCount
" + parseInt(freq) / 1000000.0 + "" + d[nac]['frequency_data'][freq]['last_activity'] + "" + d[nac]['frequency_data'][freq]['tgids'][0] + "" + tg2 + "" + d[nac]['frequency_data'][freq]['counter'] + "
"; + html += ""; + +// end system freqencies table + html += adjacent_data(d[nac]['adjacent_data']); } var div_s1 = document.getElementById("div_s1"); div_s1.innerHTML = html; } + function http_req_cb() { s = http_req.readyState; if (s != 4) @@ -204,6 +241,8 @@ function do_onload() { var ele = document.getElementById("div_status"); ele.style["display"] = ""; setInterval(do_update, 1000); + b = document.getElementById("b1"); + b.className = "nav-button-active"; } function do_update() {