1
0
mirror of https://github.com/pierre42100/ComunicWeb synced 2025-04-09 03:00:53 +00:00

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
assets/zip/personnal-data-export-navigator/assets

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

@ -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
let postComments = createElem2({