Skip to content

Automatically persist your forms' text and select field values locally, until the form is submitted.

License

Notifications You must be signed in to change notification settings

guillaumepotier/Garlic.js

Folders and files

NameName
Last commit message
Last commit date
Dec 12, 2019
Dec 9, 2017
Apr 24, 2018
Mar 27, 2017
May 9, 2017
Mar 27, 2017
Jun 4, 2014
Apr 18, 2017
Nov 11, 2012
Apr 18, 2017
Nov 10, 2012
Jun 18, 2018
Mar 27, 2017
Sep 18, 2020
Jun 18, 2018
Oct 10, 2019
Dec 9, 2017
Dec 9, 2017

Repository files navigation

Garlic.js

Build Status

Garlic.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 / Documentation

http://garlicjs.org/

Version

1.4.2

See CHANGELOG for more info.

TODO

  • Improve doc and api;
  • Refactorize some code;
  • Work on inputs radio and textarea where there are conflicts;
  • And much more, for fun!

Run tests

  • In your browser: go to tests/index.html
  • Headless tests: npm install && npm test

Make production minified versions

You'll need ruby, and Google Closure compiler: gem install closure-compiler. Then, just call:

./bin/build.sh version where version is the build release. eg: ./bin/build.sh 1.1.2

They'll be created and dumped in the dist/ directory

Contributors

  • @cdmoyer
  • @johnrees
  • @Marfa
  • @leondewey
  • @willdurand
  • @nashby

Used / Inspiration

Licence

MIT - See LICENCE.md