Skip to content

Commit 4aecac8

Browse files
nothing here, move along
1 parent d15b907 commit 4aecac8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 149
2+
# version 152
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ function updateVehicleInfo(index, position) {
400400
+ '</div>' // left
401401
+ '<div class="right">'
402402
+ '<dl>'
403-
+ (position.gps_alt != 0 ? '<dt>'+ascent_text+' '+hrate_text+'</dt><dd>rate v|h</dd>' : '')
403+
+ ((vehicles[index].vehicle_type == "car") ? '' : '<dt>'+ascent_text+' '+hrate_text+'</dt><dd>rate v|h</dd>')
404404
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + ' ft': parseInt(position.gps_alt) + ' m')+'</dt><dd>altitude</dd>'
405405
+ '<dt>'+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + ' ft': parseInt(vehicles[index].max_alt) + ' m')+'</dt><dd>max alt</dd>'
406406
+ '';
407407
// mid for landscape
408-
var l = (position.gps_alt != 0 ? '<dt>'+ascent_text+' '+hrate_text+'</dt><dd>rate v|h</dd>' : '')
408+
var l = ((vehicles[index].vehicle_type == "car") ? '' : '<dt>'+ascent_text+' '+hrate_text+'</dt><dd>rate v|h</dd>')
409409
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + 'ft': parseInt(position.gps_alt) + 'm')+' ('+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + 'ft' : parseInt(vehicles[index].max_alt) + 'm')+')</dt><dd>altitude (max)</dd>'
410410
+ '<dt>'+position.gps_time+'</dt><dd>datetime</dd>'
411411
+ '<dt>'+coords_text+'</dt><dd>coordinates</dd>'
@@ -799,7 +799,7 @@ function addPosition(position) {
799799

800800
// if position array has at least 1 position
801801
if(vehicle.num_positions > 0) {
802-
if((new Date(vehicle.curr_position.gps_time)).getTime() >= (new Date(position.gps_time)).getTime()) {
802+
if(convert_time(vehicle.curr_position.gps_time) >= convert_time(position.gps_time)) {
803803
if (("," + vehicle.curr_position.callsign + ",").indexOf("," + position.callsign + ",") === -1) {
804804
vehicle.curr_position.callsign += "," + position.callsign;
805805
}

0 commit comments

Comments
 (0)