-
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
jasonjianfr
committed
Jan 19, 2016
1 parent
3be1ea0
commit 99397ef
Showing
1 changed file
with
52 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 |
---|---|---|
@@ -1,2 +1,52 @@ | ||
# fr_toast | ||
jquery plugin | ||
# FR Toast Document | ||
|
||
### Introduction | ||
FR Toast is an easy poping up message which will be toasted while calling. | ||
|
||
### Note | ||
This product is made for a practice of jQuery plugin research, so it will no longer be maintained. | ||
|
||
HAVE FUN! | ||
|
||
### Version | ||
1.0.2 | ||
|
||
### Installation | ||
Just import fr_toast.min.js and fr_toast.min.css into your HTML after jQuery main js. | ||
|
||
### How To Use | ||
|
||
```sh | ||
$.frToast(); | ||
``` | ||
|
||
```sh | ||
$.frToast({ | ||
icon: 'fr_toast_icon_add', | ||
title: 'SUCCESS!' | ||
}}; | ||
``` | ||
### Parameter | ||
It provides manay parameters below: | ||
* icon: 'fr_toast_icon_accept', 'fr_toast_icon_add', 'fr_toast_icon_delete', or 'fr_toast_icon_exclude'. | ||
* title: any words you key in. | ||
* context: any words you key in. | ||
* bgColor: '#000000' or any color code. | ||
* fontColor: '#FFFFFF' or any color code. | ||
* position: 'center', 'left', 'right', 'top', 'bottom' or you can combin different axis, just like 'top left'. | ||
* init: function() {}, a function will be triggered when init. | ||
* before: function() {}, a function will be triggered before toast. | ||
* after: function() {}, a function will be triggered after toast. | ||
* finish: function() {}, a function will be triggered when toast fade out completely. | ||
### Demo | ||
https://jsfiddle.net/pilisir/7Lcs2s3o/15/ | ||
License | ||
---- | ||
WTFPL |