Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kkl
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승규
2019-06-06 16:41:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d117ed105aa62ddec6f225bf6529636f44bc7799
d117ed10
1 parent
2690ddc4
서브밋 버튼 수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
routes/index.js
views/main.ejs
routes/index.js
View file @
d117ed1
...
...
@@ -5,12 +5,11 @@ var db = require('../lib/db');
/* GET home page. */
router
.
post
(
'/starting'
,
(
req
,
res
)
=>
{
res
.
redirect
(
`/Cname/
${
req
.
body
.
name
}
/Cbirth/
${
req
.
body
.
birth
}
`
);
})
//예보 추가
router
.
post
(
'/forecasting'
,
(
req
,
res
)
=>
{
res
.
redirect
(
`/Fname/
${
req
.
body
.
name
}
/Fbirth/
${
req
.
body
.
birth
}
`
);
})
if
(
req
.
body
.
action
==
"ontime"
)
res
.
redirect
(
`/Cname/
${
req
.
body
.
name
}
/Cbirth/
${
req
.
body
.
birth
}
`
);
else
if
(
req
.
body
.
action
==
"forecast"
)
res
.
redirect
(
`/Fname/
${
req
.
body
.
name
}
/Fbirth/
${
req
.
body
.
birth
}
`
);
});
router
.
get
(
'/Fname/:name/Fbirth/:birth'
,(
req
,
res
)
=>
{
...
...
views/main.ejs
View file @
d117ed1
...
...
@@ -88,15 +88,12 @@
<label>
생년월일
</label>
<input
type=
"text"
name=
"birth"
class=
"form-control"
placeholder=
"971009"
style=
"width:200px;"
minlength=
"6"
maxlength=
"6"
>
<br><br><br>
<input
type=
"submit"
value=
"운명보기"
class=
"btn btn-danger"
style=
"font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;"
>
<input
type=
"submit"
name=
"action"
value=
"운명보기"
class=
"btn btn-danger"
style=
"font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;"
>
<br><br>
<input
type=
"submit"
name=
"action"
value=
"미래확인"
class=
"btn btn-danger"
style=
"font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;"
>
</div>
</form>
<form
action=
"/forecasting"
method=
"post"
>
<div
class=
"/forecasting"
method=
"post"
>
<input
type=
"submit"
value=
"미래확인"
class=
"btn btn-default"
style=
"..."
>
</div>
</form>
</div>
</div>
...
...
Please
register
or
login
to post a comment