https://github.com/diogo405/marcella
A js that saves user's form
https://github.com/diogo405/marcella
Last synced: 4 months ago
JSON representation
A js that saves user's form
- Host: GitHub
- URL: https://github.com/diogo405/marcella
- Owner: diogo405
- Created: 2019-01-02T00:56:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T05:26:27.000Z (about 6 years ago)
- Last Synced: 2025-01-07T23:55:30.106Z (5 months ago)
- Language: HTML
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Marcella 🕵🏻♀️

How frustating is for a user to re-type a field in a form when they accidentally close the page or reload the browser? Marcella is a js that saves user's form in the client browser preventing data loss.
## How to use it 🤔
1. Add 'js-marcella' class to fields that you wanna to be saved
2. Put marcella.js script (only 1kb) in your page
3. Instantiate it, done!```
.
.
.
.
.
.
new Marcella();
```
## Options
You can add a form selector when you instantiate Marcella to filter the fields inside the form only 🤠
```
.
.
.
new Marcella('#signup-form');