김용재

진짜 최종 글자 정리

......@@ -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);
......
{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"__lastAccess":1559839070317,"is_logined":true,"ID":"harry"}
\ No newline at end of file