이정호

champ image added

......@@ -151,6 +151,13 @@ var rotation_champ = new Array();
var gameId = info_matchList["matches"][0]["gameId"];
var championId = info_matchList["matches"][0]["champion"];
console.log(champ_name[0]);
for (var i = 0; i < champ_id.length; i++) {
for (j in champion) {
if (champion[j]["key"] == championId) {
picture = "http://ddragon.leagueoflegends.com/cdn/9.23.1/img/champion/" + champion[j]["id"] + ".png";
}
}
}
}
var matchUrl = "https://kr.api.riotgames.com/lol/match/v4/matches/" + urlenconde(gameId) + "?api_key=" + apikey;
......@@ -238,6 +245,7 @@ var rotation_champ = new Array();
c_kills : kills,
c_deaths : deaths,
c_assists : assists,
c_picture : picture
});
});
});
......
......@@ -54,6 +54,7 @@
<img src= <%=c_rotation[i]%> width=50, height=50>
<% } %>
<br></br>
<img src = <%= c_picture%> width = 50, height = 50>
<%= c_kills + " / " + c_deaths + " / " + c_assists %>
</div>
</body>
......