File tree Expand file tree Collapse file tree 4 files changed +263
-211
lines changed
Expand file tree Collapse file tree 4 files changed +263
-211
lines changed Original file line number Diff line number Diff line change 11* .swp
22* .pyc
3+ * .log
34js /mobile.js
45js /init_plot.js
56css /mobile.css
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ header > div {
370370 position : relative;
371371 z-index : 4 ;
372372}
373- # main .row .data .hysplit {
373+ # main .row .data .vbutton {
374374 position : absolute;
375375 background-color : # fff ;
376376 right : 5px ;
@@ -384,17 +384,17 @@ header > div {
384384 z-index : 5 ;
385385}
386386
387- # main .row .data .hysplit .active {
387+ # main .row .data .vbutton .active {
388388 background-color : # 33b5e5 ;
389389 border : 1px solid # 33b5e5 ;
390390 color : # fff ;
391391}
392392
393- # main .row .data .hysplit : hover {
393+ # main .row .data .vbutton : hover {
394394 border : 1px solid # 5E5E5E ;
395395}
396396
397- # main .portrait .row .data .hysplit {
397+ # main .portrait .row .data .vbutton {
398398 display : none;
399399}
400400
Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ $(window).ready(function() {
410410 if ( wvar . graph_expanded ) $ ( '#telemetry_graph .graph_label' ) . click ( ) ;
411411
412412 // hysplit button
413- $ ( "#main" ) . on ( 'click' , '.row .data .hysplit' , function ( event ) {
413+ $ ( "#main" ) . on ( 'click' , '.row .data .vbutton. hysplit' , function ( event ) {
414414 event . stopPropagation ( ) ;
415415
416416 var elm = $ ( this ) ;
@@ -426,6 +426,22 @@ $(window).ready(function() {
426426 }
427427 } ) ;
428428
429+ $ ( "#main" ) . on ( 'click' , '.row .data .vbutton.path' , function ( event ) {
430+ event . stopPropagation ( ) ;
431+
432+ var elm = $ ( this ) ;
433+ var name = elm . attr ( 'data-vcallsign' ) ;
434+
435+ if ( elm . hasClass ( "active" ) ) {
436+ elm . removeClass ( 'active' ) ;
437+ set_polyline_visibility ( name , false ) ;
438+ }
439+ else {
440+ elm . addClass ( 'active' ) ;
441+ set_polyline_visibility ( name , true ) ;
442+ }
443+ } ) ;
444+
429445 // reset nite-overlay and timebox when mouse goes out of the graph box
430446 $ ( "#telemetry_graph" ) . on ( 'mouseout' , '.holder' , function ( ) {
431447 nite . setDate ( null ) ;
You can’t perform that action at this time.
0 commit comments