mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
chore(hiscores): drop the single-option profile dropdown
Prod only has the "main" profile, so the selector on the list and player pages offered one choice and did nothing. ?profile= still works. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
353d1061b6
commit
ab59cc31bf
1 file changed
-19
@@ -274,15 +274,6 @@ export async function handleHiscoresPlayerPage(url: URL): Promise<Response | nul
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<!-- Profile selector -->
|
||||
<center>
|
||||
<form method="GET" action="/hiscores/player/${encodeURIComponent(account.username)}">
|
||||
<select name="profile" onchange="this.form.submit()">
|
||||
<option value="main"${profile === 'main' ? ' selected' : ''}>Main</option>
|
||||
</select>
|
||||
</form>
|
||||
</center>
|
||||
|
||||
<!-- Stats table -->
|
||||
<table width="400" bgcolor="black" cellpadding="4">
|
||||
<tr>
|
||||
@@ -457,16 +448,6 @@ export async function handleHiscoresPage(url: URL): Promise<Response | null> {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<!-- Profile selector -->
|
||||
<center>
|
||||
<form id="profile-select-form" method="GET" action="/hiscores">
|
||||
<input type="hidden" name="category" value="${currentCategory}">
|
||||
<select name="profile" id="profile" onchange="this.form.submit()">
|
||||
<option value="main"${profile === 'main' ? ' selected' : ''}>Main</option>
|
||||
</select>
|
||||
</form>
|
||||
</center>
|
||||
|
||||
<!-- Two column layout: skills + data -->
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
Reference in new issue
Block a user