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-06 19:06:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a49148f6530c0ca64ade14f4099147e22232c0e
3a49148f
1 parent
16e2f9ea
10 matches win/lose champ kda edited
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
LOL_Helper/app.js
LOL_Helper/router/Test.js
LOL_Helper/router/main.js
LOL_Helper/views/index.ejs
LOL_Helper/app.js
View file @
3a49148
...
...
@@ -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
...
...
LOL_Helper/router/Test.js
View file @
3a49148
This diff is collapsed. Click to expand it.
LOL_Helper/router/main.js
View file @
3a49148
...
...
@@ -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
;
//수정날짜
...
...
LOL_Helper/views/index.ejs
View file @
3a49148
...
...
@@ -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
...
...
Please
register
or
login
to post a comment