More CSS
This commit is contained in:
parent
7031dc0eac
commit
ca59f56a29
3 changed files with 108 additions and 43 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue