Showing
1 changed file
with
16 additions
and
0 deletions
@@ -11,3 +11,19 @@ | @@ -11,3 +11,19 @@ | ||
11 | {{/ resetSuccess}} | 11 | {{/ resetSuccess}} |
12 | </div> | 12 | </div> |
13 | {{> layout/footer}} | 13 | {{> layout/footer}} |
14 | +<script type="text/javascript"> | ||
15 | + (function() { | ||
16 | + var count = 5, | ||
17 | + countDown = document.getElementById('count-down'); | ||
18 | + | ||
19 | + | ||
20 | + var timer = setInterval(function(){ | ||
21 | + if (count > 1) { | ||
22 | + count--; | ||
23 | + countDown.innerHTML = count; | ||
24 | + } else { | ||
25 | + location.href = '/'; | ||
26 | + } | ||
27 | + }, 1000); | ||
28 | + })(); | ||
29 | +</script> |
-
Please register or login to post a comment