Refactoring

pull/1/head
Fronbasal 5 years ago
parent f53f0713d4
commit ef1e1e7563
  1. 5
      status.html

@ -81,6 +81,7 @@ layout: default
} else {
dayCountCurrent = 0;
console.log(dayStart.format(timeFormat));
dayCountCurrentStart = dayStart.clone();
dayCountClosed++;
}
@ -124,7 +125,9 @@ layout: default
var dayCountCurrentText = "";
var dayCountHighText = "";
if(dayCountCurrent > 1)
console.log(dayCountCurrent);
if(dayCountCurrent > 1 || dayCountCurrent == 0)
dayCountCurrentText = dayCountCurrent + " days (" + dayCountCurrentStart.format(dateFormat) + " - " + dayCountCurrentEnd.format(dateFormat) + ")";
else
dayCountCurrentText = dayCountCurrent + " day (" + dayCountCurrentStart.format(dateFormat) + ")";

Loading…
Cancel
Save