diff options
Diffstat (limited to 'hosted/challenges.html')
-rw-r--r-- | hosted/challenges.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hosted/challenges.html b/hosted/challenges.html index 165b9a9..e899048 100644 --- a/hosted/challenges.html +++ b/hosted/challenges.html @@ -5,6 +5,7 @@ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> + <script type="text/javascript" src="/files/logout.js"></script> <style type="text/css"> body { overflow-y: scroll; @@ -86,9 +87,7 @@ <a class="nav-link" href="/challenges">Challenges</a> </li> </ul> - <form class="form-inline mt-2 mt-md-0" action="/logout" method="post"> - <button class="btn btn-outline-danger my-2 my-sm-0" type="submit">Logout</button> - </form> + <button class="btn btn-outline-danger my-2 my-sm-0" onclick="logoutThenRedirect()">Logout</button> </div> </nav> <main class="container" role="main"> |