/usr/share/javascript/timeline_ajax/scripts/signal.js is in libjs-simile-timeline 2.3.0+dfsg-0.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 | /*==================================================
* This file is used to detect that all outstanding
* javascript files have been loaded. You can put
* a function reference into SimileAjax_onLoad
* to have it executed once all javascript files
* have loaded.
*==================================================
*/
(function() {
var substring = SimileAjax.urlPrefix + "scripts/signal.js";
var heads = document.documentElement.getElementsByTagName("head");
for (var h = 0; h < heads.length; h++) {
var node = heads[h].firstChild;
while (node != null) {
if (node.nodeType == 1 && node.tagName.toLowerCase() == "script") {
var url = node.src;
var i = url.indexOf(substring);
if (i >= 0) {
heads[h].removeChild(node); // remove it so we won't hit it again
var count = parseInt(url.substr(url.indexOf(substring) + substring.length + 1));
SimileAjax.loadingScriptsCount -= count;
if (SimileAjax.loadingScriptsCount == 0) {
var f = null;
if (typeof SimileAjax_onLoad == "string") {
f = eval(SimileAjax_onLoad);
SimileAjax_onLoad = null;
} else if (typeof SimileAjax_onLoad == "function") {
f = SimileAjax_onLoad;
SimileAjax_onLoad = null;
}
if (f != null) {
f();
}
}
return;
}
}
node = node.nextSibling;
}
}
})();
|