fixed some shit ; added pagination
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -45,9 +45,14 @@ def api_problem_manifest(folder):
|
||||
except Exception as e:
|
||||
return jsonify({'error': str(e)}), 500
|
||||
|
||||
# I introduce you to the fucking JavaScript shit routes, fuck javascripts
|
||||
@app.route('/JavaScript/<path:filename>')
|
||||
def serve_js(filename):
|
||||
return send_from_directory('JavaScript', filename)
|
||||
|
||||
@app.route("/script.js")
|
||||
def script():
|
||||
return send_from_directory("templates", "script.js")
|
||||
return send_from_directory("JavaScript", "script.js")
|
||||
|
||||
@app.route('/favicon.ico')
|
||||
def favicon():
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<section class="card" id="leaderboardSection">
|
||||
<div class="leaderboard-head">
|
||||
<h2 style="font-size:1.1rem;margin:0">Leaderboard
|
||||
<span id="rankInfoBtn" title="How ranking works">ℹ️</span>
|
||||
<!--<span id="rankInfoBtn" title="How ranking works">ℹ️</span>-->
|
||||
</h2>
|
||||
</div>
|
||||
<div class="leaderboard-controls">
|
||||
@@ -141,6 +141,6 @@
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
||||
<script src="{{ url_for('serve_js', filename='script.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user