From 491ee93c69fbb684d26ddc16696b8bdd75432bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Wed, 24 Sep 2014 13:00:22 +0200 Subject: [PATCH] Make it easier to have a good CSS complexity score --- app/public/scripts/resultsCtrl.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index f6377c9..28f17ad 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -307,19 +307,19 @@ app.controller('ResultsCtrl', function ($scope) { var note = 'A'; var score = $scope.phantomasResults.metrics.cssRules + $scope.phantomasResults.metrics.cssComplexSelectors * 10; - if (score > 200) { + if (score > 500) { note = 'B'; } - if (score > 500) { + if (score > 1000) { note = 'C'; } - if (score > 1000) { + if (score > 2000) { note = 'D'; } - if (score > 2000) { + if (score > 4500) { note = 'E'; } - if (score > 5000) { + if (score > 7000) { note = 'F'; } return note;