/usr/share/debian-timeline/media/debian-timeline.js is in debian-timeline 39.
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 68 69 70 71 72 73 74 75 | var tl;
function onLoad() {
var theme = Timeline.ClassicTheme.create();
theme.event.track.gap = 15.0;
theme.event.tape.height = 2.0;
theme.event.instant.icon = 'media/debian_sm.png';
theme.event.duration.color = '#FF6666';
theme.ether.backgroundColors[3] = "#E8E8F4";
var events = new Timeline.DefaultEventSource();
var releases = new Timeline.DefaultEventSource();
var release_eras = new Timeline.DefaultEventSource();
var start_date = new Date();
start_date.setDate(start_date.getDate() - 90);
var bandInfos = [
Timeline.createBandInfo({
eventSource: events,
width: "57%",
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 100,
date: start_date,
theme: theme
}),
Timeline.createBandInfo({
eventSource: release_eras,
width: "10%",
intervalUnit: Timeline.DateTime.YEAR,
intervalPixels: 500,
date: start_date,
theme: theme
}),
Timeline.createBandInfo({
eventSource: releases,
width: "26%",
intervalUnit: Timeline.DateTime.YEAR,
intervalPixels: 500,
date: start_date,
theme: theme
}),
Timeline.createBandInfo({
eventSource: releases,
width: "7%",
intervalUnit: Timeline.DateTime.YEAR,
intervalPixels: 70,
date: start_date,
theme: theme,
overview: true
})
];
bandInfos[1].highlight = true;
bandInfos[1].syncWith = 0;
bandInfos[2].highlight = true;
bandInfos[2].syncWith = 0;
bandInfos[3].highlight = true;
bandInfos[3].syncWith = 0;
tl = Timeline.create(document.getElementById("the-timeline"), bandInfos);
var random = Math.floor(Math.random() * 100000);
Timeline.loadXML("xml/events.xml?" + random, function(xml, url) { events.loadXML(xml, url); });
Timeline.loadXML("xml/releases.xml?" + random, function(xml, url) { releases.loadXML(xml, url); });
Timeline.loadXML("xml/release_eras.xml?" + random, function(xml, url) { release_eras.loadXML(xml, url); });
}
var resizeTimerID = null;
function onResize() {
if (resizeTimerID === null) {
resizeTimerID = window.setTimeout(function() {
resizeTimerID = null;
tl.layout();
}, 500);
}
}
|