ソースを参照

Tweek CSS complexity score

Gaël Métais 10 年 前
コミット
dc5bd270ea
1 ファイル変更3 行追加3 行削除
  1. 3 3
      app/public/scripts/resultsCtrl.js

+ 3 - 3
app/public/scripts/resultsCtrl.js

@@ -264,13 +264,13 @@ app.controller('ResultsCtrl', function ($scope) {
         var score = $scope.phantomasResults.metrics.cssRules +
         var score = $scope.phantomasResults.metrics.cssRules +
                     $scope.phantomasResults.metrics.cssComplexSelectors * 5 +
                     $scope.phantomasResults.metrics.cssComplexSelectors * 5 +
                     $scope.phantomasResults.metrics.cssComplexSelectorsByAttribute * 10;
                     $scope.phantomasResults.metrics.cssComplexSelectorsByAttribute * 10;
-        if (score > 500) {
+        if (score > 800) {
             note = 'B';
             note = 'B';
         }
         }
-        if (score > 1000) {
+        if (score > 1200) {
             note = 'C';
             note = 'C';
         }
         }
-        if (score > 2000) {
+        if (score > 2500) {
             note = 'D';
             note = 'D';
         }
         }
         if (score > 4000) {
         if (score > 4000) {