이정호

10 matches win/lose champ kda edited

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