🎄 🎄

מודל אינטראקטיבי של מערכת השמש

משימה:

בנה מודל של מערכת השמש.

מודל אינטראקטיבי של מערכת השמש

יצרתי עבורך מודל אינטראקטיבי של מערכת השמש! כאן תוכל לצפות בתנועת כוכבי הלכת, ללמוד על המאפיינים שלהם ולשלוט באנימציה.

1x
השמש
כוכב חמה (מרקורי)
נוגה (ונוס)
כדור הארץ
מאדים (מארס)
חגורת האסטרואידים
צדק (יופיטר)
שבתאי (סאטורן)
אורנוס
נפטון

בחר גרם שמיים

לחץ על כל כוכב לכת או על השמש כדי ללמוד עליהם עוד!

🌟 עובדות מעניינות על מערכת השמש

🔥 השמש

מכילה 99.86% מכלל המסה של מערכת השמש. הטמפרטורה במרכז מגיעה ל-15 מיליון מעלות!

🌍 כוכבי לכת ארציים

כוכב חמה, נוגה, כדור הארץ ומאדים מורכבים בעיקר מסלע ומתכת.

🪐 ענקי הגזים

צדק, שבתאי, אורנוס ונפטון מורכבים בעיקר מגז וקרח.

⭐ חגורת האסטרואידים

בין מאדים לצדק נמצאת חגורה של אלפי שברי סלעים.

{ orbit.style.animationPlayState = 'paused'; }); btn.textContent = '▶️ הפעל'; btn.classList.add('paused'); } else { solarSystem.style.animationPlayState = 'running'; solarSystem.querySelectorAll('.orbit').forEach(orbit => { orbit.style.animationPlayState = 'running'; }); btn.textContent = '⏸️ השהיה'; btn.classList.remove('paused'); } isPlaying = !isPlaying; }; window.toggleOrbits = function() { const solarSystem = document.getElementById('solarSystem'); const btn = document.getElementById('orbitToggleBtn'); if (!solarSystem || !btn) return; if (showOrbits) { solarSystem.classList.add('hide-orbits'); btn.textContent = '⭕ הצג מסלולים'; } else { solarSystem.classList.remove('hide-orbits'); btn.textContent = '🔘 מסלולים'; } showOrbits = !showOrbits; }; window.changeSpeed = function(speed) { const speedValue = document.getElementById('speedValue'); const solarSystem = document.getElementById('solarSystem'); if (!speedValue || !solarSystem) return; animationSpeed = parseFloat(speed); speedValue.textContent = speed + 'x'; solarSystem.querySelectorAll('.orbit').forEach((orbit, index) => { const baseDuration = [10, 15, 20, 30, 60, 90, 120, 165][index] || 20; orbit.style.animationDuration = (baseDuration / animationSpeed) + 's'; }); }; window.resetAnimation = function() { const solarSystem = document.getElementById('solarSystem'); if (!solarSystem) return; solarSystem.querySelectorAll('.orbit').forEach(orbit => { orbit.style.animation = 'none'; }); setTimeout(() => { solarSystem.querySelectorAll('.orbit').forEach((orbit, index) => { orbit.style.animation = ''; const baseDuration = [10, 15, 20, 30, 60, 90, 120, 165][index] || 20; orbit.style.animationDuration = (baseDuration / animationSpeed) + 's'; }); }, 10); }; window.showPlanetInfo = function(planetId) { const panel = document.getElementById('planetInfoPanel'); const nameEl = document.getElementById('planetName'); const detailsEl = document.getElementById('planetDetails'); if (!panel || !nameEl || !detailsEl) return; const planet = planetData[planetId]; if (planet) { nameEl.textContent = planet.name; detailsEl.innerHTML = '

' + planet.details + '

'; panel.classList.add('active'); } }; window.closePlanetInfo = function() { const panel = document.getElementById('planetInfoPanel'); if (panel) { panel.classList.remove('active'); } }; // Инициализация setTimeout(() => { changeSpeed(1); }, 100); })()" style="display: none;">
הטקסט הועתק
בוצע
שגיאה
×