mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Display posts with countdown timer.
This commit is contained in:
		@@ -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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user