forked from Botanical/BotanJS
Display process time
This commit is contained in:
parent
e48346de0d
commit
bc7b440924
@ -54,6 +54,22 @@
|
||||
navControl();
|
||||
initBackgroundParallax();
|
||||
initArchiveButtons();
|
||||
displayProcessTime();
|
||||
};
|
||||
|
||||
var displayProcessTime = function()
|
||||
{
|
||||
var ms = document.lastChild;
|
||||
if( ms.nodeType == document.COMMENT_NODE && ms.textContent && ms.textContent.match( /^\d+$/ ) )
|
||||
{
|
||||
ms = ( Number( ms.textContent ) * 1e-6 ).toFixed( 2 ) + "ms";
|
||||
var copysign = Dand.glass( "copysign" );
|
||||
if( copysign.length )
|
||||
{
|
||||
copysign = copysign[0];
|
||||
copysign.insertBefore( Dand.wrap( "span", false, "ptime", ms ), copysign.firstChild );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var initArchiveButtons = function()
|
||||
|
@ -33,4 +33,5 @@ footer {
|
||||
|
||||
.copysign > a {
|
||||
color: #BBB;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user