Thông tin
<html lang="en">
<div>
<span class="text-dark">SN: <span id="momk"></span></span>
</div>
<style>
#momk {
animation: colorRotate 2.5s linear 0s infinite;
}
</style>
<script>
function showDate() {
function updateDisplay() {
const targetDate = new Date();
const currentDate = new Date("2024/12/10");
const currentTimeGMT7 = currentDate.getTime() + (7 * 60 * 60 * 1000);
const timeDifference = targetDate.getTime() - currentTimeGMT7;
const seconds = Math.floor(timeDifference / 1000);
const minutes = Math.floor(seconds / 60);
const hours = Math.floor(minutes / 60);
const days = Math.floor(hours / 24);
const displayString = ${days} ngày ${hours % 24} giờ ${minutes % 60} phút ${seconds % 60} giây.
;
document.getElementById('momk').innerHTML = displayString;
requestAnimationFrame(updateDisplay);
}
updateDisplay();
}
</script>
</html>