hk-intro percent fix
This commit is contained in:
parent
8a270132be
commit
d35a360ba8
3 changed files with 5 additions and 5 deletions
|
|
@ -4679,7 +4679,7 @@ function CompletionHTML(jsObj, hkGameCompletion) {
|
|||
else cl = ""; // needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
||||
|
||||
|
||||
if (jsObj[i].hasOwnProperty("percent")) cp += "/";
|
||||
if (jsObj[i].id != "hk-intro") cp += "/";
|
||||
fillText = "<div class='percent-box".concat(cl, "'>").concat(i === "intro" ? cp : cp + jsObj[i].maxPercent, "%</div>");
|
||||
}
|
||||
|
||||
|
|
@ -4734,7 +4734,7 @@ function CompletionFill(section) {
|
|||
fillText = "<div class='percent-box".concat(cl, "'>").concat(section.id === "hk-intro" ? cp : cp + section.maxPercent, "%</div>");
|
||||
}
|
||||
|
||||
return "".concat(h2id).concat(h2).concat(fillText, "</h2>");
|
||||
return "".concat(h2id).concat(h2).concat(fillText, "</h2>\n");
|
||||
}
|
||||
|
||||
function GenerateInnerHTML(hkdb) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -125,7 +125,7 @@ function CompletionHTML(jsObj, hkGameCompletion) {
|
|||
else cl = "";
|
||||
|
||||
// needed for Game Status to show percentage properly (adds a slash for all boxes except the Game Status one)
|
||||
if (jsObj[i].hasOwnProperty("percent")) cp += "/";
|
||||
if (jsObj[i].id != "hk-intro") cp += "/";
|
||||
|
||||
fillText = `<div class='percent-box${cl}'>${(i === "intro") ? cp: cp + jsObj[i].maxPercent}%</div>`;
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ function CompletionHTML(jsObj, hkGameCompletion) {
|
|||
fillText = `<div class='percent-box${cl}'>${(section.id === "hk-intro") ? cp: cp + section.maxPercent}%</div>`;
|
||||
}
|
||||
|
||||
return `${h2id}${h2}${fillText}</h2>`;
|
||||
return `${h2id}${h2}${fillText}</h2>\n`;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue