Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/leko/in-progress.js

Prevent screen transition if any state changed.
https://github.com/leko/in-progress.js

beforeunload form promise

Last synced: 13 days ago
JSON representation

Prevent screen transition if any state changed.

Awesome Lists containing this project

README

        




in-progress.js






CircleCI
Codecov
npm version
npm version


Prevent screen transition if any state changed.

## Getting started
```
npm install in-progress
bower install in-progress
```

## Usage
```js
import { FormValueDetector } from 'in-progress'

const formElement = document.querySelector('#some-form')
const detector = new FormValueDetector(formElement)
detector.observe()
```

View [live demo](https://leko.github.io/in-progress.js/)