Skip to content

Commit c766f85

Browse files
added button to toggle path + path for cars
* cars will now have their path recorded * added button to toggle path * only balloon vehicles show path by default * fixed bugs with nyan mode * fixed bug with horizon circles and their labels * some code tweaks
1 parent 8ec8d45 commit c766f85

File tree

4 files changed

+263
-211
lines changed

4 files changed

+263
-211
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.swp
22
*.pyc
3+
*.log
34
js/mobile.js
45
js/init_plot.js
56
css/mobile.css

css/main.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

js/app.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)