single-quote strings

This commit is contained in:
James Tomasino 2021-06-18 15:48:54 +00:00
parent 4f0a6bfba3
commit 40c96204f9

View File

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