신기성

마스터로 이전

...@@ -7,7 +7,9 @@ ejs_terran_proficiency: ' ', ...@@ -7,7 +7,9 @@ ejs_terran_proficiency: ' ',
7 ejs_zerg_proficiency: ' ', 7 ejs_zerg_proficiency: ' ',
8 ejs_protoss_proficiency: ' ', 8 ejs_protoss_proficiency: ' ',
9 ejs_primary_race: ' ', 9 ejs_primary_race: ' ',
10 -ejs_win_rate: ' '}); 10 +ejs_win_rate: ' ',
11 +ejs_recommend_build_1: ' ',
12 +ejs_recommend_build_2: ' '});
11 }); 13 });
12 14
13 app.get('/recommend',function(req,res,next){ 15 app.get('/recommend',function(req,res,next){
...@@ -237,6 +239,13 @@ js_protoss_proficiency="상대는 프로토스 '"+protoss_proficiency+"'입니 ...@@ -237,6 +239,13 @@ js_protoss_proficiency="상대는 프로토스 '"+protoss_proficiency+"'입니
237 js_primary_race="상대의 주 종족은 '"+primary_race+"'입니다."; 239 js_primary_race="상대의 주 종족은 '"+primary_race+"'입니다.";
238 js_win_rate="상대의 이번 시즌 전체 승률은 '"+win_rate+"'입니다."; 240 js_win_rate="상대의 이번 시즌 전체 승률은 '"+win_rate+"'입니다.";
239 241
242 +fs.readFile('/PvP/Allin/PvP_AllIn1_DTRush.txt','utf8',function(err,data){
243 + js_recommend_build_1=data;
244 +})
245 +
246 +
247 +
248 +
240 249
241 res.render('index',{top: '분석 결과', 250 res.render('index',{top: '분석 결과',
242 ejs_momentum: js_momentum, 251 ejs_momentum: js_momentum,
...@@ -244,7 +253,9 @@ ejs_terran_proficiency: js_terran_proficiency, ...@@ -244,7 +253,9 @@ ejs_terran_proficiency: js_terran_proficiency,
244 ejs_zerg_proficiency: js_zerg_proficiency, 253 ejs_zerg_proficiency: js_zerg_proficiency,
245 ejs_protoss_proficiency: js_protoss_proficiency, 254 ejs_protoss_proficiency: js_protoss_proficiency,
246 ejs_primary_race: js_primary_race, 255 ejs_primary_race: js_primary_race,
247 -ejs_win_rate: js_win_rate}); 256 +ejs_win_rate: js_win_rate,
257 +ejs_recommend_build_1: ' ',
258 +ejs_recommend_build_2: ' '});
248 //build recommend command 259 //build recommend command
249 260
250 // 261 //
......
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="ko-kr"> 2 <html lang="ko-kr">
3 <head> 3 <head>
4 - <style>
5 - #myHeader {
6 - background-color: lightblue;
7 - color: black;
8 - padding: 10px;
9 - text-align: center;
10 - }
11 - </style>
12 -
13 -<h5 id="myHeader">StarCraft 2 Build Recommendation Project</h5>
14 <meta charset="utf-8"> 4 <meta charset="utf-8">
15 <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen"> 5 <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen">
16 <link href="/static/core/style.css" rel="stylesheet" media="screen"> 6 <link href="/static/core/style.css" rel="stylesheet" media="screen">
...@@ -19,8 +9,14 @@ ...@@ -19,8 +9,14 @@
19 <script async="" src="//www.google-analytics.com/analytics.js"></script> 9 <script async="" src="//www.google-analytics.com/analytics.js"></script>
20 <script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script> 10 <script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
21 <title>StarCraft 2 Build Recommendation Project</title> 11 <title>StarCraft 2 Build Recommendation Project</title>
12 +
22 <body> 13 <body>
23 14
15 +
16 +
17 +
18 +<p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
19 +
24 <img src="/imgs" alt="StarCraft2 LOGO image"> 20 <img src="/imgs" alt="StarCraft2 LOGO image">
25 <div class="col-md-3"> 21 <div class="col-md-3">
26 <form action="/recommend" id="searchform" action method="get"> 22 <form action="/recommend" id="searchform" action method="get">
...@@ -59,7 +55,7 @@ ...@@ -59,7 +55,7 @@
59 상대 종족 55 상대 종족
60 </label> 56 </label>
61 <div class="controls"> 57 <div class="controls">
62 - <select class="select form-control" id="id_race" name="race"> 58 + <select class="select form-control" id="id_race" name="enemyRace">
63 <option value="terran">테란</option> 59 <option value="terran">테란</option>
64 <option value="zerg">저그</option> 60 <option value="zerg">저그</option>
65 <option value="protoss">프로토스</option> 61 <option value="protoss">프로토스</option>
...@@ -72,23 +68,35 @@ ...@@ -72,23 +68,35 @@
72 상대 아이디 68 상대 아이디
73 </label> 69 </label>
74 <div class="controls"> 70 <div class="controls">
75 - <input class="textinput textInput form-control" id="id_name" maxlength="20" name="name" type="text"> 71 + <input class="textinput textInput form-control" id="id_name" maxlength="20" name="enemyName" type="text">
76 </div> 72 </div>
77 </div> 73 </div>
78 74
75 +
76 +
79 <input value="빌드 추천!" type="submit"/> 77 <input value="빌드 추천!" type="submit"/>
80 </form> 78 </form>
81 79
82 <%= top%> 80 <%= top%>
83 <br> 81 <br>
84 -<%=ejs_momentum%> 82 +<%=ejs_momentum%><br>
85 -<%=ejs_terran_proficiency%> 83 +<%=ejs_terran_proficiency%><br>
86 -<%=ejs_zerg_proficiency%> 84 +<%=ejs_zerg_proficiency%><br>
87 -<%=ejs_protoss_proficiency%> 85 +<%=ejs_protoss_proficiency%><br>
88 -<%=ejs_primary_race%> 86 +<%=ejs_primary_race%><br>
89 <%=ejs_win_rate%> 87 <%=ejs_win_rate%>
90 <br> 88 <br>
89 +<h3>
90 + 추천빌드 1 :
91 +</h3>
92 +<%=ejs_recommend_build_1%>
91 <br> 93 <br>
94 +<h3>
95 + 추천빌드 2 :
96 +</h3>
97 +<%=ejs_recommend_build_2%>
98 +<br>
99 +
92 <a href="https://starcraft2.com/ko-kr/game">Official Site</a> 100 <a href="https://starcraft2.com/ko-kr/game">Official Site</a>
93 101
94 </body> 102 </body>
......