/usr/share/games/flightgear/Phi/topics/Environment/Weather.js is in flightgear-phi 2016.4.2+dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | define([
'knockout', 'text!./Weather.html', 'kojqui/buttonset'
], function(ko, htmlString) {
ko.components.register('Environment/Weather/METAR', {
require : 'topics/Environment/Weather/METAR'
});
ko.components.register('Environment/Weather/Clouds', {
require : 'topics/Environment/Weather/CloudLayers'
});
ko.components.register('Environment/Weather/Boundary', {
require : 'topics/Environment/Weather/Boundary'
});
ko.components.register('Environment/Weather/Aloft', {
require : 'topics/Environment/Weather/Aloft'
});
function ViewModel(params) {
var self = this;
self.topics = [
'METAR',
'Clouds',
'Boundary',
'Aloft',
];
self.selectedTopic = ko.observable();
self.selectedComponent = ko.pureComputed(function() {
return "Environment/Weather/" + self.selectedTopic();
});
self.selectTopic = function(topic) {
self.selectedTopic(topic);
}
self.selectTopic(self.topics[0]);
}
ViewModel.prototype.dispose = function() {
}
// Return component definition
return {
viewModel : ViewModel,
template : htmlString
};
});
|