Add background color to the timestamp column in the profiler

This commit is contained in:
Gaël Métais
2014-09-12 12:42:38 +02:00
parent 5b50809291
commit 94f065f4f8
10 changed files with 722 additions and 267 deletions
+8 -1
View File
@@ -275,7 +275,14 @@
<span ng-if="node.data.time > slowRequestsLimit" class="icon-warning" title="Slower than {{slowRequestsLimit}} ms"></span>
</div>
<div class="duration" ng-if="node.data.time == undefined"></div>
<div class="startTime">{{node.data.timestamp | number: 0}}</div>
<div class="startTime" ng-class="{
domCreation: node.data.timestamp < phantomasResults.metrics.domInteractive,
domContentLoaded: node.data.timestamp >= phantomasResults.metrics.domContentLoaded
&& node.data.timestamp < phantomasResults.metrics.domContentLoadedEnd,
domContentLoadedEnd: node.data.timestamp >= phantomasResults.metrics.domContentLoadedEnd
&& node.data.timestamp < phantomasResults.metrics.domComplete,
domComplete: node.data.timestamp >= phantomasResults.metrics.domComplete
}">{{node.data.timestamp | number: 0}}</div>
</div>
</div>
</div>