1.0.22 • Published 3 years ago

growl-js v1.0.22

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

  1. Download & copy this package's "dist" folder into your web server's public folder eg. public/js/dist/*.
  2. Rename "dist" to "growl" eg. public/js/growl
  3. 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>
  1. 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

1.0.22

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.0

5 years ago