1.0.22 • Published 1 year ago
growl-js v1.0.22
- Download & copy this package's "dist" folder into your web server's public folder eg.
public/js/dist/*
. - Rename "dist" to "growl" eg.
public/js/growl
- Load the growl script at the end of your web page (before the closing
body
tag) like this:
<body>
...
<script src="/js/growl/growl.js"></script>
</body>
</html>
When the browser loads growl will be attached to the browser's global window object. Use it anywhere in your scripts like this:
<button>Target</button>
<script>
document.querySelector('button').onclick = function(event) {
growl({ message: 'You clicked on me' target: event.target });
});
</script>
Then import and use it in your project's ES6 modules:
function helloWorld() { growl({ message: 'Hello World' }); }
Growl-js supports npm under the name growl-js
.
Manual release steps
- Ananda Masri
- And awesome contributors
1.0.22
1 year ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
3 years ago
1.0.11
3 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.0
4 years ago