jdiwnab / OrbitSim

JavaScript Gravity simulator
13 stars 4 forks source link

Improves compatibility implments saving and loading to localStorage and to Files #7

Closed adtraub closed 9 years ago

adtraub commented 9 years ago

Compatibility is improved by standardizing the whitespace to only use ascii 32 characters. The combination of standard spaces and nbsp caused the incompatibility on windows browsers.

Saving and loading can be done using localStorage (thank you HTML5).

We are now also able to save and load utilizing json files. The files are extremely simple and readable in their structure. Expect a quick writeup on the topic coming soon.