/usr/share/lemonldap-ng/portal-skins/common/js/info.js is in liblemonldap-ng-portal-perl 1.9.16-2.
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 | /* Timer for information page */
var i = 30;
var _go = 1;
function stop() {
_go = 0;
$('#timer').html("...");
}
function go() {
if (_go) {
$("#form").submit();
}
}
function timer() {
var h = $('#timer').html();
if (i > 0) {
i--;
}
h = h.replace(/\d+/, i);
$('#timer').html(h);
window.setTimeout(timer, 1000);
}
$(document).ready(function() {
if (activeTimer) {
window.setTimeout(go, 10000);
window.setTimeout(timer, 1000);
} else {
stop();
}
});
|