diff --git a/CTFd/static/js/chalboard.js b/CTFd/static/js/chalboard.js index ab77fecb..51487169 100644 --- a/CTFd/static/js/chalboard.js +++ b/CTFd/static/js/chalboard.js @@ -276,8 +276,13 @@ $(function() { }); $('.nav-tabs a').click(function (e) { - e.preventDefault() - $(this).tab('show') + e.preventDefault() + $(this).tab('show') }) +$('.close').click(function() { + $('.nav-tabs a:first').tab('show') + window.location.hash = "" +}); + setInterval(update, 300000); diff --git a/CTFd/templates/chals.html b/CTFd/templates/chals.html index 06ebbc32..9d1db490 100644 --- a/CTFd/templates/chals.html +++ b/CTFd/templates/chals.html @@ -96,7 +96,7 @@