-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1c27d0
commit b220a33
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,38 @@ A PowerFull and beutifull Library for showing JS Notifications | |
|
||
### Step1 : Install Library from NPM or using CDN | ||
|
||
#### Install the NPM Library : | ||
|
||
you can install the npm package this command : | ||
|
||
```sh | ||
npm install [email protected] | ||
``` | ||
|
||
then add this line into your HTML code : | ||
|
||
```sh | ||
<script src="./node_modules/notico/Package/notico.js" defer></script> | ||
``` | ||
|
||
#### Using this CDN : | ||
|
||
you can use this script line for using the CDN : | ||
|
||
```sh | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Package/notico.js" defer></script> | ||
``` | ||
|
||
### Step2 : Use Function in HTML or JS Code | ||
|
||
HTML use : | ||
#### HTML use : | ||
|
||
Create a button like this : | ||
```sh | ||
<button onclick="showToast.info({})">info</button> | ||
``` | ||
|
||
JS use : | ||
#### JS use : | ||
|
||
Call that function in js : | ||
```sh | ||
|