Append GlobalLogout plugin (#1999)
parent
818ebc89be
commit
7ef9e132c9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,17 @@ |
||||
# Timer for globalLogout page |
||||
|
||||
i = 30 |
||||
|
||||
go = () -> |
||||
$("#globallogout").submit() |
||||
|
||||
timer = () -> |
||||
h = $('#timer').html() |
||||
i-- if i>0 |
||||
h = h.replace /\d+/, i |
||||
$('#timer').html(h) |
||||
window.setTimeout timer, 1000 |
||||
|
||||
$(document).ready -> |
||||
window.setTimeout go, 30000 |
||||
window.setTimeout timer, 1000 |
@ -0,0 +1,27 @@ |
||||
// Generated by CoffeeScript 1.12.7
|
||||
(function() { |
||||
var go, i, timer; |
||||
|
||||
i = 30; |
||||
|
||||
go = function() { |
||||
return $("#globallogout").submit(); |
||||
}; |
||||
|
||||
timer = function() { |
||||
var h; |
||||
h = $('#timer').html(); |
||||
if (i > 0) { |
||||
i--; |
||||
} |
||||
h = h.replace(/\d+/, i); |
||||
$('#timer').html(h); |
||||
return window.setTimeout(timer, 1000); |
||||
}; |
||||
|
||||
$(document).ready(function() { |
||||
window.setTimeout(go, 30000); |
||||
return window.setTimeout(timer, 1000); |
||||
}); |
||||
|
||||
}).call(this); |
@ -0,0 +1 @@ |
||||
(function(){var t,e,n;e=30,t=function(){return $("#globallogout").submit()},n=function(){var t;return t=$("#timer").html(),0<e&&e--,t=t.replace(/\d+/,e),$("#timer").html(t),window.setTimeout(n,1e3)},$(document).ready(function(){return window.setTimeout(t,3e4),window.setTimeout(n,1e3)})}).call(this); |
@ -0,0 +1 @@ |
||||
{"version":3,"sources":["lemonldap-ng-portal/site/htdocs/static/common/js/globalLogout.js"],"names":["go","i","timer","$","submit","h","html","replace","window","setTimeout","document","ready","call","this"],"mappings":"CACA,WACE,IAAIA,EAAIC,EAAGC,EAEXD,EAAI,GAEJD,EAAK,WACH,OAAOG,EAAE,iBAAiBC,UAG5BF,EAAQ,WACN,IAAIG,EAOJ,OANAA,EAAIF,EAAE,UAAUG,OACR,EAAJL,GACFA,IAEFI,EAAIA,EAAEE,QAAQ,MAAON,GACrBE,EAAE,UAAUG,KAAKD,GACVG,OAAOC,WAAWP,EAAO,MAGlCC,EAAEO,UAAUC,MAAM,WAEhB,OADAH,OAAOC,WAAWT,EAAI,KACfQ,OAAOC,WAAWP,EAAO,SAGjCU,KAAKC"} |
Loading…
Reference in new issue