This commit is contained in:
Bingus_Violet 2024-02-10 21:41:53 -06:00
parent 7031dc0eac
commit ca59f56a29
3 changed files with 108 additions and 43 deletions

View file

@ -45,13 +45,6 @@ function makeStars() {
}
function converter(html) {
var highTable = Object.keys(highlightedWords)
for (let index = 0; index < highTable.length; index++) {
var term = highTable[index];
var replacement = `<span style="color: ${highlightedWords[term]}">${term}</span>`
html = html.replaceAll(term, replacement)
}
html = html.replaceAll("{BG_EFFECT}", makeStars())
html = html.replaceAll("{COMMIT_COUNT}", commitCount)
@ -62,6 +55,13 @@ function converter(html) {
html = html.replaceAll("{RANDOM_TITLE}", titles[Math.floor(Math.random() * titles.length)])
var highTable = Object.keys(highlightedWords)
for (let index = 0; index < highTable.length; index++) {
var term = highTable[index];
var replacement = `<span style="color: ${highlightedWords[term]}">${term}</span>`
html = html.replaceAll(term, replacement)
}
return html
}