Showing
10 changed files
with
11 additions
and
20 deletions
387 KB
lolinfo/ranked-emblems/Emblem_Grandmaster.png
→
lolinfo/public/ranked-emblems/Emblem_Grandmaster.png
357 KB
305 KB
... | @@ -67,24 +67,15 @@ module.exports = function(app){ | ... | @@ -67,24 +67,15 @@ module.exports = function(app){ |
67 | for(var i=0; i < champions_length; i++){ | 67 | for(var i=0; i < champions_length; i++){ |
68 | champ_point[i] = (info_champ_json[i]["championPoints"]); | 68 | champ_point[i] = (info_champ_json[i]["championPoints"]); |
69 | champ_id[i] = info_champ_json[i]["championId"]; | 69 | champ_id[i] = info_champ_json[i]["championId"]; |
70 | - | ||
71 | } | 70 | } |
72 | var rotationUrl = "https://kr.api.riotgames.com/lol/platform/v3/champion-rotations?api_key="+apikey; | 71 | var rotationUrl = "https://kr.api.riotgames.com/lol/platform/v3/champion-rotations?api_key="+apikey; |
73 | request(rotationUrl,function(error,response,body){ | 72 | request(rotationUrl,function(error,response,body){ |
74 | var info_rotation = JSON.parse(body); | 73 | var info_rotation = JSON.parse(body); |
75 | var keys = Object.keys(info_rotation); | 74 | var keys = Object.keys(info_rotation); |
76 | for(var k =0; k < info_rotation[keys[0]].length;k++) | 75 | for(var k =0; k < info_rotation[keys[0]].length;k++) |
77 | - { | ||
78 | rotation_champ[k] = info_rotation[keys[0]][k]; | 76 | rotation_champ[k] = info_rotation[keys[0]][k]; |
79 | - console.log("rotation_champ:"+rotation_champ[k]); | ||
80 | - console.log("로테길이:"+rotation_champ.length); | ||
81 | - } | ||
82 | for(var k =0; k < info_rotation[keys[1]].length;k++) | 77 | for(var k =0; k < info_rotation[keys[1]].length;k++) |
83 | - { | ||
84 | rotation_champ_newbie[k] = info_rotation[keys[1]][k]; | 78 | rotation_champ_newbie[k] = info_rotation[keys[1]][k]; |
85 | - console.log("rotation_champ:"+rotation_champ_newbie[k]); | ||
86 | - console.log("로테길이:"+rotation_champ_newbie.length); | ||
87 | - } | ||
88 | 79 | ||
89 | 80 | ||
90 | 81 | ||
... | @@ -143,23 +134,23 @@ module.exports = function(app){ | ... | @@ -143,23 +134,23 @@ module.exports = function(app){ |
143 | var leaguePoints = info_user_league_json[0]["leaguePoints"]; | 134 | var leaguePoints = info_user_league_json[0]["leaguePoints"]; |
144 | var img_tier; | 135 | var img_tier; |
145 | if(tier == "MASTER"){ | 136 | if(tier == "MASTER"){ |
146 | - img_tier = "https://i.imgur.com/nvQjonh.png"; | 137 | + img_tier = "/ranked-emblems/Emblem_Master.png"; |
147 | }else if(tier == "CHALLENGER"){ | 138 | }else if(tier == "CHALLENGER"){ |
148 | - img_tier = "https://i.imgur.com/sbK1Edj.png"; | 139 | + img_tier = "/ranked-emblems/Emblem_Challenger.png"; |
149 | }else if(tier == "DIAMOND"){ | 140 | }else if(tier == "DIAMOND"){ |
150 | - img_tier = "https://i.imgur.com/5VBu8PF.png" | 141 | + img_tier = "/ranked-emblems/Emblem_Diamond.png" |
151 | }else if(tier == "PLATINUM"){ | 142 | }else if(tier == "PLATINUM"){ |
152 | - img_tier = "https://i.imgur.com/Eqi6858.png" | 143 | + img_tier = "/ranked-emblems/Emblem_Platinum.png" |
153 | }else if(tier == "GRANDMASTER"){ | 144 | }else if(tier == "GRANDMASTER"){ |
154 | - img_tier = "https://i.imgur.com/mcEhz1o.png" | 145 | + img_tier = "/ranked-emblems/Emblem_Grandmaster.png" |
155 | }else if(tier == "GOLD"){ | 146 | }else if(tier == "GOLD"){ |
156 | - img_tier = "https://i.imgur.com/Ec4hPuO.png" | 147 | + img_tier = "/ranked-emblems/Emblem_Gold.png" |
157 | }else if(tier == "SILVER"){ | 148 | }else if(tier == "SILVER"){ |
158 | - img_tier = "https://i.imgur.com/GKnPu7s.png" | 149 | + img_tier = "/ranked-emblems/Emblem_Silver.png" |
159 | }else if(tier == "BRONZE"){ | 150 | }else if(tier == "BRONZE"){ |
160 | - img_tier ="https://i.imgur.com/TPZVXIr.png" | 151 | + img_tier ="/ranked-emblems/Emblem_Bronze.png" |
161 | }else{ | 152 | }else{ |
162 | - img_tier = "https://i.imgur.com/kcdoC4r.png" | 153 | + img_tier = "/ranked-emblems/Emblem_Iron.png" |
163 | } | 154 | } |
164 | } | 155 | } |
165 | champ_name[champ_name.length] = "total"; | 156 | champ_name[champ_name.length] = "total"; |
... | @@ -275,8 +266,6 @@ module.exports = function(app){ | ... | @@ -275,8 +266,6 @@ module.exports = function(app){ |
275 | }; | 266 | }; |
276 | } | 267 | } |
277 | 268 | ||
278 | - console.log(spectator); | ||
279 | - | ||
280 | var matchUrl = "https://kr.api.riotgames.com/lol/match/v4/matchlists/by-account/" + accountId + "?api_key=" + apikey; | 269 | var matchUrl = "https://kr.api.riotgames.com/lol/match/v4/matchlists/by-account/" + accountId + "?api_key=" + apikey; |
281 | request(matchUrl,function(error,response,body) { | 270 | request(matchUrl,function(error,response,body) { |
282 | var match_json = JSON.parse(body).matches; | 271 | var match_json = JSON.parse(body).matches; |
... | @@ -630,6 +619,8 @@ module.exports = function(app){ | ... | @@ -630,6 +619,8 @@ module.exports = function(app){ |
630 | 619 | ||
631 | 620 | ||
632 | 621 | ||
622 | + | ||
623 | + | ||
633 | res.render('index', { title: req.params.username , | 624 | res.render('index', { title: req.params.username , |
634 | c_id: champ_id, | 625 | c_id: champ_id, |
635 | c_name: champ_name, | 626 | c_name: champ_name, | ... | ... |
-
Please register or login to post a comment