This file is indexed.

/usr/share/games/flightgear/Phi/widgets/radiostack.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
53
54
55
56
57
58
59
60
61
62
define([
        'knockout', 'text!./radiostack.html', 'kojqui/tooltip', 'kojqui/spinner'
], function(ko, htmlString) {

    function DualFrequencyViewModel(label, pfx) {
        var self = this;
        self.useKey = pfx + "use";
        self.sbyKey = pfx + "sby";
        self.stnKey = pfx + "stn";

        self.label = ko.observable(label);
        self.use = ko.observable(188.888).extend({
            fgprop : self.useKey
        });
        
        self.stby = ko.observable(188.888).extend({
            fgprop : self.sbyKey
        });

        self.stn = ko.observable("").extend({
            fgprop : self.stnKey
        });

        self.swap = function() {
            ko.utils.knockprops.write(self.useKey, self.stby());
            ko.utils.knockprops.write(self.sbyKey, self.use());
        };

        self.onUseBlur = function() {
            ko.utils.knockprops.write(self.useKey, self.use());
        }

        self.onUseKey = function(ui,evt) {
            if( evt.keyCode == 13 )
                ko.utils.knockprops.write(self.useKey, self.use());
        }

        self.onStbyKey = function(ui,evt) {
            if( evt.keyCode == 13 )
                ko.utils.knockprops.write(self.sbyKey, self.stby());
        }

        self.onStbyBlur = function() {
            ko.utils.knockprops.write(self.sbyKey, self.stby());
        }
    }

    function ViewModel(params) {
        this.radios = ko.observableArray([
                new DualFrequencyViewModel("COM1", "com1"), new DualFrequencyViewModel("COM2", "com2"),
                new DualFrequencyViewModel("NAV1", "nav1"), new DualFrequencyViewModel("NAV2", "nav2"),
                new DualFrequencyViewModel("ADF", "adf1"), 
        ]);

    }

    // Return component definition
    return {
        viewModel : ViewModel,
        template : htmlString
    };
});