1
0
Fork 0

single-quote strings

This commit is contained in:
James Tomasino 2021-06-18 15:48:54 +00:00
parent 4f0a6bfba3
commit 40c96204f9
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ app.get('/', async function (req, res) {
const split = recent[i].split('\t')
let link = split[1]
let name = split[0].substr(1)
content += "<a href=\"" + link + "\">" + lines + " <span class=\"dim\">&gt;&gt;</span> " + name + "</a>\n"
content += '<a href="' + link + '">' + lines + ' <span class="dim">&gt;&gt;</span> ' + name + '</a>\n'
lines--
}
res.render('index', { intro: intro, recent: content })
@ -43,7 +43,7 @@ app.get('/log/', async function (req, res) {
const split = list[i].split('\t')
let link = split[1]
let name = split[0].substr(1)
content += "<a href=\"" + link + "\">" + String(lines).padStart(3, '0') + " <span class=\"dim\">&gt;&gt;</span> " + name + "</a>\n"
content += '<a href="' + link + '">' + String(lines).padStart(3, '0') + ' <span class="dim">&gt;&gt;</span> ' + name + '</a>\n'
lines--
}
const back = '<a href="/"><span class="dim">&lt;&lt;</span> BACK TO COSMIC VOYAGE</a>'