You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### This is the default usage. Doesn't require jAlert-functions.js
44
+
```javascript
45
+
$.jAlert({ //this is the normal usage
46
+
'title':'Test',
47
+
'content':'Howdy',
48
+
'theme':'green',
49
+
'size':'xsm'
50
+
});
51
+
```
52
+
31
53
### Quick Use (requires jAlert-functions.js!!!)
32
54
```javascript
33
-
alert('hi'); //override is enabled by default works in code in console you get the default behavior and undefined
55
+
alert('hi'); //override is enabled by default
34
56
```
57
+
Note: When you run alert() in your console, it works as expected but will return "undefined"...ignore that. It's just because the function doesn't return anything. Had to add this disclaimer because people got confused..lol..
35
58
```javascript
36
59
successAlert('Success', 'You did it!'); //green alert
37
60
```
@@ -66,15 +89,6 @@ Include the JS file from the src folder before the `</body>`:
66
89
console.log('denied');
67
90
});
68
91
```
69
-
### This is the default usage. Doesn't require jAlert-functions.js
70
-
```javascript
71
-
$.jAlert({ //this is the normal usage
72
-
'title':'Test',
73
-
'content':'Howdy',
74
-
'theme':'green',
75
-
'size':'xsm'
76
-
});
77
-
```
78
92
```javascript
79
93
$.fn.jAlert.defaults.backgroundColor='white'; //override a default setting
0 commit comments