.kwakeb-app-water-reminder * { all: unset; box-sizing: border-box !important; font-family: inherit !important; } .kwakeb-app-water-reminder { background: #f7f5f1; padding: 2em; max-width: 500px; margin: auto; border-radius: 1.5em; box-shadow: 0 0 1em rgba(0,0,0,0.05); color: #3C3929; } .kwakeb-app-water-reminder h2 { font-size: 1.5em; margin-bottom: 0.5em; color: #2d2b21; text-align: center; } .kwakeb-app-water-reminder label { display: block; margin: 1em 0 0.5em; font-weight: bold; } .kwakeb-app-water-reminder input[type=”number”], .kwakeb-app-water-reminder button { width: 100%; padding: 0.8em; font-size: 1em; border-radius: 0.6em; border: 1px solid #ccc; background: white; } .kwakeb-app-water-reminder button { background: #D97757; color: white; font-weight: bold; margin-top: 1em; cursor: pointer; } .kwakeb-app-water-reminder .status { margin-top: 1em; font-size: 1em; text-align: center; } .kwakeb-app-water-reminder .count { font-size: 2em; font-weight: bold; text-align: center; margin-top: 1em; } .kwakeb-app-water-reminder #sponsor-footer { margin-top: 2em; font-size: 0.9em; text-align: center; color: #666 !important; } .kwakeb-app-water-reminder #sponsor-footer a { color: #C96342 !important; text-decoration: underline; } تذكير شرب الماء 💧 الفاصل الزمني للتذكير (بالدقائق): 60 ابدأ التذكير 💧 شربت كوب ماء 0 أكواب لم يتم بدء التذكير الأداة مجانًا بالكامل، وبدون إعلانات مزعجة، بدعم من الرائعين في: عندك ملاحظة، فكرة، أو واجهت مشكلة؟ تواصل معنا على: [email protected] صُنع بـ🤍 في الـسعودية بواسطة منصة كواكب (function () { document.addEventListener(“DOMContentLoaded”, function () { // Sponsor Section const sponsorKey = “kwakeb_sponsors”; const cached = sessionStorage.getItem(sponsorKey); if (cached) { document.getElementById(“sponsor-links”).innerHTML = cached; } else { const base = [ { name: ” زد”, url: “https://zid.link/4hTPipU” }, { name: “كناري”, url: “https://knaree.com/” }, { name: “رمز”, url: “https://rmmmz.com” }, { name: “خمسات”, url: “https://khamsat.com/?r=56526” } ]; const conflict = [ { name: “وسيط شراء من النت”, url: “https://wasetshera.com?myad=56761” }, { name: “الشاري”, url: “https://alshary.com?myad=58260” } ]; const final = [conflict[Math.floor(Math.random() * conflict.length)], …base.sort(() => 0.5 – Math.random()).slice(0, 2)].sort(() => 0.5 – Math.random()); const html = final.map(s => `${s.name}`).join(” + “); document.getElementById(“sponsor-links”).innerHTML = html; sessionStorage.setItem(sponsorKey, html); } // App Logic let intervalId = null; let count = 0; const countEl = document.getElementById(“waterCount”); const statusEl = document.getElementById(“reminderStatus”); const startBtn = document.getElementById(“startReminder”); const logBtn = document.getElementById(“logWater”); function updateCount() { countEl.textContent = count + ” أكواب”; } function remind() { const msg = “🚰 تذكير: اشرب ماء الآن!”; alert(msg); if (“Notification” in window && Notification.permission === “granted”) { new Notification(msg); } const audio = new Audio(“https://actions.google.com/sounds/v1/water/water_drip.ogg”); audio.play().catch(() => {}); } startBtn.addEventListener(“click”, function () { const mins = parseInt(document.getElementById(“interval”).value); if (isNaN(mins) || mins <= 0) { alert("يرجى إدخال رقم صحيح"); return; } clearInterval(intervalId); intervalId = setInterval(remind, mins * 60000); statusEl.textContent = `سيتم التذكير كل ${mins} دقيقة`; if ("Notification" in window && Notification.permission !== "granted") { Notification.requestPermission(); } }); logBtn.addEventListener("click", function () { count++; updateCount(); }); function resetDaily() { const now = new Date(); const msToMidnight = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 0, 0, 0) - now; setTimeout(function () { count = 0; updateCount(); resetDaily(); }, msToMidnight); } updateCount(); resetDaily(); }); })();