This file is indexed.

/usr/share/doc/libjs-rickshaw/examples/status.html is in libjs-rickshaw 1.5.1.dfsg-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
<!doctype>
<link type="text/css" rel="stylesheet" href="css/graph.css">
<link type="text/css" rel="stylesheet" href="css/legend.css">
<link type="text/css" rel="stylesheet" href="css/extensions.css">

<script src="/usr/share/javascript/d3/d3.js"></script>
<script src="/usr/share/javascript/rickshaw/rickshaw.js"></script>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script>

<div id="chart"></div>
<div id="legend"></div>

<script>

var palette = new Rickshaw.Color.Palette( { scheme: 'httpStatus' } );

var wrapper = new Rickshaw.Graph.Ajax( {
	element: document.getElementById("chart"),
	dataURL: 'data/status.json',
	width: 960,
	height: 500,
	renderer: 'bar',
	onData: function(d) { return transformData(d) },
	onComplete: function(w) {
		var legend = new Rickshaw.Graph.Legend( { 
			element: document.querySelector('#legend'), 
			graph: w.graph
		} );
	}
} );

function transformData(d) {
	var data = [];
	var statusCounts = {};

	Rickshaw.keys(d).sort().forEach( function(t) {
		Rickshaw.keys(d[t]).forEach( function(status) {
			statusCounts[status] = statusCounts[status] || [];
			statusCounts[status].push( { x: parseFloat(t), y: d[t][status] } );
		} );
	} );

	Rickshaw.keys(statusCounts).sort().forEach( function(status) {
		data.push( {
			name: status,
			data: statusCounts[status],
			color: palette.color(status)
		} );
	} );

	Rickshaw.Series.zeroFill(data);
	return data;
}

</script>