2014-02-06 17:48:02 +01:00
|
|
|
/* Timer for confirmation page */
|
|
|
|
|
|
|
|
var i = 5;
|
|
|
|
|
|
|
|
function go() {
|
2016-01-21 12:36:23 +01:00
|
|
|
$("#form").submit();
|
2014-02-06 17:48:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function timer() {
|
2016-01-21 12:36:23 +01:00
|
|
|
var h = $('#timer').html();
|
|
|
|
if (i > 0) {
|
|
|
|
i--;
|
|
|
|
}
|
|
|
|
h = h.replace(/\d+/, i);
|
|
|
|
$('#timer').html(h);
|
|
|
|
window.setTimeout('timer()', 1000);
|
2014-02-06 17:48:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2016-01-21 12:36:23 +01:00
|
|
|
window.setTimeout('go()', 5000);
|
|
|
|
window.setTimeout('timer()', 1000);
|
|
|
|
});
|