remove % symbol for Journal
This commit is contained in:
parent
d2980644df
commit
53ad0a64ee
3 changed files with 24 additions and 8 deletions
16
build/app.js
16
build/app.js
|
|
@ -7028,12 +7028,16 @@ function CompletionFillNoSave(section) {
|
||||||
var h2 = "";
|
var h2 = "";
|
||||||
var h2id = "";
|
var h2id = "";
|
||||||
var mp = ""; // max Percent
|
var mp = ""; // max Percent
|
||||||
// let cl = ""; // class
|
|
||||||
|
var symbol = "%"; // let cl = ""; // class
|
||||||
|
|
||||||
id = section.id;
|
id = section.id;
|
||||||
h2 = section.h2;
|
h2 = section.h2;
|
||||||
h2id = "h2-" + section.id;
|
h2id = "h2-" + section.id;
|
||||||
mp = "<div class='percent-box'>".concat(id === "hk-intro" ? 0 : section.maxPercent, "%</div>");
|
/* Do not display % when showing Hunter's Journal entries */
|
||||||
|
|
||||||
|
if (section.id === "hk-journal") symbol = "";
|
||||||
|
mp = "<div class='percent-box'>".concat(id === "hk-intro" ? 0 : section.maxPercent).concat(symbol, "</div>");
|
||||||
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
||||||
/* return [
|
/* return [
|
||||||
`<div id="${id}" ${cl}>`,
|
`<div id="${id}" ${cl}>`,
|
||||||
|
|
@ -7058,6 +7062,7 @@ function CompletionFill(section) {
|
||||||
|
|
||||||
var mp = 0; // max Percent
|
var mp = 0; // max Percent
|
||||||
|
|
||||||
|
var symbol = "%";
|
||||||
var fillText = "";
|
var fillText = "";
|
||||||
section.hasOwnProperty("percent") ? cp = section.percent : cp = 0; // Don't use percent-box for Essentials, Achievements, Statistics
|
section.hasOwnProperty("percent") ? cp = section.percent : cp = 0; // Don't use percent-box for Essentials, Achievements, Statistics
|
||||||
|
|
||||||
|
|
@ -7085,8 +7090,11 @@ function CompletionFill(section) {
|
||||||
else cl = ""; // needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
else cl = ""; // needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
||||||
|
|
||||||
|
|
||||||
if (section.id != "hk-intro") cp += "/";
|
if (section.id !== "hk-intro") cp += "/";
|
||||||
fillText = "<div class='percent-box".concat(cl, "'>").concat(section.id === "hk-intro" ? cp : "".concat(cp).concat(section.maxPercent), "%</div>");
|
/* Do not display % when showing Hunter's Journal entries */
|
||||||
|
|
||||||
|
if (section.id === "hk-journal") symbol = "";
|
||||||
|
fillText = "<div class='percent-box".concat(cl, "'>").concat(section.id === "hk-intro" ? cp : "".concat(cp).concat(section.maxPercent)).concat(symbol, "</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
return "\t".concat(h2id).concat(h2).concat(fillText, "</h2>\n");
|
return "\t".concat(h2id).concat(h2).concat(fillText, "</h2>\n");
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -632,13 +632,17 @@ function CompletionFillNoSave(section) {
|
||||||
let h2 = "";
|
let h2 = "";
|
||||||
let h2id = "";
|
let h2id = "";
|
||||||
let mp = ""; // max Percent
|
let mp = ""; // max Percent
|
||||||
|
let symbol = "%";
|
||||||
// let cl = ""; // class
|
// let cl = ""; // class
|
||||||
|
|
||||||
id = section.id;
|
id = section.id;
|
||||||
h2 = section.h2;
|
h2 = section.h2;
|
||||||
h2id = "h2-" + section.id;
|
h2id = "h2-" + section.id;
|
||||||
|
|
||||||
mp = `<div class='percent-box'>${(id === "hk-intro") ? 0: section.maxPercent}%</div>`;
|
/* Do not display % when showing Hunter's Journal entries */
|
||||||
|
if (section.id === "hk-journal") symbol = "";
|
||||||
|
|
||||||
|
mp = `<div class='percent-box'>${(id === "hk-intro") ? 0: section.maxPercent}${symbol}</div>`;
|
||||||
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
||||||
|
|
||||||
/* return [
|
/* return [
|
||||||
|
|
@ -661,6 +665,7 @@ function CompletionFill(section) {
|
||||||
let clRed = "box-red";
|
let clRed = "box-red";
|
||||||
let cp = 0; // current Percent
|
let cp = 0; // current Percent
|
||||||
let mp = 0; // max Percent
|
let mp = 0; // max Percent
|
||||||
|
let symbol = "%";
|
||||||
let fillText = "";
|
let fillText = "";
|
||||||
|
|
||||||
(section.hasOwnProperty("percent")) ? cp = section.percent: cp = 0;
|
(section.hasOwnProperty("percent")) ? cp = section.percent: cp = 0;
|
||||||
|
|
@ -694,9 +699,12 @@ function CompletionFill(section) {
|
||||||
else cl = "";
|
else cl = "";
|
||||||
|
|
||||||
// needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
// needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
||||||
if (section.id != "hk-intro") cp += "/";
|
if (section.id !== "hk-intro") cp += "/";
|
||||||
|
|
||||||
fillText = `<div class='percent-box${cl}'>${(section.id === "hk-intro") ? cp: `${cp}${section.maxPercent}`}%</div>`;
|
/* Do not display % when showing Hunter's Journal entries */
|
||||||
|
if (section.id === "hk-journal") symbol = "";
|
||||||
|
|
||||||
|
fillText = `<div class='percent-box${cl}'>${(section.id === "hk-intro") ? cp: `${cp}${section.maxPercent}`}${symbol}</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `\t${h2id}${h2}${fillText}</h2>\n`;
|
return `\t${h2id}${h2}${fillText}</h2>\n`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue