Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@
HoursLeft = Math.floor((secondsLeft % 86400) / 3600);
MinutesLeft = Math.floor(((secondsLeft % 86400) % 3600) / 60);
SecondsLeft = Math.floor((((secondsLeft % 86400) % 3600) % 60) % 60);
if (DaysLeft === 0) {
element.find('.ClassyCountdown-days input').trigger("configure", settings.style.days.gaugeEnd);
}
if (HoursLeft === 0 && DaysLeft === 0) {
element.find('.ClassyCountdown-hours input').trigger("configure", settings.style.hours.gaugeEnd);
}
if (MinutesLeft === 0 && HoursLeft === 0) {
element.find('.ClassyCountdown-minutes input').trigger("configure", settings.style.minutes.gaugeEnd);
}
if (SecondsLeft === 0 && MinutesLeft === 0 && HoursLeft === 0) {
element.find('.ClassyCountdown-seconds input').trigger("configure", settings.style.seconds.gaugeEnd);
}
}

function doTick() {
Expand Down Expand Up @@ -664,6 +676,9 @@
fgColor: "#fff",
lineCap: 'round'
},
gaugeEnd: {
fgColor: "#666"
},
textCSS: 'font-family:\'Open Sans\';font-weight:300;color:#fff;'
},
hours: {
Expand All @@ -673,6 +688,9 @@
fgColor: "#fff",
lineCap: 'round'
},
gaugeEnd: {
fgColor: "#666"
},
textCSS: 'font-family:\'Open Sans\';font-weight:300;color:#fff;'
},
minutes: {
Expand All @@ -682,6 +700,9 @@
fgColor: "#fff",
lineCap: 'round'
},
gaugeEnd: {
fgColor: "#666"
},
textCSS: 'font-family:\'Open Sans\';font-weight:300;color:#fff;'
},
seconds: {
Expand All @@ -691,6 +712,9 @@
fgColor: "#fff",
lineCap: 'round'
},
gaugeEnd: {
fgColor: "#666"
},
textCSS: 'font-family:\'Open Sans\';font-weight:300;color:#fff;'
}
}
Expand Down