Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
minsung
2020-04-24 18:47:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e21dc12418a99153ea4f9025818d90b0c4c9ab85
e21dc124
1 parent
3751fe11
final commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
12 deletions
front/web/JS/validation.js
front/web/signinmain.html
front/web/JS/validation.js
View file @
e21dc12
...
...
@@ -50,6 +50,31 @@ function checkPasswordMatch() {
$
(
"#message"
).
html
(
"일치."
);
}
$
(
document
).
ready
(
function
()
{
$
(
'#eValidation'
).
keyup
(
function
()
{
var
re
=
/^
(([^
<>()[
\]\\
.,;:
\s
@
\"]
+
(\.[^
<>()[
\]\\
.,;:
\s
@
\"]
+
)
*
)
|
(\"
.+
\"))
@
((\[[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\])
|
(([
a-zA-Z
\-
0-9
]
+
\.)
+
[
a-zA-Z
]{2,}))
$/
;
if
(
re
.
test
(
$
(
this
).
val
()))
{
$
(
this
).
css
(
"borderColor"
,
"green"
);
}
else
{
$
(
this
).
css
(
"borderColor"
,
"red"
);
}
});
});
$
(
document
).
ready
(
function
()
{
$
(
'#fValidation, #sValidation'
).
on
(
'keyup'
,
function
()
{
if
(
$
(
'#fValidation'
).
val
()
==
$
(
'#sValidation'
).
val
())
{
$
(
'#message'
).
html
(
'일치'
).
css
(
'color'
,
'green'
);
}
else
$
(
'#message'
).
html
(
'비밀번호가 일치 하지않습니다.'
).
css
(
'color'
,
'red'
);
});
});
/*
$(document).ready(function () {
$('#eValidation').keyup(function () {
...
...
front/web/signinmain.html
View file @
e21dc12
...
...
@@ -11,16 +11,7 @@
<script
src=
"https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"
>
</script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
'#fValidation, #sValidation'
).
on
(
'keyup'
,
function
()
{
if
(
$
(
'#fValidation'
).
val
()
==
$
(
'#sValidation'
).
val
())
{
$
(
'#message'
).
html
(
'일치'
).
css
(
'color'
,
'green'
);
}
else
$
(
'#message'
).
html
(
'비밀번호가 일치 하지않습니다.'
).
css
(
'color'
,
'red'
);
});
$
(
document
).
ready
(
function
()
{
$
(
'#eValidation'
).
keyup
(
function
()
{
var
re
=
/^
(([^
<>()[
\]\\
.,;:
\s
@
\"]
+
(\.[^
<>()[
\]\\
.,;:
\s
@
\"]
+
)
*
)
|
(\"
.+
\"))
@
((\[[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\])
|
(([
a-zA-Z
\-
0-9
]
+
\.)
+
[
a-zA-Z
]{2,}))
$/
;
...
...
@@ -32,6 +23,7 @@ $('#eValidation').keyup(function () {
}
else
{
$
(
this
).
css
(
"borderColor"
,
"red"
);
ref
=
{
eValidation
.
email
}
}
});
});
...
...
@@ -40,11 +32,15 @@ $(document).ready(function () {
$
(
'#fValidation, #sValidation'
).
on
(
'keyup'
,
function
()
{
if
(
$
(
'#fValidation'
).
val
()
==
$
(
'#sValidation'
).
val
())
{
$
(
'#message'
).
html
(
'일치'
).
css
(
'color'
,
'green'
);
}
else
$
(
'#message'
).
html
(
'비밀번호가 일치 하지않습니다.'
).
css
(
'color'
,
'red'
);
});
});
</script>
</head>
...
...
@@ -73,10 +69,11 @@ $('#fValidation, #sValidation').on('keyup', function () {
<input
class=
"inputset"
id=
"fValidation"
type=
"password"
name=
"password"
placeholder=
"비밀번호를 입력하세요."
><br>
<label
for=
"password"
>
비밀번호 확인:
</label><br>
<input
class=
"inputset"
id=
"sValidation"
type=
"password"
name=
"checkpassword"
placeholder=
"비밀번호를 입력하세요."
>
<br>
<input
class=
"inputset"
id=
"sValidation"
type=
"password"
name=
"checkpassword"
placeholder=
"비밀번호를 입력하세요."
>
<br>
<span
id=
'message'
></span>
<br>
<br>
<label
for=
"name"
>
이름:
</label><br>
<input
class=
"inputset"
type=
"text"
name=
"name"
placeholder=
"이름을 입력하세요."
><br>
...
...
Please
register
or
login
to post a comment