-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from April-37/Basic-모수진-sprint4
[모수진] Sprint4
- Loading branch information
Showing
9 changed files
with
115 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const emailForm = document.getElementById("email"); | ||
const pwdForm = document.getElementById("password"); | ||
|
||
|
||
|
||
emailForm.addEventListener("focusout", (event) => { | ||
var emailValue=emailForm.value; | ||
if(emailValue == '') { | ||
event.target.style.border='1px solid var(--red)'; | ||
//todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) | ||
pwdForm.addEventListener("focusout",(event) => { | ||
var pwdValue=pwdForm.value; | ||
if(pwdValue == '') { | ||
event.target.style.border='1px solid var(--red)'; | ||
// todo: print error message | ||
} | ||
else if(pwdValue.length < 8 ) { | ||
event.target.style.border='1px solid var(--red)'; //todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const emailForm = document.getElementById("email"); | ||
const nickForm = document.getElementById("nickname"); | ||
const pwdForm = document.getElementById("password"); | ||
const pwdConfirmForm = document.getElementById("passwordConfirm"); | ||
|
||
|
||
emailForm.addEventListener("focusout", (event) => { | ||
var emailValue=emailForm.value; | ||
if(emailValue == '') { | ||
event.target.style.border='1px solid var(--red)'; | ||
//todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) | ||
nickForm.addEventListener("focusout",(event) => { | ||
var nickValue=nickForm.value; | ||
if(nickValue == '') { | ||
event.target.style.border='1px solid var(--red)'; | ||
//todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) | ||
pwdForm.addEventListener("focusout",(event) => { | ||
var pwdValue=pwdForm.value; | ||
if(pwdValue == '') { | ||
event.target.style.border='1px solid var(--red)'; | ||
// todo: print error message | ||
} | ||
else if(pwdValue.length < 8 ) { | ||
event.target.style.border='1px solid var(--red)'; //todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) | ||
pwdConfirmForm.addEventListener("focusout",(event) => { | ||
var pwdValue=pwdForm.value; | ||
var pwdConfirmValue=pwdConfirmForm.value; | ||
if(pwdValue!=pwdConfirmValue) { | ||
event.target.style.border='1px solid var(--red)'; | ||
//todo: print error message | ||
} | ||
else { | ||
event.target.style.border='0'; | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters