Skip to content

Commit 1ff0203

Browse files
committed
Merge branch 'main' of https://github.com/Jersyfi/Cookify into main
2 parents 9118d31 + 18243a5 commit 1ff0203

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,22 @@ After that you need to paste the below code into the body of your html code.
3939
```html
4040
<script src="cookify.js"></script>
4141
<script>
42+
const cookify = new Cookify;
43+
4244
document.addEventListener("DOMContentLoaded", function(event) {
4345
cookify.init();
4446
});
4547
</script>
4648
```
4749

50+
or
51+
52+
```javscript
53+
const { Cookify } = require('cookify');
54+
55+
window.top.cookify = new Cookify;
56+
```
57+
4858
## Configuration
4959
You can customize Cookify by passing JSON data in the `cookify.init()`.
5060
Following is described what data you can customize

0 commit comments

Comments
 (0)