diff --git a/assets/zip/personnal-data-export-navigator/assets/css/main.css b/assets/zip/personnal-data-export-navigator/assets/css/main.css index bcabccab..0195ca32 100644 --- a/assets/zip/personnal-data-export-navigator/assets/css/main.css +++ b/assets/zip/personnal-data-export-navigator/assets/css/main.css @@ -86,4 +86,8 @@ h1 { display: block; width: 100%; max-width: 150px; +} + +.post .post-end-countdown { + text-align: center; } \ No newline at end of file diff --git a/assets/zip/personnal-data-export-navigator/assets/js/main.js b/assets/zip/personnal-data-export-navigator/assets/js/main.js index d9959760..58753f99 100644 --- a/assets/zip/personnal-data-export-navigator/assets/js/main.js +++ b/assets/zip/personnal-data-export-navigator/assets/js/main.js @@ -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({