mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
add environ error message
add to environ some data and some codereview pages some fix oembed and OpenGraph
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
let blogId = $("#blogId").text();
|
||||
function loadComments () {
|
||||
fetch(`/api/Blog/${blogId}/comments`)
|
||||
.then(response => {
|
||||
let data = response.json();
|
||||
data.then(k => {
|
||||
for (let i = 0; i < k.length; i++) {
|
||||
let date = new Date(k[i].dateTime * 1000);
|
||||
$("#commentBar").after(
|
||||
`<div class="d-flex flex flex-start bg-dark bot-1">
|
||||
function loadComments() {
|
||||
if (document.location.pathname.startsWith("/Blog")) {
|
||||
fetch(`/api/Blog/${blogId}/comments`)
|
||||
.then(response => {
|
||||
let data = response.json();
|
||||
data.then(k => {
|
||||
for (let i = 0; i < k.length; i++) {
|
||||
let date = new Date(k[i].dateTime * 1000);
|
||||
$("#commentBar").after(
|
||||
`<div class="d-flex flex flex-start bg-dark bot-1">
|
||||
<div class="container">
|
||||
<h6 class="fw-bold mb-1">${k[i].creatorMail}</h6>
|
||||
<div class="d-flex align-items-center mb-3">
|
||||
<p class="mb-0">
|
||||
${date.toLocaleString() }
|
||||
${date.toLocaleString()}
|
||||
</p>
|
||||
</div>
|
||||
<p class="mb-0">
|
||||
@@ -20,10 +21,11 @@ function loadComments () {
|
||||
</p>
|
||||
</div>
|
||||
</div>`
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
$("#postComment").click(
|
||||
function () {
|
||||
|
||||
Reference in New Issue
Block a user