How to make a countdown timer?


#1

hey guys!

I have been following this tutorial on how to build a countdown timer with php and javascript and got the basic to work but how would I alter it so that it will not show the days? I tried to cancel those lines with days but then my timer stops working… I forgot whether I have to place back ticks here to format it?

Countdown body { background: #f6f6f6; }
	.countdownContainer {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		text-align: center;
		background: #ddd;
		border: 1px solid #999;
		padding: 10px;
		box-shadow: 0 0 5px 3px #ccc;

	}

	.info {
		font-size: 80px;
	}
</style>
Christmas Countdown
120 4 12 22
Days Hours Minutes Seconds