Skip to content

Commit

Permalink
make the default scoreboard duration monthly
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus authored and mudongliang committed Mar 19, 2024
1 parent 3c89e1e commit d770f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dojo_theme/templates/dojo.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ <h2 class="row">道馆排名:</h2>
{% endblock %}

{% block scripts %}
<script defer onload="loadScoreboard(0, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer onload="loadScoreboard(30, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer src="{{ url_for('views.themes', path='js/dojo/copy.js') }}"></script>
{% endblock %}
3 changes: 1 addition & 2 deletions dojo_theme/templates/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,5 @@ <h2>模块排名</h2>
{% block scripts %}

<script defer src="{{ url_for('views.themes', path='js/dojo/challenges.js') }}"></script>
<script defer onload="loadScoreboard(0, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>

<script defer onload="loadScoreboard(30, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
{% endblock %}

0 comments on commit d770f9b

Please sign in to comment.