diff options
author | maride <maride@darknebu.la> | 2019-10-11 14:53:34 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2019-10-11 14:53:34 +0200 |
commit | f822befed9f4b39f76993adb2376d694023868bf (patch) | |
tree | 42134d3d9c08ab830d02cc174a637358d4d61d20 /hosted/challenges.html | |
parent | 92d20710d7cbad0781d04d45ee859a1d66b30b0d (diff) |
Display current team score on the website
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(); |