We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4fbd4d commit 438b38fCopy full SHA for 438b38f
app/js/timer.js
@@ -96,9 +96,13 @@ angular.module('timer', [])
96
97
function calculateTimeUnits() {
98
$scope.seconds = Math.floor(($scope.millis / 1000) % 60);
99
+ $scope.secondsS = $scope.seconds==1 ? '' : 's';
100
$scope.minutes = Math.floor((($scope.millis / (60000)) % 60));
101
+ $scope.minutesS = $scope.minutesS==1 ? '' : 's';
102
$scope.hours = Math.floor((($scope.millis / (3600000)) % 24));
103
+ $scope.hoursS = $scope.hoursS==1 ? '' : 's';
104
$scope.days = Math.floor((($scope.millis / (3600000)) / 24));
105
+ $scope.daysS = $scope.daysS==1 ? '' : 's';
106
}
107
108
//determine initial values of time units and add AddSeconds functionality
0 commit comments