initial commit after server failure
This commit is contained in:
22
views/js/d.captcha.js
Executable file
22
views/js/d.captcha.js
Executable file
@@ -0,0 +1,22 @@
|
||||
var time = 9;
|
||||
|
||||
$(window).ready(function() {
|
||||
var interval = setInterval(function() {
|
||||
if (time > 0) {
|
||||
$("#captchahidden").val(time);
|
||||
$("#captchasec").html(time+" s");
|
||||
time--;
|
||||
}
|
||||
else {
|
||||
time--;
|
||||
$("#captchahidden").val(time);
|
||||
$("#captchatext").remove();
|
||||
$("#captchasubmit").removeAttr('disabled');
|
||||
$("#captchasubmit").css("display", "block");
|
||||
time--;
|
||||
$("#captchahidden").val(time);
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user