A single-file interactive web tool for building scale models of the solar system and calculating distances between planets.
- Enter a sun diameter and get all planet diameters and distances to scale
- Calculate the distance between any two solar system objects
- All logic and UI in a single HTML file (no dependencies)
Just serve index.html with any static web server or open it directly in your browser.
To serve this app at https://yourdomain.com/solarsystem/:
server {
listen 443 ssl;
server_name yourdomain.com;
root /var/www/html/solarsystem;
location /solarsystem/ {
index index.html;
try_files $uri $uri/ /solarsystem/index.html;
}
}- Place
index.htmlin/var/www/html/solarsystem/ - Adjust
server_nameandrootas needed
MIT
Created by hromp.com