Display posts with countdown timer.

This commit is contained in:
Pierre HUBERT 2019-01-14 19:26:18 +01:00
parent f3efb3d390
commit e1dea40167
2 changed files with 17 additions and 0 deletions

View File

@ -86,4 +86,8 @@ h1 {
display: block; display: block;
width: 100%; width: 100%;
max-width: 150px; max-width: 150px;
}
.post .post-end-countdown {
text-align: center;
} }

View File

@ -322,6 +322,19 @@ function ApplyPosts(){
} }
//Post with countdown timer
if(post.kind == "countdown"){
createElem2({
appendTo: cardContent,
type: "p",
class: "post-end-countdown",
innerHTML: "Countdown terminates on: " + timeToStr(post.time_end)
});
}
//Display the list of comments //Display the list of comments
let postComments = createElem2({ let postComments = createElem2({