2c28d9fe2f
*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.
18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
var listKMLType = ['Approch', 'Departure', 'Transit', 'Custom1', 'Custom2'];
|
|
var listKMLs = localStorage['listKMLs'] || [];
|
|
|
|
function optionsInitalize() {
|
|
// Write your initalization here
|
|
// Gets called just before the 1-sec function call loop is setup
|
|
$( "#dialog-modal" ).dialog({
|
|
height: 140,
|
|
modal: true,
|
|
autoOpen: false,
|
|
closeOnEscape: false
|
|
});
|
|
}
|
|
|
|
function optionsModal() {
|
|
$( "#dialog-modal" ).dialog( "open");
|
|
}
|