mgvez / jsorrery

WebGL Solar System & orbital mechanics simulator
MIT License
412 stars 111 forks source link

feature request: application state as url parameters #1

Open ivanistheone opened 10 years ago

ivanistheone commented 10 years ago

Application state could be exposed via url params.

screen shot 2013-12-11 at 3 05 45 pm

This would be great for linking.... e.g., http://live.sympy.org/?evaluate=g%3D9.81%0A%23--%0Ax%20%3D%20(1%2F2)*g*t**2%20%2B%2020*t%20%2B%2010%0A%23--%0Ax.subs(%7Bt%3A3%7D)%0A%23--%0A

mgvez commented 10 years ago

Parameters are exposed in the search part of the url (not in the hash, though it could have been). You can get that url by hitting the share icon on the top-right corner. In the Github pages version, this url is shortened by Google services.

Cheers!