BootstrapAdmin/Bootstrap.Admin/Scripts/lock.js

17 lines
440 B
JavaScript
Raw Normal View History

2016-11-06 02:11:03 +08:00
$(function () {
$('body').addClass('lock-screen');
2016-11-06 12:28:53 +08:00
$('#time').text((new Date()).format('HH:mm:ss'));
2016-11-06 02:11:03 +08:00
2016-11-06 12:28:53 +08:00
setInterval(function () {
$('#time').text((new Date()).format('HH:mm:ss'));
}, 500);
2016-11-06 02:11:03 +08:00
2016-11-06 12:28:53 +08:00
$.extend($.validator.messages, { required: "请输入密码" });
// validate
$('form').autoValidate({
password: {
required: true,
maxlength: 50
}
});
2016-11-06 02:11:03 +08:00
});