Skip to content

Commit

Permalink
s4 Hall of Fame (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rchardon authored Sep 27, 2023
1 parent 600a990 commit f216ef9
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/js/halloffame.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const tableIDs = [
"season1R7Rep",
"season2R7Rep",
"season3R7Rep",
"season4R7Rep",
];
for (i = 1; i <= LAST_RANKED_SOLO_SEASON; i++) {
tableIDs.push(`season${i}RankedSolo`);
Expand Down
1 change: 1 addition & 0 deletions src/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type TemplateData struct {
Season1R7Rep []HallOfFameEntry
Season2R7Rep []HallOfFameEntry
Season3R7Rep []HallOfFameEntry
Season4R7Rep []HallOfFameEntry
Season1RankedSolo []HallOfFameEntryOnline
Season2RankedSolo []HallOfFameEntryOnline

Expand Down
1 change: 1 addition & 0 deletions src/httpHallOfFame.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func httpHallOfFame(c *gin.Context) {
Season1R7Rep: season1R7Rep,
Season2R7Rep: season2R7Rep,
Season3R7Rep: season3R7Rep,
Season4R7Rep: season4R7Rep,
Season1RankedSolo: season1RankedSolo,
Season2RankedSolo: season2RankedSolo,
}
Expand Down
103 changes: 103 additions & 0 deletions src/season4Rep.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
package server

var season4R7Rep = []HallOfFameEntry{
{
Rank: 1,
Racer: "Greg",
ProfileName: "Greg570",
Time: 2243,
Date: "2023-04-30",
Proof: "https://www.twitch.tv/videos/1805687528",
Site: "Twitch",
},

{
Rank: 2,
Racer: "Adrayon",
ProfileName: "Adrayon",
Time: 2352,
Date: "2023-04-30",
Proof: "https://www.twitch.tv/videos/1807245865",
Site: "Twitch",
},

{
Rank: 3,
Racer: "mgln",
ProfileName: "mgln",
Time: 2399,
Date: "2023-04-24",
Proof: "https://www.twitch.tv/videos/1802144430",
Site: "Twitch",
},

{
Rank: 4,
Racer: "Fallenfor",
ProfileName: "Fallenfor",
Time: 2418,
Date: "2023-04-29",
Proof: "https://www.twitch.tv/videos/1806690876",
Site: "Twitch",
},

{
Rank: 5,
Racer: "tayu",
ProfileName: "tayu",
Time: 2428,
Date: "2023-09-09",
Proof: "https://www.twitch.tv/videos/1920839363",
Site: "Twitch",
},

{
Rank: 6,
Racer: "Infamouslol8",
ProfileName: "Infamouslol8",
Time: 2430,
Date: "2023-07-13",
Proof: "https://www.youtube.com/watch?v=l5WIQqne-wA",
Site: "YouTube",
},

{
Rank: 7,
Racer: "sisuka",
ProfileName: "sisuka",
Time: 2573,
Date: "2023-07-12",
Proof: "https://www.twitch.tv/videos/1870003851",
Site: "Twitch",
},

{
Rank: 8,
Racer: "Cyber_1",
ProfileName: "Cyber_1",
Time: 2657,
Date: "2023-05-01",
Proof: "https://www.twitch.tv/videos/1808921967",
Site: "Twitch",
},

{
Rank: 9,
Racer: "Toooschi",
ProfileName: "Toooschi",
Time: 2725,
Date: "2023-05-21",
Proof: "https://www.youtube.com/watch?v=R7DtsmAwfqE",
Site: "YouTube",
},

{
Rank: 10,
Racer: "Shxrpness",
ProfileName: "modesties",
Time: 2729,
Date: "2023-03-31",
Proof: "https://www.twitch.tv/videos/1780346648",
Site: "Twitch",
},
}
29 changes: 29 additions & 0 deletions src/views/halloffame.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<option value="season1R7Rep">R+7 Season 1 (Repentance)</option>
<option value="season2R7Rep">R+7 Season 2 (Repentance)</option>
<option value="season3R7Rep">R+7 Season 3 (Repentance)</option>
<option value="season4R7Rep">R+7 Season 4 (Repentance)</option>
<option value="season1RankedSolo">Ranked Solo Season 1 (Afterbirth+)</option>
<option value="season2RankedSolo">Ranked Solo Season 2 (Afterbirth+)</option>
<!--<option value="season3ranked">Ranked Solo Season 1 (Repentance)</option>-->
Expand Down Expand Up @@ -366,6 +367,34 @@
</div>
</section>

<!-- Start of R+7 Season 4 (Rep) -->
<section id="hof-season4R7Rep" class="box">
<div class="table-wrapper">
<table id="season4R7Rep-table" class="alt lb tablesorter">
<thead>
<tr>
<th class="th-rank">Rank</th>
<th class="th-racer">Player</th>
<th class="th-time">Time</th>
<th class="th-date" data-sorter="false">Date</th>
<th class="th-proof" data-sorter="false">Video</th>
</tr>
</thead>
<tbody>
{{ range .Season4R7Rep }}
<tr>
<td class="td-rank"> {{ .Rank }} </td>
<td class="td-racer"><a href=/profile/{{ .ProfileName }}>{{ .Racer }}</a></td>
<td class="td-time">{{ .Time }}</td>
<td class="td-date">{{ .Date }}</td>
<td class="td-proof"><a href="{{ .Proof }}" target="_blank"><img height="16px" src="public/img/{{ .Site }}.png" /></a></td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</section>

<!-- Start of Ranked Solo Season 1 -->
<section id="hof-season1RankedSolo" class="box">
<div class="table-wrapper">
Expand Down

0 comments on commit f216ef9

Please # to comment.