public: news carousel for ranking
This commit is contained in:
parent
62aea5413e
commit
00688cb996
3 changed files with 37 additions and 0 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue