// ========================================================================= // 12. BOOTSTRAP ON LOAD & PWA MANIFEST FOR HOSTINGER // ========================================================================= function setupWebAppManifest() { const manifest = { name: "أكاديميتي - إدارة الطلاب والمواعيد", short_name: "أكاديميتي", start_url: "./index.html", display: "standalone", background_color: "#f8fafc", theme_color: "#0f172a", dir: "rtl", lang: "ar" }; const blob = new Blob([JSON.stringify(manifest)], { type: 'application/json' }); const manifestURL = URL.createObjectURL(blob); const link = document.createElement('link'); link.rel = 'manifest'; link.href = manifestURL; document.head.appendChild(link); } window.onload = function() { setupWebAppManifest(); const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; document.getElementById('current-date-display').textContent = new Date().toLocaleDateString('ar-EG', options); loadState(); renderAll(); };