An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Marcella 🕵🏻‍♀️

![marcella](https://github.com/diogo405/marcella/blob/master/marcella-banner2.jpeg?raw=true)

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!

```


.
.
.
Email

.
.
.


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');