Skip to content

Commit

Permalink
leaderboard and index pages changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahata committed Dec 22, 2024
1 parent adf5c85 commit edc0d7f
Show file tree
Hide file tree
Showing 43 changed files with 491 additions and 475 deletions.
4 changes: 2 additions & 2 deletions src/2015/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">$year=<
<main>
<article>
<p>From here, you can access all of the events (and the corresponding puzzles, leaderboards, stats, etc) ever run on Advent of Code:</p>
<div class="eventlist-event"><a href="../2024/solver.html">[2024]</a> <span class="star-count">30*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2024/solver.html">[2024]</a> <span class="star-count">44*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2023/solver.html">[2023]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2022/solver.html">[2022]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2021/solver.html">[2021]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
Expand All @@ -42,7 +42,7 @@ <h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">$year=<
<div class="eventlist-event"><a href="../2017/solver.html">[2017]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2016/solver.html">[2016]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2015/solver.html">[2015]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<p>Total stars: <span class="star-count">480*</span></article>
<p>Total stars: <span class="star-count">494*</span></article>
</main>
</body>
</html>
52 changes: 26 additions & 26 deletions src/2015/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/2015/leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ <h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">$year=<
<canvas id="canvas"></canvas>
<script type="module">
import { Chart, registerables } from 'https://cdn.skypack.dev/chart.js@4.4.7?min';
import config from "./leaderboard.json" with { type: "json" };
Chart.register(...registerables);
let config = JSON.parse('{"all":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false},{"label":"Donatas Petrauskas","data":[-4,-8,-6,-8,-10,-9,-8,-7,-6,-5,-4,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-674,-1295,-1297,-1299,-1301,-1303,-1305],"fill":false}]}},"ten":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false},{"label":"Donatas Petrauskas","data":[-4,-8,-6,-8,-10,-9,-8,-7,-6,-5,-4,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-674,-1295,-1297,-1299,-1301,-1303,-1305],"fill":false}]}},"five":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false}]}}}');
function currentConfig() {
return (new URLSearchParams(location.search)).get('draw') || 'all';
return (new URLSearchParams(location.search)).get('draw') || 'five';
}
window.drawChart = function (group) {
history.pushState({ draw: group }, '', `?draw=${group}`);
Expand Down
1 change: 1 addition & 0 deletions src/2015/leaderboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"all":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false},{"label":"Donatas Petrauskas","data":[-4,-8,-6,-8,-10,-9,-8,-7,-6,-5,-4,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-678,-1303,-1305,-1307,-1309,-1311,-1313],"fill":false}]}},"ten":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false},{"label":"Donatas Petrauskas","data":[-4,-8,-6,-8,-10,-9,-8,-7,-6,-5,-4,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-678,-1303,-1305,-1307,-1309,-1311,-1313],"fill":false}]}},"five":{"type":"line","data":{"labels":["Day 1-1","Day 1-2","Day 2-1","Day 2-2","Day 3-1","Day 3-2","Day 4-1","Day 4-2","Day 5-1","Day 5-2","Day 6-1","Day 6-2","Day 7-1","Day 7-2","Day 8-1","Day 8-2","Day 9-1","Day 9-2","Day 10-1","Day 10-2","Day 11-1","Day 11-2","Day 12-1","Day 12-2","Day 13-1","Day 13-2","Day 14-1","Day 14-2","Day 15-1","Day 15-2","Day 16-1","Day 16-2","Day 17-1","Day 17-2","Day 18-1","Day 18-2","Day 19-1","Day 19-2","Day 20-1","Day 20-2","Day 21-1","Day 21-2","Day 22-1","Day 22-2","Day 23-1","Day 23-2","Day 24-1","Day 24-2","Day 25-1","Day 25-2"],"datasets":[{"label":"Shahar Talmi","data":[5,10,20,26,34,42,49,56,63,70,77,84,89,94,97,99,101,103,107,111,115,119,123,127,130,133,137,140,142,144,147,150,152,154,157,160,163,166,169,172,175,178,180,182,184,186,188,190,192,194],"fill":false},{"label":"atamurius","data":[4,6,15,18,25,31,37,41,47,51,57,61,65,68,70,71,72,73,75,76,78,80,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"fill":false},{"label":"Maurits Out","data":[-2,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"fill":false},{"label":"Sergey Ilyevsky","data":[-10,-19,-19,-23,-27,-29,-31,-33,-35,-37,-39,-41,-44,-47,-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,-98,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-122,-123,-124,-125,-126,-127,-128,-129],"fill":false},{"label":"Maor Yosef","data":[0,0,-5,-14,-12,-8,-14,-19,-24,-28,-32,-36,-41,-46,-50,-54,-59,-64,-68,-72,-76,-80,-84,-88,-92,-96,-100,-104,-108,-112,-116,-120,-123,-126,-129,-132,-135,-138,-141,-144,-147,-150,-152,-154,-157,-160,-163,-166,-169,-171],"fill":false}]}}}
4 changes: 2 additions & 2 deletions src/2016/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">$year=<
<main>
<article>
<p>From here, you can access all of the events (and the corresponding puzzles, leaderboards, stats, etc) ever run on Advent of Code:</p>
<div class="eventlist-event"><a href="../2024/solver.html">[2024]</a> <span class="star-count">30*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2024/solver.html">[2024]</a> <span class="star-count">44*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2023/solver.html">[2023]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2022/solver.html">[2022]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2021/solver.html">[2021]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
Expand All @@ -42,7 +42,7 @@ <h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">$year=<
<div class="eventlist-event"><a href="../2017/solver.html">[2017]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2016/solver.html">[2016]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<div class="eventlist-event"><a href="../2015/solver.html">[2015]</a> <span class="star-count">50*</span> <a class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a></div>
<p>Total stars: <span class="star-count">480*</span></article>
<p>Total stars: <span class="star-count">494*</span></article>
</main>
</body>
</html>
Loading

0 comments on commit edc0d7f

Please sign in to comment.