Leaderboard: add linked table of contents.

master
Snakes 2022-05-25 01:24:59 -04:00
parent 53a80af241
commit f4a5230f21
1 changed files with 31 additions and 14 deletions

View File

@ -4,7 +4,24 @@
{% block content %}
<pre class="d-none d-md-inline-block"></pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by coins</h5>
<div id="leaderboard-contents" style="text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem;">
<a href="#leaderboard-coins">Coins</a> &bull;
<a href="#leaderboard-spent">Spent in Shop</a> &bull;
<a href="#leaderboard-truescore">Truescore</a> &bull;
<a href="#leaderboard-followers">Followers</a> &bull;
<a href="#leaderboard-posts">Posts</a> &bull;
<a href="#leaderboard-comments">Comments</a> &bull;
<a href="#leaderboard-awards">Awards</a> &bull;
<a href="#leaderboard-downvotes">Downvotes</a> &bull;
<a href="#leaderboard-badges">Badges</a> &bull;
{% if users6 %}<a href="#leaderboard-based">Based</a> &bull; {% endif -%}
{%- if users12 %}<a href="#leaderboard-marseys">Marseys</a> &bull; {% endif -%}
{%- if users13 %}<a href="#leaderboard-upgiven">Upvotes Given</a> &bull; {% endif -%}
<a href="#leaderboard-winnings">Winnings</a> &bull;
<a href="#leaderboard-losses">Losses</a>
</div>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-coins">Top 25 by coins</a></h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
@ -35,7 +52,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by coins spent in shop</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-spent">Top 25 by coins spent in shop</a></h5>
<pre>
@ -70,7 +87,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by truescore</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-truescore">Top 25 by truescore</a></h5>
<pre>
@ -105,7 +122,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by followers</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-followers">Top 25 by followers</a></h5>
<pre>
@ -137,7 +154,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by post count</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-posts">Top 25 by post count</a></h5>
<pre>
@ -169,7 +186,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by comment count</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-comments">Top 25 by comment count</a></h5>
<pre>
@ -203,7 +220,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by received awards</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-awards">Top 25 by received awards</a></h5>
<pre>
@ -237,7 +254,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by received downvotes</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-downvotes">Top 25 by received downvotes</a></h5>
<pre>
@ -274,7 +291,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by badges</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-badges">Top 25 by badges</a></h5>
<pre>
@ -313,7 +330,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by based count</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-based">Top 25 by based count</a></h5>
<pre>
@ -348,7 +365,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by marseys made</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-marseys">Top 25 by marseys made</a></h5>
<pre>
@ -386,7 +403,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Top 25 by upvotes given</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-upgiven">Top 25 by upvotes given</a></h5>
<pre>
@ -419,7 +436,7 @@
</table>
{% endif %}
<h5 style="font-weight:bold;text-align: center">Top 25 by winnings</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-winnings">Top 25 by winnings</a></h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
@ -450,7 +467,7 @@
</pre>
<h5 style="font-weight:bold;text-align: center">Bottom 25 by winnings</h5>
<h5 style="font-weight:bold;text-align: center"><a id="leaderboard-losses">Bottom 25 by winnings</a></h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">