mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-23 04:29:21 +00:00
Display posts with countdown timer.
This commit is contained in:
parent
f3efb3d390
commit
e1dea40167
@ -87,3 +87,7 @@ h1 {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 150px;
|
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
|
//Display the list of comments
|
||||||
let postComments = createElem2({
|
let postComments = createElem2({
|
||||||
|
Loading…
Reference in New Issue
Block a user