From dc5bd270ea04005085726bdd69b7939dba521035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 13 Nov 2014 09:07:17 +0100 Subject: [PATCH] Tweek CSS complexity score --- app/public/scripts/resultsCtrl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index 23be2f7..5e3692d 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -264,13 +264,13 @@ app.controller('ResultsCtrl', function ($scope) { var score = $scope.phantomasResults.metrics.cssRules + $scope.phantomasResults.metrics.cssComplexSelectors * 5 + $scope.phantomasResults.metrics.cssComplexSelectorsByAttribute * 10; - if (score > 500) { + if (score > 800) { note = 'B'; } - if (score > 1000) { + if (score > 1200) { note = 'C'; } - if (score > 2000) { + if (score > 2500) { note = 'D'; } if (score > 4000) {