From 3b213f91ce946cbc5ec39be26cad0f9ddf635398 Mon Sep 17 00:00:00 2001 From: enavid Date: Fri, 18 Mar 2022 01:05:39 +0330 Subject: [PATCH] Fix some bugs. --- client/js/signin.js | 15 +++------------ client/public/style/sign.css | 2 +- client/public/style/style.css | 6 +++--- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/client/js/signin.js b/client/js/signin.js index 077a6a1..4aeac2f 100644 --- a/client/js/signin.js +++ b/client/js/signin.js @@ -42,20 +42,12 @@ function showError(input, message) { small.innerText = message; } -//Show success outline -function showSuccess(input) { - const formControl = input.parentElement; - formControl.className = 'form-control success'; -} //Check required fields function checkRequired(inputArray) { inputArray.forEach(function (input) { if (input.value.trim() === '') { showError(input, `${getFieldName(input)} is required`); } - else { - showSuccess(input) - } }); } @@ -74,10 +66,9 @@ function checkLength(input, min, max) { showError(input, `${getFieldName(input)} must be less than ${max} characters`); return false; } - else { - showSuccess(input); - return true; - } + + return true; + } //Send data to server diff --git a/client/public/style/sign.css b/client/public/style/sign.css index ada4d10..0193235 100644 --- a/client/public/style/sign.css +++ b/client/public/style/sign.css @@ -10,7 +10,7 @@ } body{ - background-color:#DDDDDD; + background-color:#E0E0E0; font-family: 'Open Sans','sans-serif'; display: flex; align-items: center; diff --git a/client/public/style/style.css b/client/public/style/style.css index ba0bec7..23a968e 100644 --- a/client/public/style/style.css +++ b/client/public/style/style.css @@ -7,7 +7,7 @@ } body { - background-color:#DDDDDD; + background-color:#E0E0E0; font-family: 'Open Sans','sans-serif'; display: flex; align-items: center; @@ -21,7 +21,7 @@ body { flex-direction: column; width:500px; height: 95vh; - background-color: #DDDDDD; + background-color: #F6F6F6; background-attachment: fixed; background-size: cover; border-radius: 10px; @@ -232,7 +232,7 @@ a { background-color:#3498db; } #logout{ - background-color:#3498db; + background-color:#555555; color: white; } #addButton{