Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이정호
/
lolhelper
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이정호
2020-06-03 19:46:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2b12837ec9823427dfe4f661113e2636a7c66d97
2b12837e
1 parent
cae07600
champ image added
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
LOL_Helper/router/Test.js
LOL_Helper/views/index.ejs
LOL_Helper/router/Test.js
View file @
2b12837
...
...
@@ -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
});
});
});
...
...
LOL_Helper/views/index.ejs
View file @
2b12837
...
...
@@ -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>
...
...
Please
register
or
login
to post a comment