23 lines
568 B
JavaScript
23 lines
568 B
JavaScript
$(function()
|
|
{
|
|
if(expired)
|
|
{
|
|
setInterval(function()
|
|
{
|
|
var time = $('#time').text();
|
|
if(time == 0) window.location.href = $('.alert .btn').attr('href');
|
|
$('#time').text(time - 1 <= 0 ? 0 : time - 1);
|
|
}, 1000);
|
|
}
|
|
|
|
$('#password1').attr('id', 'password');
|
|
|
|
$('#submit').click(function()
|
|
{
|
|
var password1 = $('#password').val();
|
|
var passwordStrength = computePasswordStrength(password1);
|
|
|
|
$("form input[id=passwordStrength]").val(passwordStrength);
|
|
})
|
|
})
|