이정호

10 matches win/lose champ kda edited

...@@ -8,7 +8,7 @@ app.set('view engine', 'ejs'); ...@@ -8,7 +8,7 @@ app.set('view engine', 'ejs');
8 app.engine('html', require('ejs').renderFile); 8 app.engine('html', require('ejs').renderFile);
9 9
10 var server = app.listen(3000, function(){ 10 var server = app.listen(3000, function(){
11 - console.log('good'); 11 + console.log('Success');
12 }); 12 });
13 13
14 app.use(express.static('public')); 14 app.use(express.static('public'));
...\ No newline at end of file ...\ No newline at end of file
......
This diff is collapsed. Click to expand it.
...@@ -2,7 +2,7 @@ module.exports = function(app){ ...@@ -2,7 +2,7 @@ module.exports = function(app){
2 2
3 var request = require("request"); 3 var request = require("request");
4 var urlenconde = require('urlencode'); 4 var urlenconde = require('urlencode');
5 -var apikey = "RGAPI-3b791531-e731-4349-bab0-53068a86608c"//api 5 +var apikey = "RGAPI-a0598a8a-a326-4c0d-a115-3f0ae332e86f"//api
6 6
7 var profileIconId; //아이콘 번호 7 var profileIconId; //아이콘 번호
8 var revisionDate; //수정날짜 8 var revisionDate; //수정날짜
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
42 <tr><td><%= "Tier : " + c_tier + " " + c_rank + " / " + c_leaguePoint + "점"%></td></tr> 42 <tr><td><%= "Tier : " + c_tier + " " + c_rank + " / " + c_leaguePoint + "점"%></td></tr>
43 <tr><td><%= "Win : " + c_wins + " / Lose : " + c_losses%></td></tr> 43 <tr><td><%= "Win : " + c_wins + " / Lose : " + c_losses%></td></tr>
44 <tr><td><%= "승률 : " + ((c_wins/(c_wins+c_losses))*100).toFixed(2) + "%" %></td></tr> 44 <tr><td><%= "승률 : " + ((c_wins/(c_wins+c_losses))*100).toFixed(2) + "%" %></td></tr>
45 - <tr><td><%= "캐리력 : " + (c_wins/c_losses*2).toFixed(2) %></td></tr>
46 </tbody> 45 </tbody>
47 </table> 46 </table>
48 <br></br> 47 <br></br>
...@@ -53,12 +52,19 @@ ...@@ -53,12 +52,19 @@
53 <% for (var i=0; i<c_rotation.length-1; i++){ %> 52 <% for (var i=0; i<c_rotation.length-1; i++){ %>
54 <img src= <%=c_rotation[i]%> width=50, height=50> 53 <img src= <%=c_rotation[i]%> width=50, height=50>
55 <% } %> 54 <% } %>
55 + </div>
56 <br></br> 56 <br></br>
57 <% for (var i = 0; i < 10; i++){ %> 57 <% for (var i = 0; i < 10; i++){ %>
58 - <img src = <%= c_picture[i]%> width = 50, height = 50> 58 + <% if (c_win[i]) { %>
59 + <%= "승리" %>
60 + <% } %>
61 + <% if (!c_win[i]) { %>
62 + <%= "패배" %>
63 + <% } %>
64 + <img src= <%= c_pic[i]%> width=50, height=50>
65 + <%= c_kills[i] + " / " + c_deaths[i] + " / " + c_assists[i] %>
59 <br></br> 66 <br></br>
60 <% } %> 67 <% } %>
61 - <%= c_kills + " / " + c_deaths + " / " + c_assists %>
62 </div> 68 </div>
63 </body> 69 </body>
64 </html> 70 </html>
...\ No newline at end of file ...\ No newline at end of file
......