هذا المتصفح لا يدعم عرض ملفات PDF. ⬇️ تحميل ملف PDF function startDownload() { const btn = document.getElementById('downloadBtn'); const countdown = document.getElementById('countdown'); const link = document.getElementById('downloadLink'); const progressBarContainer = document.getElementById('progressBarContainer'); const progressBar = document.getElementById('progressBar'); const sound = document.getElementById('downloadSound'); let timeLeft = 5; let progress = 0; btn.disabled = true; btn.style.background = '#999'; countdown.textContent = `سيبدأ التحميل خلال ${timeLeft} ثوانٍ...`; progressBarContainer.style.display = 'block'; progressBar.style.width = '0%'; const interval = 1000; const total = 5000; const timer = setInterval(() => { timeLeft--; progress += 100 / (total / interval); progressBar.style.width = `${progress}%`; if (timeLeft > 0) { countdown.textContent = `سيبدأ التحميل خلال ${timeLeft} ثوانٍ...`; } else { clearInterval(timer); countdown.textContent = 'جاري التحميل...'; progressBar.style.width = '100%'; sound.play(); // تشغيل صوت التحميل link.click(); setTimeout(() => { countdown.textContent = ''; btn.disabled = false; btn.style.background = '#0073aa'; progressBarContainer.style.display = 'none'; }, 2000); } }, interval); } ↩️ العودة لصفحة فروض المراقية عدد3 في العلوم التكنولوجية 8 اساسي /* تنسيقات زر العودة */ #back-button { display: block; margin: 30px auto; padding: 12px 25px; background: white; color: #3498db; border-radius: 12px; text-align: center; font-weight: bold; text-decoration: none; width: fit-content; font-size: 16px; border: 2px solid #3498db; animation: pulse 2s infinite; } #back-button:hover { background: #3498db; color: white; transform: scale(1.05); } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); } }