Skip to content

Commit

Permalink
Test for new month simplified.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrRoman committed Feb 23, 2024
1 parent 99edcb9 commit 03b0dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ function component(date, year, month, day, weekday, before, color, header, body,
if (date.getFullYear() != year) {
year = date.getFullYear();
block_new_year = '<div class="year blue mt-5">' + year + '</div>';
if (date.getMonth() != month || day == 1) {
if (day == 1) {
month = date.getMonth();
block_new_month = '<div class="month green mb-3">Ianuarius</div>';
}
} else {
block_new_year = '';
if (date.getMonth() != month || day == 1) {
if (day == 1) {
month = date.getMonth();
block_new_month = '<div class="month green my-3">' + month_human_readable(month) + '</div>';
} else {
Expand Down

0 comments on commit 03b0dbe

Please sign in to comment.