/*
* ToriSat JS Resources
*/
// ja latitude:35.682552, longitude:139.75962
// en longitude:-77.021841, latitude:38.889614
DEFAULT_LOCATION = {latitude:38.889614, longitude:-77.021841 };
var Message = {
LOADING_SAT_LIST_START: 'Loading the satellite list...',
LOADING_SAT_LIST_FINISH: 'Loaded the satellite list.',
LOADING_SAT_LIST_FAIL: 'Failed to load satellite list.',
LOADING_SAT_SCHEDULE_START: 'Loading the prediction data of [0].',
LOADING_SAT_SCHEDULE_FINISH: 'Loaded the prediction data of [0].',
LOADING_SAT_SCHEDULE_FAIL: 'Failed to load the predicition data of [0].',
SAT_SCHEDULE_EMPTY: "Sorry,[0] doesn't pass overhead in this 24 hours...( >_<)",
SAT_SCHEDULE_FOUND: '[0] will pass overhead in this 24 hours!(*^-^)b',
SAT_SCHEDULE_NEXT: 'Next approach is at [0]. [1] Click "play" button to simulate the path.',
HOME_SET: 'Your home position was saved',
HOME_EMPTY: 'You have not selected home position.',
WELCOME: 'Welcome!Select your location in Google Map below.',
EARTH_PLUGIN_NOT_FOUND: 'Google Earth plugin is not installed. You can simulate the view from the satellite with Google Earth!',
DEBUG: 'DEBUG:{0}',
_messages: new Array(),
_MAX_LINE: 1,
showMessage : function (message, replacement) {
if (replacement) {
//replace
for (var i=0, l=replacement.length; i');
},
_shift: function () {
if (this._messages.length > this._MAX_LINE) this._messages.splice(0,1);
},
applyLocale: function () {
for (var i=0, l=this.staticMessages.length; i