This commit is contained in:
Jerome Morjon 2015-03-24 11:45:32 +01:00
parent aa089cb904
commit c4777017dc
1 changed files with 7 additions and 5 deletions

View File

@ -35,8 +35,8 @@
<script> <script>
var redirectTimer; var redirectTimer;
var chiffre;
imgRef.innerHTML = '&nbsp;'; imgRef.innerHTML = '&nbsp;';
@ -51,13 +51,15 @@
function startCounter(event) { function startCounter(event) {
absorbEvent_(event); absorbEvent_(event);
imgRef.innerHTML = 3; chiffre = 3;
imgRef.innerHTML = "Redirection "+chiffre;
redirectTimer = setInterval(counter, 1000); redirectTimer = setInterval(counter, 1000);
} }
function counter() { function counter() {
imgRef.innerHTML--; chiffre--;
if(imgRef.innerHTML == 0) location.href="{{URL::to('choisirref')}}"; imgRef.innerHTML = "Redirection "+chiffre;
if(chiffre == 0) location.href="{{URL::to('choisirref')}}";
} }
function endCounter(event) { function endCounter(event) {