mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 06:17:58 +01:00
use hl-Title class for titles in :jumps, :autocmd, :viusage and :exusage MOW
output
This commit is contained in:
@@ -136,7 +136,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
{
|
{
|
||||||
var sh = getWebNavigation().sessionHistory;
|
var sh = getWebNavigation().sessionHistory;
|
||||||
var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "jumps") + "<br/>" + "<table>";
|
var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "jumps") + "<br/>" + "<table>";
|
||||||
list += "<tr style=\"text-align: left; color: magenta; font-weight: bold;\"><th colspan=\"2\">jump</th><th>title</th><th>URI</th></tr>";
|
list += "<tr style=\"text-align: left;\" class=\"hl-Title\"><th colspan=\"2\">jump</th><th>title</th><th>URI</th></tr>";
|
||||||
var num = -sh.index;
|
var num = -sh.index;
|
||||||
|
|
||||||
for (var i = 0; i < sh.count; i++)
|
for (var i = 0; i < sh.count; i++)
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ liberator.AutoCommands = function () //{{{
|
|||||||
list: function (auEvent, regex) // arguments are filters (NULL = all)
|
list: function (auEvent, regex) // arguments are filters (NULL = all)
|
||||||
{
|
{
|
||||||
var flag;
|
var flag;
|
||||||
var list = "<table><tr><td style='font-weight: bold;' colspan='2'>---- Auto-Commands ----</td></tr>";
|
var list = "<table><tr><td class=\"hl-Title\" colspan=\"2\">---- Auto-Commands ----</td></tr>";
|
||||||
for (var item in autoCommands)
|
for (var item in autoCommands)
|
||||||
{
|
{
|
||||||
flag = true;
|
flag = true;
|
||||||
@@ -204,7 +204,7 @@ liberator.AutoCommands = function () //{{{
|
|||||||
{
|
{
|
||||||
if (flag == true)
|
if (flag == true)
|
||||||
{
|
{
|
||||||
list += "<tr><td style='font-weight: bold;' colspan='2'>" +
|
list += "<tr><td class=\"hl-Title\" colspan=\"2\">" +
|
||||||
liberator.util.escapeHTML(item) + "</td></tr>";
|
liberator.util.escapeHTML(item) + "</td></tr>";
|
||||||
flag = false;
|
flag = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ const liberator = (function () //{{{
|
|||||||
var usage = "<table>";
|
var usage = "<table>";
|
||||||
for (let command in liberator.commands)
|
for (let command in liberator.commands)
|
||||||
{
|
{
|
||||||
usage += "<tr><td style='color: magenta; padding-right: 20px'> :" +
|
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> :" +
|
||||||
liberator.util.escapeHTML(command.name) + "</td><td>" +
|
liberator.util.escapeHTML(command.name) + "</td><td>" +
|
||||||
liberator.util.escapeHTML(command.description) + "</td></tr>";
|
liberator.util.escapeHTML(command.description) + "</td></tr>";
|
||||||
}
|
}
|
||||||
@@ -465,7 +465,7 @@ const liberator = (function () //{{{
|
|||||||
var usage = "<table>";
|
var usage = "<table>";
|
||||||
for (let mapping in liberator.mappings)
|
for (let mapping in liberator.mappings)
|
||||||
{
|
{
|
||||||
usage += "<tr><td style='color: magenta; padding-right: 20px'> " +
|
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> " +
|
||||||
liberator.util.escapeHTML(mapping.names[0]) + "</td><td>" +
|
liberator.util.escapeHTML(mapping.names[0]) + "</td><td>" +
|
||||||
liberator.util.escapeHTML(mapping.description) + "</td></tr>";
|
liberator.util.escapeHTML(mapping.description) + "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user