Toggle navigation
Toggle navigation
This project
Loading...
Sign in
고다경
/
Open_Source_project
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-07 01:19:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e17d259c8dae3d2cee787926891772652c3a0aa5
e17d259c
1 parent
8ccc0a3e
글자위치랑 백그라운드 수정
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
5 deletions
contents/Input.html
data/AfterLogin_Inputpage.html
data/AfterLogin_Outputpage.html
db.json
main.js
sessions/jw4Ioi5FW7QuXWWzlJhDE5kbEPsJ1hAq.json
contents/Input.html
View file @
e17d259
...
...
@@ -10,7 +10,7 @@
<p
style=
"text-decoration-line: underline; font-weight:bold;"
>
오늘 먹은 것들을 적어주세요!
</p>
<input
type=
"text"
name=
"name"
style=
"width:30%; height:130px;"
placeholder=
"ex) coffee and croissant"
>
<input
type=
"text"
name=
"name"
style=
"width:30%; height:130px;"
placeholder=
"ex)
1 apple and 2 banana /
coffee and croissant"
>
<br><br><br><br>
<input
id=
"go"
type=
"submit"
value=
"Go!"
style=
" width:100px; height:80px; font-weight: bold; color:white; font-size: 25px; background-color: rgb(104, 211, 104); border-radius: 2em;"
>
...
...
data/AfterLogin_Inputpage.html
View file @
e17d259
...
...
@@ -62,7 +62,7 @@
<p
style=
"text-decoration-line: underline; font-weight:bold;"
>
오늘 먹은 것들을 적어주세요!
</p>
<input
type=
"text"
style=
"width:30%; height:130px;"
placeholder=
"ex) coffee and croissant"
>
<input
type=
"text"
style=
"width:30%; height:130px;"
placeholder=
"ex)
1 apple and 2 banana /
coffee and croissant"
>
<br><br><br><br>
<input
id=
"go"
type=
"button"
value=
"Go!"
style=
" width:100px; height:80px; font-weight: bold; color:white; font-size: 25px; background-color: rgb(104, 211, 104); border-radius: 2em;"
>
...
...
data/AfterLogin_Outputpage.html
View file @
e17d259
...
...
@@ -74,6 +74,7 @@
#container1
{
float
:
left
;
border
:
1px
solid
white
;
background-color
:
orange
;
width
:
100%
;
height
:
120%
;
}
...
...
@@ -83,14 +84,16 @@
background-color
:
rgb
(
102
,
219
,
180
);
font-weight
:
bold
;
width
:
100%
;
height
:
1
2
0%
;
height
:
1
0
0%
;
}
#container3
{
float
:
right
;
border
:
1px
solid
white
;
background-color
:
gainsboro
;
margin-right
:
5%
;
width
:
40%
;
height
:
200%
;
}
...
...
db.json
View file @
e17d259
...
...
@@ -7,6 +7,14 @@
"gender"
:
"male"
,
"height"
:
"1"
,
"weight"
:
"1"
},
{
"ID"
:
"harry"
,
"password"
:
"1234"
,
"age"
:
"20"
,
"gender"
:
"male"
,
"height"
:
"160"
,
"weight"
:
"60"
}
]
}
\ No newline at end of file
...
...
main.js
View file @
e17d259
...
...
@@ -174,14 +174,14 @@ helper.getCurrentWeatherByCityName("Seoul", (err, currentWeather) => {
var
cal
=
jresult
.
calories
;
var
user
=
db
.
get
(
'users'
).
find
({
ID
:
sID
}).
value
();
var
bmi
=
user
.
weight
/
(
user
.
height
*
user
.
height
/
100
/
100
);
var
ccc
=
container
.
L
(
`<h2>칼로리 :
${
cal
}
kcal`
,
`<p style="margin-left: 10%">"Weather NOW"</p>
var
ccc
=
container
.
L
(
`<h2
style="margin-left: 10%"
>칼로리 :
${
cal
}
kcal`
,
`<p style="margin-left: 10%">"Weather NOW"</p>
<p id="w1" style="margin-left: 10%">도시 =
${
city
}
</p>
<p id="w3" style="margin-left: 10%">현재온도 =
${
temper
}
(+" ℃")</p>
<span id="w2" style="margin-left: 10%">현재날씨 =
${
weather
}
</span>
<span id="w4" style="margin-left: 10%">날씨상세 =
${
detweather
}
</span>
<br><br>
<span id="w5" style="margin-left: 10%">바람 =
${
wind
}
(+"m/s")</span>
<span id="w6" style="margin-left: 10%">구름 =
${
cloud
}
(+"%")</span>`
,
`<h2>bmi:
${
bmi
}
</h2>`
)
<span id="w6" style="margin-left: 10%">구름 =
${
cloud
}
(+"%")</span>`
,
`<h2
style="margin-left: 10%"
>bmi:
${
bmi
}
</h2>`
)
var
html
=
template
.
HTML
(
title
,
ch
,
``
,
body
,
`#logout{
position:absolute;
right: 20ch;
...
...
sessions/jw4Ioi5FW7QuXWWzlJhDE5kbEPsJ1hAq.json
0 → 100644
View file @
e17d259
{
"cookie"
:{
"originalMaxAge"
:
null
,
"expires"
:
null
,
"httpOnly"
:
true
,
"path"
:
"/"
},
"__lastAccess"
:
1559837072152
,
"is_logined"
:
true
,
"ID"
:
"harry"
}
\ No newline at end of file
Please
register
or
login
to post a comment