1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 23:54:38 -05:00
This commit is contained in:
ashley 2024-10-04 14:54:44 +00:00
parent 3ddc1e072d
commit 06d1770c0e

View file

@ -125,10 +125,11 @@
</tbody>
</table>
<div class="nav-links">
<a href="/calendar?date=<%= currentDate.toISOString() %>&month=<%= month - 1 < 0 ? 11 : month - 1 %>&year=<%= month - 1 < 0 ? year - 1 : year %>" class="button">Previous Month</a>
<a href="/calendar?date=<%= currentDate.toISOString() %>&month=<%= (month + 1) % 12 %>&year=<%= month + 1 > 11 ? year + 1 : year %>" class="button">Next Month</a>
</div>
<div class="nav-links">
<a href="/calendar?date=<%= new Date(currentDate.getFullYear(), month - 1, 1).toISOString() %>" class="button">Previous Month</a>
<a href="/calendar?date=<%= new Date(currentDate.getFullYear(), month + 1, 1).toISOString() %>" class="button">Next Month</a>
</div>
</div>
</body>
</html>