} function bukaHalamanRahsia() { document.getElementById("lock-page").style.display = "none"; document.getElementById("content-page").style.display = "block"; kiraHari(); } function kiraHari() { const tarikhMula = new Date(TARIKH_MULA); const tarikhSekarang = new Date(); const perbezaanMasa = tarikhSekarang - tarikhMula; const jumlahHari = Math.floor(perbezaanMasa / (1000 * 60 * 60 * 24)); document.getElementById("days-count").innerText = jumlahHari + " Hari"; } function keHalamanTiga() { document.getElementById("content-page").style.display = "none"; document.getElementById("secret-page-3").style.display = "block"; intervelHati = setInterval(ciptaHatiJatuh, 200); } function kembaliKeHalamanDua() { document.getElementById("secret-page-3").style.display = "none"; document.getElementById("content-page").style.display = "block"; clearInterval(intervelHati); } function ciptaHatiJatuh() { const hatiPilihan = ['💗', '💓', '💕', '💖', '💝']; const hati = document.createElement('div'); hati.classList.add('falling-heart'); hati.innerText = hatiPilihan[Math.floor(Math.random() * hatiPilihan.length)]; hati.style.left = Math.random() * 100 + 'vw'; const durasiJatuh = Math.random() * 2 + 2.5; hati.style.animationDuration = durasiJatuh + 's'; hati.style.fontSize = Math.random() * 15 + 18 + 'px'; document.body.appendChild(hati); setTimeout(() => { hati.remove(); }, durasiJatuh * 1000); }