mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:17:58 +01:00
move more-prompt messages to the commandline and use the default UI font size
in the MOW
This commit is contained in:
@@ -1426,25 +1426,30 @@ function Commands() //{{{
|
||||
var after_time = Date.now();
|
||||
|
||||
if ((after_time - before_time) / count >= 100)
|
||||
var each = " Each time: <span style=\"color: green\">" +
|
||||
var each = "<td> Each time:</td><td align=\"right\"><span style=\"color: green\">" +
|
||||
((after_time - before_time) / 1000.0 / count) +
|
||||
"</span> sec<br/>";
|
||||
"</span></td><td>sec</td>";
|
||||
else
|
||||
var each = " Each time: <span style=\"color: green\">" +
|
||||
var each = "<td> Each time:</td><td align=\"right\"><span style=\"color: green\">" +
|
||||
((after_time - before_time) / count) +
|
||||
"</span> msec<br/>";
|
||||
"</span></td><td>msec</td>";
|
||||
|
||||
if (after_time - before_time >= 100)
|
||||
var total = " Total time: <span style=\"color: red\">" +
|
||||
var total = "<td> Total time:</td><td align=\"right\"><span style=\"color: red\">" +
|
||||
((after_time - before_time) / 1000.0) +
|
||||
"</span> sec";
|
||||
"</span></td><td>sec</td>";
|
||||
else
|
||||
var total = " Total time: <span style=\"color: red\">" +
|
||||
(after_time - before_time) + "</span> msec";
|
||||
var total = "<td> Total time:</td><td align=\"right\"><span style=\"color: red\">" +
|
||||
(after_time - before_time) + "</span></td><td>msec</td>";
|
||||
|
||||
var str = "<table>" +
|
||||
"<tr align=\"left\" class=\"hl-Title\"><th colspan=\"3\">Code execution summary</th></tr>" +
|
||||
"<tr><td> Executed:</td><td align=\"right\"><span style=\"color: green\">" + count + "</span></td><td>times</td></tr>" +
|
||||
"<tr>" + each + "</tr>" +
|
||||
"<tr>" + total + "</tr>"
|
||||
"</table>";
|
||||
|
||||
vimperator.echo("<span style=\"color: magenta; font-weight: bold\">Code execution summary</span>:<br/>" +
|
||||
" Executed: <span style=\"color: green\">" + count + "</span> times<br/>" + each + total);
|
||||
vimperator.commandline.echo(str, vimperator.commandline.HL_NORMAL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user