Skip to content

Commit

Permalink
update token page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari-W committed Jul 6, 2023
1 parent 619beeb commit f99902f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/token.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="title">
</div>
</div>
</section> -->
<div class="card">
<div class="card" style="height: 100vh;">
<header class="card-header">
<p class="card-header-title">
Discord Authorization Token
Expand All @@ -41,10 +41,13 @@ <h1 class="title">
</div>
<time id="time">...</time>
<script>
document.getElementById("time").innerHTML = "token generated at " + Date().toLocaleLowerCase().split("gmt")[0]
let date = new Date()
date.setMinutes(date.getMinutes() + 5)
document.getElementById("time").innerHTML = "token will expire at " + date.toLocaleTimeString()
</script>
</div>
<footer class="card-footer">
<a href="" class="card-footer-item">Refresh</a>
<a href="{{account_url}}" class="card-footer-item">Account</a>
<a href="{{logout_url}}" class="card-footer-item">Logout</a>
</footer>
Expand Down

0 comments on commit f99902f

Please sign in to comment.