-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some quirks on oauth pages (#24)
* Fix jquery * Add !DOCTYPE * Fix image link * Fix special characters in username
- Loading branch information
1 parent
b50e377
commit 870d2ac
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
@@ -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> | ||
|
@@ -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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> | ||
|
||
|
@@ -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> | ||
|