git ssb

0+

Rômulo Alves / dat-letnice



Commit 1cd74f9fbff48793bfa202a97a097036b27f991e

if today weekend color

nomand committed on 6/8/2018, 9:48:09 PM
Parent: 586bca5eba1f28d4d68f47e12bf4369f6986d1ba

Files changed

js/letnice.jschanged
js/letnice.jsView
@@ -85,20 +85,20 @@
8585 {
8686 style = "null";
8787 date--
8888 }
89+ else if(String(day) == String(today))
90+ {
91+ style = "today";
92+ }
8993 else if(day < today)
9094 {
9195 style = "gone";
9296 }
9397 else if(day.getDay() == 5 || day.getDay() == 6)
9498 {
9599 style = "weekend";
96100 }
97- else if(String(day) == String(today))
98- {
99- style = "today";
100- }
101101 else
102102 {
103103 style = "day";
104104 }

Built with git-ssb-web