Showing
1 changed file
with
19 additions
and
18 deletions
... | @@ -85,29 +85,30 @@ getHTML() | ... | @@ -85,29 +85,30 @@ getHTML() |
85 | 85 | ||
86 | //#region 대회 별 전적 | 86 | //#region 대회 별 전적 |
87 | var tr = $('div.scriptorium').children('div.listTable').eq(3).find('table tbody').children(); | 87 | var tr = $('div.scriptorium').children('div.listTable').eq(3).find('table tbody').children(); |
88 | - var competitionList = []; | 88 | + var competitionData = {}; |
89 | 89 | ||
90 | tr.each(function (i,elem) { | 90 | tr.each(function (i,elem) { |
91 | - competitionList[i] = { | 91 | + var td = $(this).children(); |
92 | - name: $(this).children().eq(0).text().replace($(this).children().eq(0).find('span').text(), ''), | 92 | + var competitionName = td.eq(0).text().replace(td.eq(0).find('span').text(), ''); |
93 | - totalGamePlay: $(this).children().eq(1).text(), | 93 | + |
94 | - totalWin: $(this).children().eq(2).text(), | 94 | + competitionData[competitionName] = { |
95 | - totalLose: $(this).children().eq(3).text(), | 95 | + name: competitionName, |
96 | - winRate: $(this).children().eq(4).text(), | 96 | + totalGamePlay: td.eq(1).text(), |
97 | - totalKill: $(this).children().eq(5).text(), | 97 | + totalWin: td.eq(2).text(), |
98 | - totalDeath: $(this).children().eq(6).text(), | 98 | + totalLose: td.eq(3).text(), |
99 | - totalAssist: $(this).children().eq(7).text(), | 99 | + winRate: td.eq(4).text(), |
100 | - killPerMatch: $(this).children().eq(8).text(), | 100 | + totalKill: td.eq(5).text(), |
101 | - deathPerMatch: $(this).children().eq(9).text(), | 101 | + totalDeath: td.eq(6).text(), |
102 | - assistPerMatch: $(this).children().eq(10).text(), | 102 | + totalAssist: td.eq(7).text(), |
103 | - kDA: $(this).children().eq(11).text(), | 103 | + killPerMatch: td.eq(8).text(), |
104 | - kP: $(this).children().eq(12).text() | 104 | + deathPerMatch: td.eq(9).text(), |
105 | + assistPerMatch: td.eq(10).text(), | ||
106 | + kDA: td.eq(11).text(), | ||
107 | + kP: td.eq(12).text() | ||
105 | }; | 108 | }; |
106 | }); | 109 | }); |
107 | 110 | ||
108 | - fakerData['competitions'] = { | 111 | + fakerData['competitions'] = competitionData; |
109 | - list: competitionList | ||
110 | - } | ||
111 | //#endregion | 112 | //#endregion |
112 | 113 | ||
113 | //#region 챔피언 별 전적 | 114 | //#region 챔피언 별 전적 | ... | ... |
-
Please register or login to post a comment