From 6ca13ae5da59ed7400db596b4aa1a3f3fe100669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 26 Sep 2014 23:23:17 +0200 Subject: [PATCH] Mark in red extreme values --- app/node_views/results.html | 78 +++++++++++++++++------------ app/public/styles/less/results.less | 4 ++ app/public/styles/results.css | 5 ++ 3 files changed, 54 insertions(+), 33 deletions(-) diff --git a/app/node_views/results.html b/app/node_views/results.html index 9c94084..ee8abff 100644 --- a/app/node_views/results.html +++ b/app/node_views/results.html @@ -45,9 +45,11 @@
DOM complexity
-
+
DOM elements count
-
{{phantomasResults.metrics.DOMelementsCount}}
+
+ {{phantomasResults.metrics.DOMelementsCount}} +
@@ -56,7 +58,7 @@
-
+
DOM max depth
{{phantomasResults.metrics.DOMelementMaxDepth}} @@ -70,9 +72,11 @@
-
+
Number of iframes
-
{{phantomasResults.metrics.iframesCount}}
+
+ {{phantomasResults.metrics.iframesCount}} +
@@ -80,7 +84,7 @@
-
+
IDs duplicated
{{phantomasResults.metrics.DOMidDuplicated}} @@ -101,7 +105,7 @@
DOM manipulations
-
+
DOM inserts
{{phantomasResults.metrics.DOMinserts}} @@ -115,9 +119,11 @@
-
+
DOM queries
-
{{phantomasResults.metrics.DOMqueries}}
+
+ {{phantomasResults.metrics.DOMqueries}} +
@@ -127,7 +133,7 @@
-
+
Avoidable queries
{{duplicatedQueriesCountAll}} @@ -141,7 +147,7 @@
-
+
Events bound
{{phantomasResults.metrics.eventsBound}} @@ -163,7 +169,7 @@
Bad Javascript
-
+
Javascript errors
{{phantomasResults.metrics.jsErrors}} @@ -243,9 +249,11 @@
-
-
{{phantomasResults.metrics.jQueryDifferentVersions}} versions loaded
-
{{version}} &
+
+
{{phantomasResults.metrics.jQueryDifferentVersions}} versions loaded
+
+ {{version}} & +
@@ -261,9 +269,11 @@
CSS complexity
-
+
Rules count
-
{{phantomasResults.metrics.cssRules}}
+
+ {{phantomasResults.metrics.cssRules}} +
@@ -272,7 +282,7 @@
-
+
Complex selectors
{{phantomasResults.metrics.cssComplexSelectors}} @@ -294,7 +304,7 @@
Bad CSS
-
+
CSS syntax error
{{phantomasResults.metrics.cssParsingErrors}} @@ -308,7 +318,7 @@
-
+
Duplicated selectors
{{phantomasResults.metrics.cssDuplicatedSelectors}} @@ -321,7 +331,7 @@
-
+
Empty rules
{{phantomasResults.metrics.cssEmptyRules}} @@ -440,9 +450,11 @@
Requests number
-
+
Total requests
-
{{phantomasResults.metrics.requests}}
+
+ {{phantomasResults.metrics.requests}} +
@@ -468,7 +480,7 @@
-
+
Scripts
{{phantomasResults.metrics.jsCount}} @@ -476,7 +488,7 @@
-
+
Stylesheets
{{phantomasResults.metrics.cssCount}} @@ -484,7 +496,7 @@
-
+
Images
{{phantomasResults.metrics.imageCount}} @@ -492,7 +504,7 @@
-
+
Fonts
{{phantomasResults.metrics.webfontCount}} @@ -532,7 +544,7 @@
Network
-
+
404 not found
{{phantomasResults.metrics.notFound}} @@ -545,7 +557,7 @@
-
+
Connections closed
{{phantomasResults.metrics.closedConnections}} @@ -560,7 +572,7 @@
-
+
Duplicated requests
{{phantomasResults.metrics.multipleRequests}} @@ -573,7 +585,7 @@
-
+
Caching disabled
{{phantomasResults.metrics.cachingDisabled}} @@ -587,7 +599,7 @@
-
+
Caching not specified
{{phantomasResults.metrics.cachingNotSpecified}} @@ -615,7 +627,7 @@
-
+
Different domains
{{phantomasResults.metrics.domains}} diff --git a/app/public/styles/less/results.less b/app/public/styles/less/results.less index 88e2006..a990de7 100644 --- a/app/public/styles/less/results.less +++ b/app/public/styles/less/results.less @@ -138,6 +138,9 @@ h4 { white-space: nowrap; text-align: center; } +.notations .warning .label, .notations .warning .result { + color: #FF1919; +} .notations .criteria .info { width: 10%; text-align: center; @@ -458,6 +461,7 @@ input.textFilter { padding: 10px; border: 3px solid #f1c40f; border-radius: 0.5em; + color: #000; } .ng-modal-dialog-content { overflow-x: hidden; diff --git a/app/public/styles/results.css b/app/public/styles/results.css index ac34a54..efd0ef1 100644 --- a/app/public/styles/results.css +++ b/app/public/styles/results.css @@ -127,6 +127,10 @@ h4 { white-space: nowrap; text-align: center; } +.notations .warning .label, +.notations .warning .result { + color: #FF1919; +} .notations .criteria .info { width: 10%; text-align: center; @@ -425,6 +429,7 @@ input.textFilter { padding: 10px; border: 3px solid #f1c40f; border-radius: 0.5em; + color: #000; } .ng-modal-dialog-content { overflow-x: hidden;