|
@@ -25,6 +25,8 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
|
|
// By default, Angular sorts object's attributes alphabetically. Countering this problem by retrieving the keys order here.
|
|
// By default, Angular sorts object's attributes alphabetically. Countering this problem by retrieving the keys order here.
|
|
$scope.categoriesOrder = Object.keys($scope.result.scoreProfiles.generic.categories);
|
|
$scope.categoriesOrder = Object.keys($scope.result.scoreProfiles.generic.categories);
|
|
|
|
|
|
|
|
+ $scope.globalScore = Math.max($scope.result.scoreProfiles.generic.globalScore, 0);
|
|
|
|
+
|
|
$scope.tweetText = 'I\'ve discovered this cool open-source tool that audits the front-end quality of a web page: ';
|
|
$scope.tweetText = 'I\'ve discovered this cool open-source tool that audits the front-end quality of a web page: ';
|
|
}
|
|
}
|
|
|
|
|