Commit 24f56a80 authored by Benoit Lavenier's avatar Benoit Lavenier

fix jshint

parent 70a26899
......@@ -454,16 +454,16 @@ function HomeController($scope, $state, $timeout, $ionicHistory, csPlatform, csC
var day = moment().format('D');
var month = moment().format('M');
if ((month < 3) || (month == 3 && day < 21) || (month == 12 && day >= 21)) {
kind = 'winter'
kind = 'winter';
}
else if ((month == 3 && day >= 21) || (month < 6) || (month == 6 && day < 21)) {
kind = 'spring'
kind = 'spring';
}
else if ((month == 6 && day >= 21) || (month < 9) || (month == 9 && day < 21)) {
kind = 'summer'
kind = 'summer';
}
else {
kind = 'autumn'
kind = 'autumn';
}
}
var imageCount = imageCountByKind[kind];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment