This file is indexed.

/usr/share/games/flightgear/Phi/instruments/kx165.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
63
64
65
66
67
var KX165 = {
  baseNode : "/instrumentation/",
  use : "selected-mhz",
  standby : "standby-mhz",

  swap : function(what, idx) {
    var base = this.makeNodeName(idx, what);
    fgCommand.propertySwap(base + this.use, base + this.standby);
  },

  set : function(what, which, idx, val) {
    fgCommand.propertyAssign(this.makeNodeName(idx, what, which), val);
  },

  bind : function(idx, div) {

    // click handler for swap buttons
    $(div).find("#com-swap").click(function() {
      KX165.swap("comm", idx);
    });
    $(div).find("#nav-swap").click(function() {
      KX165.swap("nav", idx);
    });

    // change handler for frequency input fields
    $(div).find("#com-use").change(function(evt) {
      KX165.set("comm", KX165.use, idx, evt.target.value);
    });

    $(div).find("#com-standby").change(function(evt) {
      KX165.set("comm", KX165.standby, idx, evt.target.value);
    });

    $(div).find("#nav-use").change(function(evt) {
      KX165.set("nav", KX165.use, idx, evt.target.value);
    });

    $(div).find("#nav-standby").change(function(evt) {
      KX165.set("nav", KX165.standby, idx, evt.target.value);
    });

    // listen for changed properties
    SetListener( KX165.makeNodeName( idx, "comm", KX165.use ) + "-fmt", function(n) {
      $(div).find("#com-use").val( n.value );
    });
    SetListener( KX165.makeNodeName( idx, "comm", KX165.standby ) + "-fmt", function(n) {
      $(div).find("#com-standby").val( n.value );
    });
    SetListener( KX165.makeNodeName( idx, "nav", KX165.use ) + "-fmt", function(n) {
      $(div).find("#nav-use").val( n.value );
    });
    SetListener( KX165.makeNodeName( idx, "nav", KX165.standby ) + "-fmt", function(n) {
      $(div).find("#nav-standby").val( n.value );
    });
  },

  makeNodeName : function(idx, section, leaf) {
    // build /instrumentation/comm[n]/frequencies/selected-mhz
    var reply = this.baseNode + section;
    if (idx > 0)
      reply += "[" + idx + "]";
    reply += "/frequencies/";
    if( typeof(leaf) != 'undefined' )
      reply += leaf;
    return reply;
  }
};