display icons in intro section
This commit is contained in:
parent
40a434d869
commit
6625c018f9
3 changed files with 44 additions and 1 deletions
23
build/app.js
23
build/app.js
|
|
@ -5070,6 +5070,28 @@ function GenerateInnerHTML(db) {
|
|||
for (var entry in entries) {
|
||||
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 = "";
|
||||
|
|
@ -5083,6 +5105,7 @@ function GenerateInnerHTML(db) {
|
|||
break;
|
||||
|
||||
case "health":
|
||||
/* ----------------- Horizontal Line after save version ---------------- */
|
||||
textFill += FLEUR_DIVIDE;
|
||||
obj.div = divFlex;
|
||||
obj.span = ["", ""];
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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…
Reference in a new issue