html
This commit is contained in:
parent
ff52550173
commit
28d933c514
|
@ -1,4 +1,4 @@
|
|||
<h1>It seems an error has occured, you can try going back to the default page by clicking the button below</h1>
|
||||
<h1>It seems an error has occured</h1>
|
||||
<a href="/">
|
||||
<button>Go Homr</button>
|
||||
<button>Go Home</button>
|
||||
</a>
|
|
@ -1,22 +1,20 @@
|
|||
<div id="refreshedTokenNotification">
|
||||
<h1>Your token was successfully refreshed!</h1>
|
||||
</div>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
body {
|
||||
background-color: rgb(14, 138, 240);
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<h1 id="refreshedTokenNotification">Your token was successfully refreshed!</h1>
|
||||
<div id="signedIn">
|
||||
<h1>Hello, <%= json.username %> #<%= json.discriminator %></h1>
|
||||
<img src="https://cdn.discordapp.com/avatars/<%= json.id %>/<%= json.avatar %>?size=512">
|
||||
</div>
|
||||
<div id="signedOut">
|
||||
<h1>You are not signed in, please click the Login button below</h1>
|
||||
</div>
|
||||
<div id="refreshTokenButton">
|
||||
<button onclick= "window.location.replace(`/login/refresh`)" >Refresh Token</button>
|
||||
</div>
|
||||
<div id="loginButton">
|
||||
<button onclick= "window.location.replace(`/login`)" >Login</button>
|
||||
</div>
|
||||
<div id="logoutButton">
|
||||
<button onclick= "window.location.replace(`/logout`)" >Logout</button>
|
||||
</div>
|
||||
<h1 id="signedOut">You are not signed in, please click the Login button below</h1>
|
||||
<button id="refreshTokenButton" onclick= "window.location.replace(`/login/refresh`)" >Refresh Token</button>
|
||||
<button id="loginButton" onclick= "window.location.replace(`/login`)" >Login</button>
|
||||
<button id="logoutButton" onclick= "window.location.replace(`/logout`)" >Logout</button>
|
||||
<script>
|
||||
var signedIn = <%= signedIn %>
|
||||
var tokenRefreshed = <%= tokenRefreshed %>
|
||||
|
@ -45,3 +43,5 @@
|
|||
document.getElementById("logoutButton").hidden = false
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue