Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It doesn't go Ka Ching when I hit enter...


http://freesound.org/people/keithpeter/sounds/123344/

Some end of line bell sounds here.

I liked the application - totally minimal! I'm out of date on Javascript, local storage data I assume ends up in the browser cache?


It's HTML5's "localStorage", a local database that is all key/value.

localStorage.setItem("theKeyToSaveItAs", "theValue");

OP is saving via localStorage every 2 seconds:

setInterval(function() {

    localStorage.setItem("text", textarea.value);
}, 2000);


Thanks for the code example. I've tracked down where Firefox puts this, and I've realised that the original piece of work will carry on working when saved locally. Quite interesting...


Now it does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: