From 332a5968b9e81bedbebdd7436f302127c3f2ae0a Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 Apr 2018 19:40:14 -0400 Subject: [PATCH] layout updates thx trip --- op25/gr-op25_repeater/www/images/op25.png | Bin 0 -> 2031 bytes .../www/www-static/index.html | 85 ++++---- op25/gr-op25_repeater/www/www-static/main.css | 206 +++++++++++------- op25/gr-op25_repeater/www/www-static/main.js | 47 ++-- 4 files changed, 199 insertions(+), 139 deletions(-) create mode 100644 op25/gr-op25_repeater/www/images/op25.png diff --git a/op25/gr-op25_repeater/www/images/op25.png b/op25/gr-op25_repeater/www/images/op25.png new file mode 100644 index 0000000000000000000000000000000000000000..a5498570c24184a7cc06bc941821b1ceacfa64ac GIT binary patch literal 2031 zcmVd*Y-`v)L4m`Q!m_t=H?9 zmzVi`{`vXIe|2)Rm(v=DhlkB((~Ie1fvr}n(P-r49^GztZ*MOXtO&HOP+|1@eMG5$i{T+| zZf>GEv`}a?8X$&9zg;XAv)L^2hv3Zf^K;L@Ko#PLc(QuE9t43ge_mc*CjR^vfnnl% zy`E)|0N!LWd47KOXf!&7kB^VyOzVa|Xb|QF68=Lh>uE+B1xBVBb8PHCh(<9E{QwhZ zv{)>fdwD)ztycL@mdj-(MDWSUiRIdgE6DxakHt!*k}Wm)lZ!uqy}!ScRcl9p5$boc z?2wD3MvOo13hChd2GGI&EoL87k+Rc2FfzMNmK}1D)S~VOFrqNl>$T<8(--y8z(}Ca z=kpx_Muxq*BUwzXR`UZ)3;-LWA-c%Vi7ZalVniHHr&HutW==R54CHHCs=!1^J{%4q zUbTGk?-M>Om&<7ik%Bm>;6^+d|KY>KLr$$)2r%RE7{MuiRjE`wmj)t}Xnw6b zJ3E7n}wdU^`8IJp5FJAG6+c_kQGjL2-d z)q&&VV=oJILhT-8h~Q!5p*65%0hPym%>8alwOU1%;C(YGua#B+AqWsI%GLw00$Z%` z2Y3?Ul#$IbZD3n8c6O`w4_LaxK9S2PFpvqKZ*T3dQ!bZ7V2WH)AghPlP7_yG!-K&gksPXH+ZsuQWsU8RD*EI$X~nRRtb)x7 zSjwe&IApusR>Y>g8H*GXDsHh@u*Qk2tE)7VOTOC)z#zEdG@3TBe!ow6&mrHy1?1BN z(HH&=0+%RHZC50!lr+59I~yrNlW~84AEJ^^s4cMRbn4dG@VJo`az3P0dbep*i3+lts8g(XhMEN3^;LbGV73h>UY7Ch52Gv zz?G}jDsvVX6LFr1&9JVxTrLgj-nvbuU=h$DAQ8q2n|sBtY?X)EZnExHE$#xUfN{un zF-*srRV8*a1cpmv`n7)2>2wTk#5B}!I3(*^xK|#B&0H&D`qi;Pm`C=0tIQxX4%yUZ ziHroBl?VnlFjZoO3_Mn^*NyMO91?%@dOe_vsIqQ>cBz1SvzygOvj4_>sr-cBD z>q?N(J(fkAss`5388&9kVHS5^H0coB$(zufP`B;+p^r(=4t| z>LI~PO5EN_Rf|jz^hcxwO;#SpEsIQjOD5Z3kSBqri#zoYC{B`DM>omg4Kf{xx#UTZ zs#YXA&1_imM`$jlQRPXHh6o0c=wfp#M3}j-e5th4B^Z&qd zfjsm{-A3LEmmFhQ>BSQi+bPG8>xzA85Fr`dY1R~i5|_+;d91C`v==h+q& zpM;z-C=!O-#~B62xTMqRh{t>6nQzLknKAbblUZ zUfwH{Bjq>N>cHprT0((!<$r7jz#s)olPzSxc4_>zr~d)_1C}n`Pp4D9kSOT^gR}?l zAwgyxCBbIozsE0?JheuVR9b?2|a$w}!TCK*8aw02B^Tk?9!1#`WMCD3=MZUxeP*
+ - - -
- -
- -
- -
- -
- -
- -
-
- + "; + // box br // end trunk_update HTML // end adjacent sites table @@ -303,10 +298,11 @@ function adjacent_data(d) { function trunk_update(d) { var do_hex = {"syid":0, "sysid":0, "wacn": 0}; var do_float = {"rxchan":0, "txchan":0}; - var html = ""; + var html = ""; // begin trunk_update HTML 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; @@ -333,8 +329,8 @@ function trunk_update(d) { // system frequencies table - html += "

"; - html += ""; // was width=350 + html += "
"; + html += "
"; html += ""; html += ""; var ct = 0; @@ -348,14 +344,31 @@ function trunk_update(d) { ct += 1; html += ""; } - html += "
System Frequencies
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'] + "
"; - -// end system freqencies table + html += "
"; // end system freqencies table html += adjacent_data(d[nac]['adjacent_data']); + html += "



"; } var div_s1 = document.getElementById("div_s1"); div_s1.innerHTML = html; + + // disply hold indicator + var x = document.getElementById("holdIndicator"); + if (d['data']['hold_mode']) { + x.style.display = "block"; + } + else { + x.style.display = "none"; + } + + // display last command unless it was more than 10 seconds ago + x2 = d['data']['last_command']; + if (x2 && d['data']['last_command_time'] > -10) { + document.getElementById("lastCommand").innerHTML = "Last Command
" + x2.toUpperCase() + "
" + " " + (d['data']['last_command_time'] * -1) + " secs ago"; + } + else { + document.getElementById("lastCommand").innerHTML = ""; + } } function config_list(d) {