├── JulieAlert.gif
├── LICENSE
├── README.md
├── assets
├── JulieAlert.css
├── JulieAlert.js
├── JulieAlert.min.css
└── JulieAlert.min.js
├── image.png
├── index.html
├── julie.css
└── julie.js
/JulieAlert.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lichin-lin/Juliealert/f992afd81663c61a0edee6562d619d9477068756/JulieAlert.gif
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2016 lichin-lin
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JulieAlert
2 |
3 | JulieAlert let you display Javascript alert function with beautiful custom style.
4 |
5 | All you need is ```julie```:grin::grin::grin:.
6 |
7 | 
8 |
9 |
10 |
11 | ## Setup
12 |
13 | download the package and reference the JavaScript and CSS files manually:
14 | ```html
15 |
16 |
17 | ```
18 |
19 | ##Example
20 |
21 | using jquery to control ```julie``` function:
22 |
23 | 1.Basic style:
24 | ```javascript
25 | $('button').click(function(){
26 | Julie({
27 | title: "Julie!",
28 | text: "Nice to meet you!",
29 | confirmText:"got it",
30 | errorText:"",
31 | Pop:false,
32 | });
33 | });
34 | ```
35 | ___
36 |
37 |
38 |
39 | 2.With different animation style:
40 | ```javascript
41 | $('button').click(function(){
42 | Julie({
43 | title: "Pop!",
44 | text: "animation feature,Pop-Style",
45 | confirmText: "Know!",
46 | errorText:"",
47 | Pop: true
48 | });
49 | });
50 | ```
51 | ___
52 |
53 |
54 |
55 |
56 | 3.Even \ tag in button:
57 | ```javascript
58 | $("button").click(function(){
59 | Julie({
60 | title: "Cool!Right?",
61 | text: "click the button below!",
62 | errorText: JulieUrl("really?","https://github.com/lichin-lin/Juliealert"),
63 | Pop:false
64 | });
65 | });
66 | ```
67 | ___
68 |
69 |
70 |
71 | 4.Customized your input in HTML style:
72 | ```javascript
73 | $("button").click(function(){
74 | Julie({
75 | title: "Wait!there's more",
76 | text: "