Add grammar check for 'mate' or 'mates'

This commit is contained in:
Thomas Wade 2018-10-06 21:33:48 +09:30
parent 320dc7290c
commit f99b8d57c2
2 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,7 @@
{{mates}}<br/> {{mates}}<br/>
<div class="timeRemainingBar" ng-style="countdownStyle"></div> <div class="timeRemainingBar" ng-style="countdownStyle"></div>
</div> </div>
<div class="below">mates</div> <div class="below">{{matesText()}}</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,6 +4,11 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
{ {
$scope.mates = 0; $scope.mates = 0;
$scope.matesText = function()
{
return $scope.mates == 1 ? "mate" : "mates";
};
$scope.animation = undefined; $scope.animation = undefined;
$scope.countdownStyle = $scope.countdownStyle =
{ {