display icons in intro section
This commit is contained in:
parent
40a434d869
commit
6625c018f9
3 changed files with 44 additions and 1 deletions
|
|
@ -202,6 +202,26 @@ function GenerateInnerHTML(db) {
|
|||
obj.b = ["", ""];
|
||||
obj.span = ["<b>", "</b>"];
|
||||
|
||||
if (entries[entry].hasOwnProperty("icon")) {
|
||||
|
||||
switch (entries[entry].icon) {
|
||||
|
||||
case "clock":
|
||||
obj.icon = iconClock;
|
||||
break;
|
||||
case "green":
|
||||
obj.icon = iconGreen;
|
||||
break;
|
||||
case "red":
|
||||
obj.icon = iconRed;
|
||||
break;
|
||||
default:
|
||||
obj.icon = iconNull;
|
||||
}
|
||||
} else {
|
||||
obj.icon = iconRed;
|
||||
}
|
||||
|
||||
obj.textPrefix = entries[entry].name;
|
||||
obj.textSuffix = entries[entry].spoiler;
|
||||
obj.spoilerAfter = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue