This file is indexed.

/usr/share/routino/www/maploader.js is in routino-www 3.0-3.

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
////////////////////////////////////////////////////////////////////////////////
///////////////////// Map loader (OpenLayers or Leaflet) ///////////////////////
////////////////////////////////////////////////////////////////////////////////


function map_load(callbacks)
{
 var pending=1;
 var head = document.getElementsByTagName("head")[0];

 /* Call the callbacks when everything is loaded. */

 function call_callbacks()
 {
  if(!--pending)
     eval(callbacks);
 }

 /* Javascript loader */

 function load_js(url)
 {
  var script = document.createElement("script");
  script.src = url;
  script.type = "text/javascript";

  script.onload = call_callbacks;

  pending++;

  head.appendChild(script);
 }

 /* CSS loader */

 function load_css(url)
 {
  var link = document.createElement("link");
  link.href = url;
  link.type = "text/css";
  link.rel = "stylesheet";

  head.appendChild(link);
 }

 /* Load the external library and local code */

 if(mapprops.library == "leaflet")
   {
    load_css("/javascript/leaflet/leaflet.css");
    load_js("/javascript/leaflet/leaflet.js");

    load_js(location.pathname.replace(/\.html.*/,".leaflet.js"));
   }
 else
   {
    load_js("/javascript/openlayers/OpenLayers.js");

    load_js(location.pathname.replace(/\.html.*/,".openlayers.js"));
   }

 call_callbacks();
}