I want a realistic solar system simulation written in javascript. You will code all in a single Html page. respect the distances, the sizes, and allow zoom in zoom out. It's an heliocentric view seen from above
Sure! Below is a simplified but functional example of a solar system simulation in JavaScript embedded within an HTML file. This example uses basic HTML, CSS, and JavaScript to create a heliocentric view seen from above. The sizes and distances are scaled down for visual clarity.
<!DOCTYPE html>
<html lang="en">
<head>