git ssb

0+

Rômulo Alves / dat-letnice



Commit 6c3117cd861056f4d527e117dc54fe573261a9da

today compare

nomand committed on 6/4/2018, 10:46:24 PM
Parent: b8017e7d4e7bfe88c7a57781f6d7485d56855594

Files changed

js/letnice.jschanged
js/letnice.jsView
@@ -45,8 +45,9 @@
4545 monthLength = new Date(year, month+1, 0).getDate();
4646 let date = 0;
4747 let x = 0;
4848 let y = 0;
49+ let today = new Date(year, new Date().getMonth(), new Date().getDate(), 0);
4950
5051 while(date < monthLength)
5152 {
5253 x += 14;
@@ -61,9 +62,9 @@
6162 {
6263 style = "null";
6364 date--
6465 }
65- else if(day < new Date(year, new Date().getMonth(), new Date().getDate(), 0))
66+ else if(day < today)
6667 {
6768 style = "gone";
6869 }
6970 else if(day.getDay() == 5 || day.getDay() == 6)

Built with git-ssb-web