신기성

routing

...@@ -24,7 +24,7 @@ app.get('/', function(req,res){ ...@@ -24,7 +24,7 @@ app.get('/', function(req,res){
24 }); 24 });
25 }); 25 });
26 26
27 -app.get('/build/create', function(req,res,next){ 27 +app.get('/recommend', function(req,res,next){
28 fs.readFile('index.ejs',function(err,data){ 28 fs.readFile('index.ejs',function(err,data){
29 res.writeHead(200,{'Content-Type':'text/html'}); 29 res.writeHead(200,{'Content-Type':'text/html'});
30 res.end(data); 30 res.end(data);
......
...@@ -5,11 +5,7 @@ ...@@ -5,11 +5,7 @@
5 <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">
6 <link href="/static/core/style.css" rel="stylesheet" media="screen"> 6 <link href="/static/core/style.css" rel="stylesheet" media="screen">
7 <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script> 7 <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
8 - <script type="text/javascript"> 8 +
9 - $().ready(function(){
10 - alert("StarCraft2 Build Recommendation Project");
11 - });
12 - </script>
13 <script async="" src="//www.google-analytics.com/analytics.js"></script> 9 <script async="" src="//www.google-analytics.com/analytics.js"></script>
14 <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>
15 <title>StarCraft 2 Build Recommendation Project</title> 11 <title>StarCraft 2 Build Recommendation Project</title>
...@@ -21,11 +17,52 @@ ...@@ -21,11 +17,52 @@
21 17
22 <p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p> 18 <p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
23 19
24 -<br>
25 -<br>
26 <img src="/imgs" alt="StarCraft2 LOGO image"> 20 <img src="/imgs" alt="StarCraft2 LOGO image">
27 <div class="col-md-3"> 21 <div class="col-md-3">
28 - <form action="/build/create" id="searchform" action method="get"> 22 + <form action="/recommend" id="searchform" action method="get">
23 +
24 + <div id="div_id_server" class="form-group">
25 + <label for="id_server" class="control-label ">
26 + 서버
27 + </label>
28 + <div class="controls">
29 + <select class="select form-control" id="id_server" name="region">
30 + <option value="KR">한국/대만</option>
31 + <option value="AM">미국</option>
32 + <option value="CN">중국</option>
33 + <option value="EU">유럽</option>
34 + </select>
35 + </div>
36 + </div>
37 +
38 +
39 +
40 + <div id="div_id_myRace" class="form-group">
41 + <label for="id_myRace" class="control-label ">
42 + 내 종족
43 + </label>
44 + <div class="controls">
45 + <select class="select form-control" id="id_myRace" name="myRace">
46 + <option value="terran">테란</option>
47 + <option value="zerg">저그</option>
48 + <option value="protoss">프로토스</option>
49 + </select>
50 + </div>
51 + </div>
52 +
53 + <div id="div_id_race" class="form-group">
54 + <label for="id_race" class="control-label ">
55 + 상대 종족
56 + </label>
57 + <div class="controls">
58 + <select class="select form-control" id="id_race" name="race">
59 + <option value="terran">테란</option>
60 + <option value="zerg">저그</option>
61 + <option value="protoss">프로토스</option>
62 + </select>
63 + </div>
64 + </div>
65 +
29 <div id="div_id_name" class="form-group"> 66 <div id="div_id_name" class="form-group">
30 <label for="id_name" class="control-label "> 67 <label for="id_name" class="control-label ">
31 상대 아이디 68 상대 아이디
...@@ -40,10 +77,14 @@ ...@@ -40,10 +77,14 @@
40 <input value="빌드 추천!" type="submit"/> 77 <input value="빌드 추천!" type="submit"/>
41 </form> 78 </form>
42 79
43 -<%= length%> 80 +<%= top%>
44 - 81 +<br>
45 - 82 +<%=ejs_momentum%>
46 -<a class="btn btn-primary" href="/build/create/">빌드</a> 83 +<%=ejs_terran_proficiency%>
84 +<%=ejs_zerg_proficiency%>
85 +<%=ejs_protoss_proficiency%>
86 +<%=ejs_primary_race%>
87 +<%=ejs_win_rate%>
47 <br> 88 <br>
48 <br> 89 <br>
49 <a href="https://starcraft2.com/ko-kr/game">Official Site</a> 90 <a href="https://starcraft2.com/ko-kr/game">Official Site</a>
......