diff options
Diffstat (limited to 'hosted/challenges.html')
-rw-r--r-- | hosted/challenges.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/hosted/challenges.html b/hosted/challenges.html index 6267ab7..d3766fe 100644 --- a/hosted/challenges.html +++ b/hosted/challenges.html @@ -6,6 +6,7 @@ <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> + <script type="text/javascript" src="/files/stats.js"></script> <style type="text/css"> body { overflow-y: scroll; @@ -90,7 +91,16 @@ <a class="nav-link" href="/challenges">Challenges</a> </li> </ul> - <button class="btn btn-outline-danger my-2 my-sm-0" onclick="logoutThenRedirect()">Logout</button> + <div class="btn-toolbar" role="toolbar"> + <div class="btn-group mr-2" role="group"> + <button type="button" class="btn btn-primary"> + <span class="badge badge-light" id="_teamScore">0</span> Points + </button> + </div> + <div class="btn-group mr-2" role="group"> + <button class="btn btn-outline-danger my-2 my-sm-0" onclick="logoutThenRedirect()">Logout</button> + </div> + </div> </div> </nav> <main class="container" role="main"> @@ -137,6 +147,7 @@ if(result["correctFlag"] == "true") { // yay! loadChallengesAndRender(); + loadStatsAndRender(); } else { // nay! flagObject.addClass("alert-danger").blur(); |