true completion h2 test
This commit is contained in:
parent
9c7b84bae9
commit
600435a969
6 changed files with 36 additions and 7 deletions
16
build/app.js
16
build/app.js
|
|
@ -12114,8 +12114,8 @@ function CompletionFillNoSave(section) {
|
||||||
var h2id = "";
|
var h2id = "";
|
||||||
var mp = ""; // max Percent
|
var mp = ""; // max Percent
|
||||||
|
|
||||||
var symbol = ""; // let cl = ""; // class
|
var symbol = "";
|
||||||
|
var textFill = "";
|
||||||
id = section.id;
|
id = section.id;
|
||||||
h2 = section.h2;
|
h2 = section.h2;
|
||||||
h2id = "h2-" + section.id;
|
h2id = "h2-" + section.id;
|
||||||
|
|
@ -12147,7 +12147,17 @@ function CompletionFillNoSave(section) {
|
||||||
|
|
||||||
mp = "<div class='percent-box'>".concat(id === "hk-intro" ? 0 : section.maxPercent).concat(symbol, "</div>");
|
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 "<h2 id='".concat(h2id, "'>").concat(h2).concat(mp, "</h2>");
|
textFill += "<h2 id='".concat(h2id, "'>").concat(h2).concat(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;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Replaces the h2 titles with a current percent/max percent values as read from the database
|
* Replaces the h2 titles with a current percent/max percent values as read from the database
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -358,6 +358,10 @@ h6 {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#hk-true-completion {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.section-description {
|
.section-description {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -182,6 +182,10 @@ h6 {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#hk-true-completion {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.section-description {
|
.section-description {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
|
|
||||||
|
|
@ -747,7 +747,7 @@ function CompletionFillNoSave(section) {
|
||||||
let h2id = "";
|
let h2id = "";
|
||||||
let mp = ""; // max Percent
|
let mp = ""; // max Percent
|
||||||
let symbol = "";
|
let symbol = "";
|
||||||
// let cl = ""; // class
|
let textFill = "";
|
||||||
|
|
||||||
id = section.id;
|
id = section.id;
|
||||||
h2 = section.h2;
|
h2 = section.h2;
|
||||||
|
|
@ -785,7 +785,18 @@ function CompletionFillNoSave(section) {
|
||||||
mp = `<div class='percent-box'>${(id === "hk-intro") ? 0: section.maxPercent}${symbol}</div>`;
|
mp = `<div class='percent-box'>${(id === "hk-intro") ? 0: section.maxPercent}${symbol}</div>`;
|
||||||
if (!section.hasOwnProperty("maxPercent")) mp = "";
|
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…
Reference in a new issue