mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Display posts with countdown timer.
This commit is contained in:
parent
f3efb3d390
commit
e1dea40167
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user