public: news carousel for ranking

This commit is contained in:
nemunaire 2018-02-04 21:24:40 +01:00
parent 62aea5413e
commit 00688cb996
3 changed files with 37 additions and 0 deletions

View file

@ -1,5 +1,15 @@
angular.module("FICApp", ["ngSanitize", "ngAnimate"]);
angular.module("FICApp")
.filter("objectLength", function() {
return function(input) {
if (input !== undefined)
return Object.keys(input).length;
else
return "";
}
});
String.prototype.capitalize = function() {
return this
.toLowerCase()
@ -183,6 +193,7 @@ angular.module("FICApp")
this.push(team);
}
}, $scope.rank);
$scope.pagesrank = Array(Math.ceil($scope.rank.length / 7)).fill(0).map(function(v, i){ return i; });
});
}
refreshData();