IE 8/9 Bugs in Web interface
*DISCLAIMER* I didn't write any of this code initially, I've never tried to use it, and I don't understand Java Script at all. In-fact I hate the wretched stuff. Anyway, it appears that no-one has bothered to test any of the Web interface code using Microsoft Internet Explorer 8 or 9. I've attempted to hack out the sections of the code that are causing problems, and at least the web interface now seems to run. However, for some reason the planes never move - I know this must be a bug, but I don't know how to fix it. Most of the errors relate to trailing commas. My guess it that some Java engines don't mind trailing commas, but that the Microsoft ones do. There are also some undefined modules (untrackedDeveloperSettings) and functions (console.log) which I guess those who wrote the code have on their machines, but forgot to include in the public distribution. I've no idea how to fix this, so I've just hacked them out of the code.
This commit is contained in:
parent
0430323014
commit
2c28d9fe2f
|
@ -6,7 +6,6 @@
|
||||||
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
|
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
|
||||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=geometry"></script>
|
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=geometry"></script>
|
||||||
<script type="text/javascript" src="config.js"></script>
|
<script type="text/javascript" src="config.js"></script>
|
||||||
<script type="text/javascript" src="untrackedDeveloperSettings.js"></script> <!-- Developers -->
|
|
||||||
<script type="text/javascript" src="planeObject.js"></script>
|
<script type="text/javascript" src="planeObject.js"></script>
|
||||||
<script type="text/javascript" src="options.js"></script>
|
<script type="text/javascript" src="options.js"></script>
|
||||||
<script type="text/javascript" src="extension.js"></script>
|
<script type="text/javascript" src="extension.js"></script>
|
||||||
|
@ -22,7 +21,6 @@
|
||||||
<div id="map_container">
|
<div id="map_container">
|
||||||
<div id="map_canvas"></div>
|
<div id="map_canvas"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="container_splitter"></div>
|
|
||||||
<div id="sidebar_container">
|
<div id="sidebar_container">
|
||||||
<div id="sidebar_canvas">
|
<div id="sidebar_canvas">
|
||||||
<div id="timestamps" style="align: center">
|
<div id="timestamps" style="align: center">
|
||||||
|
@ -60,5 +58,6 @@
|
||||||
This is most likely an error in reciving or decoding.<br>
|
This is most likely an error in reciving or decoding.<br>
|
||||||
Please do not call the local authorities, they already know about it if it is valid squak.
|
Please do not call the local authorities, they already know about it if it is valid squak.
|
||||||
</div>
|
</div>
|
||||||
|
<div id="container_splitter"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -8,7 +8,7 @@ function optionsInitalize() {
|
||||||
height: 140,
|
height: 140,
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: false,
|
closeOnEscape: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ var planeObject = {
|
||||||
|
|
||||||
// This is to remove the line from the screen if we deselect the plane
|
// This is to remove the line from the screen if we deselect the plane
|
||||||
funcClearLine : function() {
|
funcClearLine : function() {
|
||||||
console.log("Clearing line for: " + this.icao);
|
|
||||||
if (this.line) {
|
if (this.line) {
|
||||||
this.line.setMap(null);
|
this.line.setMap(null);
|
||||||
this.line = null;
|
this.line = null;
|
||||||
|
@ -164,7 +163,6 @@ var planeObject = {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.reapable == true) {
|
if (this.reapable == true) {
|
||||||
console.log(this.icao + ' has come back into range before the reaper!');
|
|
||||||
}
|
}
|
||||||
this.reapable = false;
|
this.reapable = false;
|
||||||
}
|
}
|
||||||
|
@ -216,7 +214,7 @@ var planeObject = {
|
||||||
position: new google.maps.LatLng(this.latitude, this.longitude),
|
position: new google.maps.LatLng(this.latitude, this.longitude),
|
||||||
map: GoogleMap,
|
map: GoogleMap,
|
||||||
icon: this.funcGetIcon(),
|
icon: this.funcGetIcon(),
|
||||||
visable: true,
|
visable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// This is so we can match icao address
|
// This is so we can match icao address
|
||||||
|
@ -243,15 +241,14 @@ var planeObject = {
|
||||||
var path = this.line.getPath();
|
var path = this.line.getPath();
|
||||||
path.push(new google.maps.LatLng(this.latitude, this.longitude));
|
path.push(new google.maps.LatLng(this.latitude, this.longitude));
|
||||||
} else {
|
} else {
|
||||||
console.log("Starting new line");
|
|
||||||
this.line = new google.maps.Polyline({
|
this.line = new google.maps.Polyline({
|
||||||
strokeColor: '#000000',
|
strokeColor: '#000000',
|
||||||
strokeOpacity: 1.0,
|
strokeOpacity: 1.0,
|
||||||
strokeWeight: 3,
|
strokeWeight: 3,
|
||||||
map: GoogleMap,
|
map: GoogleMap,
|
||||||
path: this.trackline,
|
path: this.trackline
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return this.line;
|
return this.line;
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@ var PlanesOnMap = 0;
|
||||||
var PlanesOnTable = 0;
|
var PlanesOnTable = 0;
|
||||||
var PlanesToReap = 0;
|
var PlanesToReap = 0;
|
||||||
var SelectedPlane = null;
|
var SelectedPlane = null;
|
||||||
var SpecialSqawk = false;
|
var SpecialSquawk = false;
|
||||||
|
|
||||||
var iSortCol=-1;
|
var iSortCol=-1;
|
||||||
var bSortASC=true;
|
var bSortASC=true;
|
||||||
|
@ -136,7 +136,7 @@ function initialize() {
|
||||||
zoom: ZoomLvl,
|
zoom: ZoomLvl,
|
||||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||||
mapTypeControlOptions: {
|
mapTypeControlOptions: {
|
||||||
mapTypeIds: mapTypeIds,
|
mapTypeIds: mapTypeIds
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue