Commit 1cd74f9fbff48793bfa202a97a097036b27f991e
if today weekend color
nomand committed on 6/8/2018, 9:48:09 PMParent: 586bca5eba1f28d4d68f47e12bf4369f6986d1ba
Files changed
js/letnice.js | changed |
js/letnice.js | ||
---|---|---|
@@ -85,20 +85,20 @@ | ||
85 | 85 | { |
86 | 86 | style = "null"; |
87 | 87 | date-- |
88 | 88 | } |
89 | + else if(String(day) == String(today)) | |
90 | + { | |
91 | + style = "today"; | |
92 | + } | |
89 | 93 | else if(day < today) |
90 | 94 | { |
91 | 95 | style = "gone"; |
92 | 96 | } |
93 | 97 | else if(day.getDay() == 5 || day.getDay() == 6) |
94 | 98 | { |
95 | 99 | style = "weekend"; |
96 | 100 | } |
97 | - else if(String(day) == String(today)) | |
98 | - { | |
99 | - style = "today"; | |
100 | - } | |
101 | 101 | else |
102 | 102 | { |
103 | 103 | style = "day"; |
104 | 104 | } |
Built with git-ssb-web