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:38:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
230098ebcdb0e43f6de9851aec5514aa6f4352c6
230098eb
1 parent
e17d259c
진짜 최종 글자 정리
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
36 deletions
main.js
sessions/BBH2E_jH0GzTAE03H9yr9fOQyyHK2n2j.json
main.js
View file @
230098e
...
...
@@ -174,47 +174,56 @@ 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 style="margin-left: 10%">칼로리 :
${
cal
}
kcal`
,
`<p style="margin-left: 10%">"Weather NOW"</p>
var
youkcal
=
user
.
height
*
user
.
height
/
100
/
100
*
21.5
*
35
;
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>
<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 style="margin-left: 10%">bmi:
${
bmi
}
</h2>`
)
<span id="w5" style="margin-left: 10%">바람 =
${
wind
}
m/s</span>
<span id="w6" style="margin-left: 10%">구름 =
${
cloud
}
%</span>`
,
`<h2 style="margin-left: 10%">bmi:
${
bmi
}
</h2>
<h2 style="margin-left: 10%"> 하루 권장 칼로리:
${
youkcal
}
</h2>`
)
var
html
=
template
.
HTML
(
title
,
ch
,
``
,
body
,
`#logout{
position:absolute;
right: 20ch;
}
#section{
position: absolute;
margin-left:5%;
float:left;
width: 40%;
height: 90%;
}
#container1{
float: left;
border: 1px solid white;
width: 100%;
height: 90%;
}
#container2{
float: left;
border: 1px solid white;
background-color: rgb(102, 219, 180);
width: 100%;
height: 120%;
}
#container3{
float: right;
border: 1px solid white;
margin-right:5%;
width: 40%;
height: 90%;
}`
,
ccc
);
position:absolute;
right: 20ch;
}
#section{
position: absolute;
margin-left:5%;
float:left;
width: 40%;
height: 90%;
}
#container1{
float: left;
border: 1px solid white;
background-color: orange;
width: 100%;
height: 60%;
}
#container2{
float: left;
border: 1px solid white;
background-color: rgb(102, 219, 180);
font-weight: bold;
width: 100%;
height: 100%;
}
#container3{
float: right;
border: 1px solid white;
background-color: gainsboro;
margin-right:5%;
width: 40%;
height: 200%;
}`
,
ccc
);
res
.
send
(
html
);
...
...
sessions/BBH2E_jH0GzTAE03H9yr9fOQyyHK2n2j.json
0 → 100644
View file @
230098e
{
"cookie"
:{
"originalMaxAge"
:
null
,
"expires"
:
null
,
"httpOnly"
:
true
,
"path"
:
"/"
},
"__lastAccess"
:
1559839070317
,
"is_logined"
:
true
,
"ID"
:
"harry"
}
\ No newline at end of file
Please
register
or
login
to post a comment