$(document).ready(function() { $('#user, #username').focus(); $('#submit, #login').click(function() { event.preventDefault(); // prevent PageReLoad $('.error').css('display', 'none'); // hide error msg $('#spiner_login, #spiner_login_menu').css('display', 'block'); var ValidEmail = $('#user').val() === 'plese@login.here'; // Email Value var ValidPassword = $('#password').val() === 'YourPassword'; // Password Value if (ValidEmail === false && ValidPassword === false) { // if ValEmail & ValPass are as above var delay=1500; setTimeout(function(){ $('.error, .error_menu').css('display', 'block'); $('.pesan, .error_menu').css('display', 'none'); $('#spiner_login, #spiner_login_menu').css('display', 'none'); var tutup=5000; setTimeout(function(){ $('.error, .error_menu').css('display', 'none'); $('.pesan, .error_menu').css('display', 'block'); },tutup); },delay); } }); }); $('.player').modal({backdrop: 'static'})

498 Members Online Now