26 lines
No EOL
745 B
JavaScript
26 lines
No EOL
745 B
JavaScript
$(function() {
|
|
|
|
$('#login-form-link').click(function(e) {
|
|
$("#login-form").delay(100).fadeIn(100);
|
|
$("#register-form").fadeOut(100);
|
|
$('#register-form-link').removeClass('active');
|
|
$(this).addClass('active');
|
|
e.preventDefault();
|
|
});
|
|
$('#register-form-link').click(function(e) {
|
|
$("#register-form").delay(100).fadeIn(100);
|
|
$("#login-form").fadeOut(100);
|
|
$('#login-form-link').removeClass('active');
|
|
$(this).addClass('active');
|
|
e.preventDefault();
|
|
});
|
|
|
|
});
|
|
|
|
function check(input) {
|
|
if (input.value != document.getElementById('password').value) {
|
|
input.setCustomValidity('Password Must be Matching.');
|
|
} else {
|
|
// input is valid -- reset the error message
|
|
input.setCustomValidity('');
|
|
}} |