Showing
1 changed file
with
29 additions
and
1 deletions
... | @@ -49,7 +49,7 @@ getHTML() | ... | @@ -49,7 +49,7 @@ getHTML() |
49 | played: $(this).find('div.play_area p.value').text(), | 49 | played: $(this).find('div.play_area p.value').text(), |
50 | record: $(this).find('div.log_area p.value').text(), | 50 | record: $(this).find('div.log_area p.value').text(), |
51 | kDA: $(this).find('div.kda_area p.value').text() | 51 | kDA: $(this).find('div.kda_area p.value').text() |
52 | - } | 52 | + }; |
53 | }); | 53 | }); |
54 | 54 | ||
55 | fakerData['recentLCK'] = { | 55 | fakerData['recentLCK'] = { |
... | @@ -82,6 +82,34 @@ getHTML() | ... | @@ -82,6 +82,34 @@ getHTML() |
82 | kP: td.eq(11).text() | 82 | kP: td.eq(11).text() |
83 | } | 83 | } |
84 | //#endregion | 84 | //#endregion |
85 | + | ||
86 | + //#region 대회 별 전적 | ||
87 | + var tr = $('div.scriptorium').children('div.listTable').eq(3).find('table tbody').children(); | ||
88 | + var competitionList = []; | ||
89 | + | ||
90 | + tr.each(function (i,elem) { | ||
91 | + competitionList[i] = { | ||
92 | + name: $(this).children().eq(0).text().replace($(this).children().eq(0).find('span').text(), ''), | ||
93 | + totalGamePlay: $(this).children().eq(1).text(), | ||
94 | + totalWin: $(this).children().eq(2).text(), | ||
95 | + totalLose: $(this).children().eq(3).text(), | ||
96 | + winRate: $(this).children().eq(4).text(), | ||
97 | + totalKill: $(this).children().eq(5).text(), | ||
98 | + totalDeath: $(this).children().eq(6).text(), | ||
99 | + totalAssist: $(this).children().eq(7).text(), | ||
100 | + killPerMatch: $(this).children().eq(8).text(), | ||
101 | + deathPerMatch: $(this).children().eq(9).text(), | ||
102 | + assistPerMatch: $(this).children().eq(10).text(), | ||
103 | + kDA: $(this).children().eq(11).text(), | ||
104 | + kP: $(this).children().eq(12).text() | ||
105 | + }; | ||
106 | + }); | ||
107 | + | ||
108 | + fakerData['competitions'] = { | ||
109 | + list: competitionList | ||
110 | + } | ||
111 | + //#endregion | ||
112 | + | ||
85 | return fakerData; | 113 | return fakerData; |
86 | }) | 114 | }) |
87 | .then(res => console.log(res)); | 115 | .then(res => console.log(res)); | ... | ... |
-
Please register or login to post a comment