곽태식

Merge branch 'wallpaper'

const db = require('./db.js');
const secret_key = require('../keys/api_option').key;
//const secret_D_key = require('../keys/api_option').D_key;//사망교통사고 키
const requesting = require('request');
const lat = "37.239795";
const lon = "127.083240";
......@@ -23,6 +24,9 @@ module.exports = (server, app) => {
let info = {}
const req_API = (when, what) => {
//async await 사용하기 위하여 promise 사용
return new Promise((resolve, reject) => {
......@@ -44,6 +48,10 @@ module.exports = (server, app) => {
});
})
}
const API_bundle = async () => {
try {
......@@ -52,7 +60,8 @@ module.exports = (server, app) => {
Heat_index = await req_API("index", "heat"); //열지수
Discomport_index = await req_API("index", "th"); //불쾌지수
Ultra_Violet_index = await req_API("index", "uv"); //자외선지수
//let kts = await req_D_API();
info = {
heat: Heat_index.weather.wIndex.heatIndex[0].current.index, //열지수
sensible_temperature: Sensible_T.weather.wIndex.wctIndex[0].current.index, //체감온도
......@@ -67,9 +76,12 @@ module.exports = (server, app) => {
typhoon: Current_Weather.common.stormYn, //현재 태풍
time: Current_Weather.weather.minutely[0].timeObservation, // 불러온 시각
death_prob: 0 //확률
}
console.log("API INFO \n", info);
// ------------------------------ death_prob 정의 ------------------------------
info.death_prob += info.sky.substr(5) * 1 //하늘 상태에 따라 확률 증가
......

37.7 KB | W: | H:

243 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
<!-- <!DOCTYPE html>
<html>
<html lang="ko">
<head>
<!-- font -->
......@@ -8,7 +8,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Highcharts Example</title>
<title>당신이 지금 죽을 확률은?</title>
<style type="text/css">
html {
......@@ -39,7 +39,7 @@
<script src="modules/exporting.js"></script>
<script src="modules/export-data.js"></script>
<img src="images/background.jpg" alt="" style="z-index:-1; min-width: 100%; min-height: 100%">
<img src="images/indexWallpaper.jpg" alt="" style="z-index:-1; min-width: 100%; min-height: 100%"width="50%" height="100%">
<div id="banner">
<div id="container1" style="width:1260px; height: 400px; margin: 0 auto;"></div>
......
<!DOCTYPE <!DOCTYPE html>
<html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<title>당신이 죽을 확률은?</title>
<!-- font -->
<link href="https://fonts.googleapis.com/css?family=Nanum+Brush+Script&amp;subset=korean" rel="stylesheet">
......@@ -71,7 +72,8 @@
</head>
<body>
<img src="images/background.jpg" alt="" style="z-index:-1; min-width: 100%; min-height: 100%">
<img src="images/background.jpg" alt="" style="z-index:-1; min-width: 100%; min-height: 100%" height="100%" width="50%">
<div id="banner">
<div style="width:100%; text-align: center; padding-top:170px;">
<h1 style="font-size:90px;">당신이 지금 죽을 확률은?</h1>
......@@ -84,16 +86,16 @@
<input type="text" name="name" class="form-control" placeholder="김철수" style="width:200px;">
&nbsp &nbsp&nbsp&nbsp
<label>생년월일</label>
<input type="text" name="birth" class="form-control" placeholder="971009" style="width:200px;">
<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-default" style="font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;">
<input type="submit" value="운명보기" class="btn btn-default" style="font-family: 'Yeon Sung', cursive; width:100px;font-weight: bold; font-size: 18px; background-color: white;">
</div>
</form>
</div>
</div>
<div id="footer">오픈소스SW개발 조민지 강환석 배희수</div>
<div id="footer">오픈소스SW개발 곽태식 이승규 강병호</div>
</body>
</html>
\ No newline at end of file
......