toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
162 stars 44 forks source link

Implement autosave #40

Closed toolness closed 8 years ago

toolness commented 8 years ago

As mentioned in #26:

Learners often found themselves needing to navigate away from the curriculum page (on which the widget was embedded) and come back to it later; or they found themselves needing to reload the page for some reason (perhaps that was how they wanted to "restart" their sketch?). They then became frustrated when they found that the code they'd entered was no longer in the widget. So it might be useful to store the current code in sessionStorage and bring it back on page load.