mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Closes #108
This commit is contained in:
@@ -276,8 +276,13 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.nav-tabs a').click(function (e) {
|
$('.nav-tabs a').click(function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
$(this).tab('show')
|
$(this).tab('show')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$('.close').click(function() {
|
||||||
|
$('.nav-tabs a:first').tab('show')
|
||||||
|
window.location.hash = ""
|
||||||
|
});
|
||||||
|
|
||||||
setInterval(update, 300000);
|
setInterval(update, 300000);
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div role="tabpanel" class="tab-pane active" id="challenge">
|
<div role="tabpanel" class="tab-pane fade in active" id="challenge">
|
||||||
<h3 class='chal-name'></h3>
|
<h3 class='chal-name'></h3>
|
||||||
<h4 class="chal-value"></h4>
|
<h4 class="chal-value"></h4>
|
||||||
<div class="chal-tags"></div>
|
<div class="chal-tags"></div>
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div role="tabpanel" class="tab-pane" id="solves">
|
<div role="tabpanel" class="tab-pane fade" id="solves">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -156,12 +156,4 @@
|
|||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="/static/js/chalboard.js"></script>
|
<script src="/static/js/chalboard.js"></script>
|
||||||
<script src="/static/js/style.js"></script>
|
<script src="/static/js/style.js"></script>
|
||||||
<script>
|
|
||||||
$('[data-dialog-close]').click(function() {
|
|
||||||
$('.nav-tabs > li:nth-child(1)').addClass("active");
|
|
||||||
$('.nav-tabs > li:nth-child(2)').removeClass("active");
|
|
||||||
openDialog.toggle();
|
|
||||||
window.location.hash = ""
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user