Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Apr 21, 2020
1 parent b1910d9 commit 94357b7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ See [demo](http://paveljanda.github.io/happy/)
npm install happy-inputs
```

## Usage
## Usage - ES6 module

```html
<!DOCTYPE html>
Expand Down Expand Up @@ -46,3 +46,24 @@ npm install happy-inputs
</body>
</html>
```

## Usage - ES5

```html
<!DOCTYPE html>
<html>
<head>
<title>Happy</title>
<link rel="stylesheet" type="text/css" href="./node_modules/happy-inputs/src/happy.css">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/nomodule-es5-fallback.js"></script>
<script>
var happy = new Happy;
happy.init();
</script>

<!-- ... -->
</head>
<body>
```

0 comments on commit 94357b7

Please sign in to comment.