true completion h2 test
This commit is contained in:
parent
9c7b84bae9
commit
600435a969
6 changed files with 36 additions and 7 deletions
|
|
@ -182,6 +182,10 @@ h6 {
|
|||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
#hk-true-completion {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
text-align: center;
|
||||
font-size: 0.8rem;
|
||||
|
|
|
|||
|
|
@ -747,7 +747,7 @@ function CompletionFillNoSave(section) {
|
|||
let h2id = "";
|
||||
let mp = ""; // max Percent
|
||||
let symbol = "";
|
||||
// let cl = ""; // class
|
||||
let textFill = "";
|
||||
|
||||
id = section.id;
|
||||
h2 = section.h2;
|
||||
|
|
@ -785,7 +785,18 @@ function CompletionFillNoSave(section) {
|
|||
mp = `<div class='percent-box'>${(id === "hk-intro") ? 0: section.maxPercent}${symbol}</div>`;
|
||||
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
||||
|
||||
return `<h2 id='${h2id}'>${h2}${mp}</h2>`;
|
||||
textFill += `<h2 id='${h2id}'>${h2}${mp}</h2>`;
|
||||
|
||||
// ----------------- True Completion h2 title ---------------- //
|
||||
switch (id) {
|
||||
|
||||
case "hk-intro":
|
||||
textFill += `<h2 id='hk-true-completion'>True Completion<div class='percent-box'>89.98%</div></h2>`;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
return textFill;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue