Garlic.jsGarlic.js allows you to automatically persist your forms' text and select field values locally, until the form is submitted. This way, your users don't lose any precious data if they accidentally close their tab or browser.
Demonstration / Documentationhttp://garlicjs.org/
Version1.4.2 See CHANGELOG for more info.
- Improve doc and api;
- Refactorize some code;
- Work on inputs radio and textarea where there are conflicts;
- And much more, for fun!
- In your browser: go to
- Headless tests:
npm install && npm test
Make production minified versionsYou'll need ruby, and Google Closure compiler:
gem install closure-compiler. Then, just call:
./bin/build.sh versionwhere version is the build release. eg:
./bin/build.sh 1.1.2They'll be created and dumped in the dist/ directory
Used / Inspiration
- localStorageshim for IE browsers: https://github.com/mattpowell/localstorageshim by @mattpowell
- minify ruby script https://gist.github.com/765432 by @benpickles
LicenceMIT - See LICENCE.md