Correction du script
This commit is contained in:
parent
68b1e7eb15
commit
1e7c0c929d
@ -1,4 +1,4 @@
|
||||
var nbSeconds = 10;
|
||||
var nbSeconds = 5;
|
||||
var timer;
|
||||
function updateInfo()
|
||||
{
|
||||
@ -34,7 +34,7 @@ $(document).ready(function(){
|
||||
//Focus entrant sur le document, on relance le script
|
||||
$(document).focusin(function(){
|
||||
updateInfo();
|
||||
timer = setInterval(updateInfo, nbSeconds*100);
|
||||
timer = setInterval(updateInfo, nbSeconds*1000);
|
||||
});
|
||||
|
||||
//Sortie du focus sur le document on arrête le script
|
||||
|
Loading…
Reference in New Issue
Block a user