Skip to content

Commit

Permalink
Update Advent Calendar; Open doors; Add to gallery.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-paul committed Dec 25, 2023
1 parent 81821df commit 65650dc
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 9 deletions.
2 changes: 2 additions & 0 deletions advent-calendar-2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@
<span class="sep">-</span>
<a class="footer" href="https://openscad.org/advent-calendar-2022/">2022</a>
<span class="sep">-</span>
<a class="footer" href="https://openscad.org/advent-calendar-2023/">2023</a>
<span class="sep">-</span>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions advent-calendar-2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2022/">2022</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2023/">2023</a>
<span class="sep">-</span>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions advent-calendar-2021/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2022/">2022</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2023/">2023</a>
<span class="sep">-</span>
</div>
<div id="modal" class="modal">
<div class="modal-content">
Expand Down
2 changes: 2 additions & 0 deletions advent-calendar-2022/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2022/">2022</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2023/">2023</a>
<span class="sep">-</span>
</div>
<div id="modal" class="modal">
<div class="modal-content">
Expand Down
23 changes: 18 additions & 5 deletions advent-calendar-2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,18 @@
feather.replace();
new Snow('#snow', { number:20, r: 2.5, v: 1 });
date = new Date();
/*
if (date.getUTCMonth() === 11) {
for (day = 1;day <= date.getUTCDate();day++) {
$(".day-" + day + " .content").removeClass("hide");
$(".day-" + day + " .door").addClass("transform");
}
}
*/
for (day = 1;day <= 24;day++) {
if (window.location.protocol === "file:" || window.location.hostname == "localhost") {
$(".day-" + day + " .content").removeClass("hide");
$(".day-" + day + " .door").addClass("transform");
}
$(".day-" + day + " .content").removeClass("hide");
$(".day-" + day + " .door").addClass("transform");
$(".day-" + day + " input").prop("checked", true);
div = document.getElementById("day-" + day);
data = days.get("day" + day);
if (data) {
Expand Down Expand Up @@ -561,8 +562,20 @@
<span class="sep">||</span>
All scripts are licensed <a class="link" href="https://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0</a>
<span class="sep">||</span>
Doors open midnight UTC
<a class="link" href="https://github.com/openscad/openscad-advent-calendar-2023/">Design repo on github</a>
<span class="sep">||</span>
<br>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2019/">2019</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2020/">2020</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2021/">2021</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2022/">2022</a>
<span class="sep">-</span>
<a class="link" href="https://openscad.org/advent-calendar-2023/">2023</a>
<span class="sep">-</span>
</div>
<div id="modal" class="modal">
<div class="modal-content">
Expand Down
12 changes: 8 additions & 4 deletions gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<link href="assets/css/style.css" rel="stylesheet">

<link href="assets/fonts/open-sans/all.css" rel="stylesheet">
<link href="assets/fontawesome/css/brands.min.css" rel="stylesheet">
<link href="assets/fontawesome/css/fontawesome.min.css" rel="stylesheet">

<script src="assets/js/jquery-1.9.1.min.js"></script>
<script src="assets/js/modernizr-1.7.min.js"></script>
Expand Down Expand Up @@ -70,10 +72,12 @@ <h1>Gallery</h1>
</ul>
<h1>#SCADvent</h1>
<ul>
<li><a href="https://openscad.org/advent-calendar-2019">2019 OpenSCAD Advent Calendar</a></li>
<li><a href="https://openscad.org/advent-calendar-2020">2020 OpenSCAD Advent Calendar</a></li>
<li><a href="https://openscad.org/advent-calendar-2021">2021 OpenSCAD Advent Calendar</a></li>
<li><a href="https://openscad.org/advent-calendar-2022">2022 OpenSCAD Advent Calendar</a></li>
<li><a href="https://fosstodon.org/tags/SCADvent">...on Fosstodon</a> <span class="fab fa-mastodon fa-xs"></span></li>
<li><a href="advent-calendar-2019/">2019 Advent Calendar</a></li>
<li><a href="advent-calendar-2020/">2020 Advent Calendar</a></li>
<li><a href="advent-calendar-2021/">2021 Advent Calendar</a></li>
<li><a href="advent-calendar-2022/">2022 Advent Calendar</a></li>
<li><a href="advent-calendar-2023/">2023 Advent Calendar</a></li>
</ul>
</div>

Expand Down

0 comments on commit 65650dc

Please sign in to comment.