2
2
3
3
A notification toast inspired by Google Material Design.
4
4
5
+ [ ![ ] ( https://data.jsdelivr.com/v1/package/npm/node-snackbar/badge )] ( https://www.jsdelivr.com/package/npm/node-snackbar )
6
+
5
7
Getting Started
6
8
---------------
7
9
@@ -15,33 +17,39 @@ or maybe you wish to use NPM...
15
17
``` bash
16
18
npm install node-snackbar
17
19
```
18
- and if that doesn't float you, you can always download the CSS and JS files...
20
+ and if that doesn't float you, you can always download and implement the CSS and JS files...
19
21
``` html
20
22
<script type =" text/javascript" src =" dist/snackbar.min.js" ></script >
21
23
<link rel =" stylesheet" type =" text/css" href =" dist/snackbar.min.css" />
22
24
```
23
25
26
+ or via [ CDN] ( https://www.jsdelivr.com/package/npm/node-snackbar?path=dist ) ...
27
+ ``` html
28
+ <script type =" text/javascript" src =" https://cdn.jsdelivr.net/npm/node-snackbar@latest/src/js/snackbar.min.js" ></script >
29
+ <link rel =" stylesheet" type =" text/css" href =" https://cdn.jsdelivr.net/npm/node-snackbar@latest/dist/snackbar.min.css" />
30
+ ```
31
+
24
32
Development
25
33
---------------
26
34
27
- In order to contribute to the development of this library you will need grunt
35
+ In order to contribute to the development of this library you will need [ grunt] ( https://gruntjs.com/ )
28
36
29
37
``` bash
30
38
npm install -g grunt
31
39
```
32
40
33
- The files that are going to be edited are in the src folder.
34
- After making changes you will need to build the dist files by running
41
+ The files that are going to be edited are in the ` src/ ` folder.
42
+ After making changes, you'll need to build the dist files by running
35
43
36
44
``` bash
37
45
grunt build
38
46
```
39
47
40
- The minified files will be on the dist folder. Those files are the ones used
41
- on the demo html, so simply reload the page and your changes should be visible
48
+ The minified files will be in the ` dist/ ` folder. Those files are the ones used
49
+ on the demo html, so simply reload the page and your changes should be visible.
42
50
43
51
Happy contributing!
44
52
45
53
Examples
46
54
--------
47
- Checkout the [ Demo page] ( http://www.polonel.com/snackbar ) .
55
+ Checkout the [ demo page] ( http://www.polonel.com/snackbar ) .
0 commit comments