add automatic scrollback
This commit is contained in:
parent
ea5ac47cdb
commit
f8fd90c4fc
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%-email ? `<block style="text-align: center; width: 100%;">Please send any inquiries to ${email}.</block><br/>` : ''%>
|
<%-email ? `<block style="text-align: center; width: 100%;">Please send any inquiries to ${email}.</block><br/>` : ''%>
|
||||||
<a style="position: fixed; bottom: 10px; right: 10px;" href="/"><button type="button">Home</button></a>
|
<a style="position: fixed; bottom: 10px; right: 10px;" href="/#<%- postid %>_"><button type="button">Home</button></a>
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
<%- (function(){
|
<%- (function(){
|
||||||
let ret = ''
|
let ret = ''
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
const makeForm = id == comment || postid == -1
|
const makeForm = id == comment || postid == -1
|
||||||
const date = post.timestamp ? new Date(post.timestamp) : null
|
const date = post.timestamp ? new Date(post.timestamp) : null
|
||||||
ret +=
|
ret +=
|
||||||
`<post><div class="content">${date ? (`<h6>${date.toUTCString()}</h6>`) : ''}<h3>${post.author.replaceAll('<','<').replaceAll('>','>')}: ${post.title.replaceAll('<','<').replaceAll('>','>')}</h3>` +
|
`<post id="${id}"><div class="content">${date ? (`<h6>${date.toUTCString()}</h6>`) : ''}<h3>${post.author.replaceAll('<','<').replaceAll('>','>')}: ${post.title.replaceAll('<','<').replaceAll('>','>')}</h3>` +
|
||||||
post.content.replaceAll('<','<').replaceAll('>','>')
|
post.content.replaceAll('<','<').replaceAll('>','>')
|
||||||
.replaceAll(/\[[#] ([^"]*?) [#]\]/g, '<img src="$1">')
|
.replaceAll(/\[[#] ([^"]*?) [#]\]/g, '<img src="$1">')
|
||||||
.replaceAll(/(?<!")(https?:\/\/[^ \n]+)(?!")/g, '<a href="$1" target="_blank">$1</a>')
|
.replaceAll(/(?<!")(https?:\/\/[^ \n]+)(?!")/g, '<a href="$1" target="_blank">$1</a>')
|
||||||
|
|
Loading…
Add table
Reference in a new issue