vitro/webapp/web/js/login/loginUtils.js

20 lines
No EOL
652 B
JavaScript

/* $This file is distributed under the terms of the license in /doc/license.txt$ */
$(document).ready(function(){
// login form is hidden by default; use JavaScript to reveal
$("#login").removeClass('hidden');
// focus on email or newpassword field
$('.focus').focus();
// fade in error alerts
$('section#error-alert').css('display', 'none').fadeIn(1500);
// fade in fash-message when user log out
$('section#flash-message').css('display', 'none').fadeIn(1500);
// fade out flash-message when user logs in
$('section#welcome-message').css('display', 'block').delay(2500).fadeOut(1500);
});