Skip to content

Commit

Permalink
Fix some quirks on oauth pages (#24)
Browse files Browse the repository at this point in the history
* Fix jquery

* Add !DOCTYPE

* Fix image link

* Fix special characters in username
  • Loading branch information
singiamtel authored Apr 22, 2024
1 parent b50e377 commit 870d2ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/public/oauth-authorize.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Expand All @@ -11,7 +12,9 @@
<div class="body">
<header>
<div class="nav-wrapper"><ul class="nav">
<li><a class="button nav-first" href="/"><img src="/images/pokemonshowdownbeta.png" srcset="/images/pokemonshowdownbeta.png 1x, /images/[email protected] 2x" alt="Pokémon Showdown" width="146" height="44"> Home</a></li>
<li><a class="button nav-first" href="/"><img src="/pokemonshowdownbeta.png"
srcset="/pokemonshowdownbeta.png 1x, /[email protected] 2x" alt="Pokémon Showdown" width="146"
height="44"> Home</a></li>
<li><a class="button" href="/dex/">Pokédex</a></li>
<li><a class="button" href="//replay.pokemonshowdown.com/">Replays</a></li>
<li><a class="button" href="/ladder/">Ladder</a></li>
Expand Down Expand Up @@ -60,7 +63,7 @@ <h2>Authorize {{client}}</h2><hr />
alert("Please log in on Pokemon Showdown before using this page.");
throw '';
} else {
document.getElementById('username').innerText = ` (logged in as "${username}")`;
document.getElementById('username').innerText = ` (logged in as "${decodeURI(username)}")`;
}
if (token) {
params.set('token', token);
Expand Down
7 changes: 5 additions & 2 deletions src/public/oauth-authorized.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="/js/lib/jquery-2.1.4.min.js"></script>
<script src="/js/lib/jquery-2.2.4.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">

Expand All @@ -12,7 +13,9 @@
<div class="body">
<header>
<div class="nav-wrapper"><ul class="nav">
<li><a class="button nav-first" href="/"><img src="/images/pokemonshowdownbeta.png" srcset="/images/pokemonshowdownbeta.png 1x, /images/[email protected] 2x" alt="Pokémon Showdown" width="146" height="44"> Home</a></li>
<li><a class="button nav-first" href="/"><img src="/pokemonshowdownbeta.png"
srcset="/pokemonshowdownbeta.png 1x, /[email protected] 2x" alt="Pokémon Showdown" width="146"
height="44"> Home</a></li>
<li><a class="button" href="/dex/">Pokédex</a></li>
<li><a class="button" href="//replay.pokemonshowdown.com/">Replays</a></li>
<li><a class="button" href="/ladder/">Ladder</a></li>
Expand Down

0 comments on commit 870d2ac

Please sign in to comment.