Skip to content

Commit

Permalink
unify syntax in readmes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek authored Mar 16, 2021
1 parent 4935b76 commit 29f1ba1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
## Content

- [Install](#install)
- [NPM](#npm)
- [Manually](#manually)
- [CDN](#cdn)
- [NPM](#npm)
- [Manually](#manually)
- [CDN](#cdn)
- [Usage](#usage)
- [Options](#options)
- [Available options](#available-options)
- [Special features](#special-features)
- [Advanced](#advanced)
- [Options](#options)
- [Available options](#available-options)
- [Special features](#special-features)
- [Advanced](#advanced)

## Install

### NPM

```
```bash
npm install --save live-form-validation
```

Expand Down Expand Up @@ -47,21 +47,21 @@ You can change default options by calling `LiveForm.setOptions({ ... });` **afte
```js
<script src="/js/live-form-validation.js"></script>
<script>
LiveForm.setOptions({
messageErrorPrefix: 'Error: ',
wait: 500
});
LiveForm.setOptions({
messageErrorPrefix: 'Error: ',
wait: 500
});
</script>
```

Alternatively, if you want to set options **before** the script is loaded, create `LiveFormOptions = { ... };` with options that you want to change. For example:

```js
<script>
LiveFormOptions = {
messageErrorPrefix: 'Error: ',
wait: 500
};
LiveFormOptions = {
messageErrorPrefix: 'Error: ',
wait: 500
};
</script>
<script src="/js/live-form-validation.js"></script>
```
Expand Down

0 comments on commit 29f1ba1

Please sign in to comment.