PrepareHTMLString more readable return
This commit is contained in:
parent
460ce42ad4
commit
5dfda5bffa
3 changed files with 11 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -228,7 +228,7 @@
|
|||
<div style="margin-bottom: 20px;"></div>
|
||||
|
||||
<p class="smalltext">
|
||||
v1.0.4. Work-In-Progress. Feedback: <a href="https://steamcommunity.com/app/367520/discussions/0/2915472677711090083/" target="_blank"><i class="simpleicon-steam"></i>Steam Discussions</a> <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2209910193" target="_blank"><i class="simpleicon-steam"></i>Steam Guide</a>.<br>
|
||||
v1.1.0. Work-In-Progress. Feedback: <a href="https://steamcommunity.com/app/367520/discussions/0/2915472677711090083/" target="_blank"><i class="simpleicon-steam"></i>Steam Discussions</a> <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2209910193" target="_blank"><i class="simpleicon-steam"></i>Steam Guide</a>.<br>
|
||||
Programmed, written and created by 🉑 <a href="https://github.com/ReznoRMichael/hollow-knight-completion-check" target="_blank">rezno[R]</a> © 2020–2021<br>
|
||||
<a href="https://www.paypal.me/ReznoRMichael" target="_blank"><i class="simpleicon-paypal"></i>Support Tool (PayPal)<i class="simpleicon-paypal"></i></a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -266,7 +266,15 @@ function PrepareHTMLString(divId, textPrefix = "Unknown Completion Element: ", t
|
|||
let dash = "";
|
||||
if (textSuffix.length && textPrefix.length) dash = "— ";
|
||||
|
||||
return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd;
|
||||
// return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd;
|
||||
return `
|
||||
${divStart}
|
||||
${icon}${b[0]}${textPrefix}${b[1]}
|
||||
${span[0]}
|
||||
${pSpan}${spoilerSpan[0]}${dash}${textSuffix}${spoilerSpan[1]}
|
||||
${span[1]}
|
||||
${divEnd}
|
||||
`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue