Skip to content

Commit 9dafbcb

Browse files
committed
fixed indentation and updated authors
1 parent 491db26 commit 9dafbcb

File tree

2 files changed

+202
-193
lines changed

2 files changed

+202
-193
lines changed
Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,212 +1,218 @@
11
/// <reference path="../jquery/jquery.d.ts"/>
2-
/// <reference path="jquery.pnotify-1.x.d.ts" />
2+
/// <reference path="jquery.pnotify.d.ts" />
33

44
function test_pnotify() {
55

66

7-
$.pnotify({
7+
new PNotify({
88
title: 'Regular Notice',
99
text: 'Check me out! I\'m a notice.'
1010
});
1111

12-
$.pnotify({
12+
new PNotify({
1313
title: 'Sticky Notice',
1414
text: 'Check me out! I\'m a sticky notice. You\'ll have to close me yourself.',
1515
hide: false
1616
});
17-
$.pnotify({
17+
new PNotify({
1818
title: 'See Through Notice',
1919
text: 'No one ever pays attention to me. Why should they? I\'m practically invisible.',
2020
opacity: .8
2121
});
22-
$.pnotify({
22+
new PNotify({
2323
title: 'No Shadow Notice',
2424
text: 'I don\'t have a shadow. (It\'s cause I\'m a vampire or something. Or is that reflections...)',
2525
shadow: false
2626
});
27-
$.pnotify('Check me out! I\'m a notice.');
27+
new PNotify('Check me out! I\'m a notice.');
2828

29-
$.pnotify(Math.round(Math.random() * 9999));
29+
new PNotify(Math.round(Math.random() * 9999));
3030

31-
$.pnotify({
31+
new PNotify({
3232
title: 'PIcon Notice',
3333
text: 'I have an icon that uses the PIcon styles.',
3434
icon: 'picon picon-mail-unread-new'
3535
});
3636

37-
$.pnotify({
37+
new PNotify({
3838
title: 'jQuery UI Icon Notice',
3939
text: 'I have an icon that uses the jQuery UI icon styles.',
4040
icon: 'ui-icon ui-icon-mail-closed'
4141
});
4242

43-
$.pnotify({
43+
new PNotify({
4444
title: 'Bootstrap Icon Notice',
4545
text: 'I have an icon that uses the Bootstrap icon styles.',
4646
icon: 'glyphicon glyphicon-envelope'
4747
});
4848

49-
$.pnotify({
49+
new PNotify({
5050
title: 'No Icon Notice',
5151
text: 'I have no icon.',
5252
icon: false
5353
});
5454

55-
$.pnotify({
55+
new PNotify({
5656
title: 'Bootstrap Notice',
5757
text: 'Look at my beautiful styling! ^_^',
5858
styling: 'bootstrap3'
5959
});
60-
$.pnotify({
60+
new PNotify({
6161
title: 'Bootstrap Info',
6262
text: 'Look at my beautiful styling! ^_^',
6363
type: 'info',
6464
styling: 'bootstrap3'
6565
});
66-
$.pnotify({
66+
new PNotify({
6767
title: 'Bootstrap Success',
6868
text: 'Look at my beautiful styling! ^_^',
6969
type: 'success',
7070
styling: 'bootstrap3'
7171
});
72-
$.pnotify({
72+
new PNotify({
7373
title: 'Bootstrap Error',
7474
text: 'Look at my beautiful styling! ^_^',
7575
type: 'error',
7676
styling: 'bootstrap3'
7777
});
78-
$.pnotify({
78+
new PNotify({
7979
title: 'jQuery UI Notice',
8080
text: 'Look at my beautiful styling! ^_^',
8181
styling: 'jqueryui'
8282
});
83-
$.pnotify({
83+
new PNotify({
8484
title: 'jQuery UI Info',
8585
text: 'Look at my beautiful styling! ^_^',
8686
type: 'info',
8787
styling: 'jqueryui'
8888
});
89-
$.pnotify({
89+
new PNotify({
9090
title: 'jQuery UI Success',
9191
text: 'Look at my beautiful styling! ^_^',
9292
type: 'success',
9393
styling: 'jqueryui'
9494
});
95-
$.pnotify({
95+
new PNotify({
9696
title: 'jQuery UI Error',
9797
text: 'Look at my beautiful styling! ^_^',
9898
type: 'error',
9999
styling: 'jqueryui'
100100
});
101-
$.pnotify({
101+
new PNotify({
102102
title: 'Font Awesome Notice',
103103
text: 'Look at my beautiful styling! ^_^',
104104
styling: 'fontawesome'
105105
});
106-
$.pnotify({
106+
new PNotify({
107107
title: 'Font Awesome Info',
108108
text: 'Look at my beautiful styling! ^_^',
109109
type: 'info',
110110
styling: 'fontawesome'
111111
});
112-
$.pnotify({
112+
new PNotify({
113113
title: 'Font Awesome Success',
114114
text: 'Look at my beautiful styling! ^_^',
115115
type: 'success',
116116
styling: 'fontawesome'
117117
});
118-
$.pnotify({
118+
new PNotify({
119119
title: 'Font Awesome Error',
120120
text: 'Look at my beautiful styling! ^_^',
121121
type: 'error',
122122
styling: 'fontawesome'
123123
});
124124

125-
$.pnotify({
125+
new PNotify({
126126
title: 'New Thing',
127127
text: 'Just to let you know, something happened.',
128128
type: 'info'
129129
});
130130

131-
$.pnotify({
131+
new PNotify({
132132
title: 'Sticky Info',
133133
text: 'Sticky info, you know, like a newspaper covered in honey.',
134134
type: 'info',
135135
hide: false
136136
});
137137

138-
$.pnotify({
138+
new PNotify({
139139
title: 'See Through Info',
140140
text: 'Not only does it not matter, but I don\'t even care if you see this info.',
141141
type: 'info',
142142
opacity: .8
143143
});
144144

145-
$.pnotify({
145+
new PNotify({
146146
title: 'No Shadow Success',
147147
text: 'I don\'t have a shadow. (It\'s cause I\'m a vampire or something. Or is that reflections...)',
148148
type: 'success',
149149
shadow: false
150150
});
151151

152-
$.pnotify({
152+
new PNotify({
153153
title: 'PIcon Success',
154154
text: 'We reached the moon first! See, we planted a flag.',
155155
type: 'success',
156156
icon: 'picon picon-flag-green'
157157
});
158158

159-
$.pnotify({
159+
new PNotify({
160160
title: 'Oh No!',
161161
text: 'Something terrible happened.',
162162
type: 'error'
163163
});
164164

165-
$.pnotify({
165+
new PNotify({
166166
title: 'No Icon Error',
167167
text: 'I have no icon.',
168168
type: 'error',
169169
icon: false
170170
});
171171

172-
$.pnotify({
172+
new PNotify({
173173
title: 'No Sticky Button Notice',
174174
text: 'Check me out! I\'m a sticky notice with no unsticky button. You\'ll have to close me yourself.',
175175
hide: false,
176-
sticker: false
176+
buttons: {
177+
sticker: false
178+
}
177179
});
178180

179-
$.pnotify({
181+
new PNotify({
180182
title: 'No Mouse Reset Notice',
181183
text: 'I don\'t care if you move your mouse over me, I\'ll disappear when I want.',
182184
mouse_reset: false
183185
});
184186

185-
$.pnotify({
187+
new PNotify({
186188
title: '<em>Escaped Notice</em>',
187189
title_escape: true,
188190
text: $('#evil_html').html(),
189191
text_escape: true
190192
});
191193

192-
$.pnotify({
194+
new PNotify({
193195
title: 'Non-Blocking Notice',
194196
text: 'I\'m a special kind of notice called "non-blocking". When you hover over me I\'ll fade to show the elements underneath. Feel free to click any of them just like I wasn\'t even here.\n\nNote: HTML links don\'t trigger in some browsers, due to security settings.',
195-
nonblock: true,
196-
nonblock_opacity: .2
197+
nonblock: {
198+
nonblock: true,
199+
nonblock_opacity: .2
200+
}
197201
});
198202

199-
$.pnotify({
203+
new PNotify({
200204
title: 'Custom Styling',
201205
text: 'I have an additional class that\'s used to give me special styling. I always wanted to be pretty.',
202206
addclass: 'custom',
203207
icon: 'picon picon-32 picon-fill-color',
204208
opacity: .8,
205-
nonblock: true,
206-
nonblock_opacity: .2
209+
nonblock: {
210+
nonblock: true,
211+
nonblock_opacity: .2
212+
}
207213
});
208214

209-
$.pnotify({
215+
new PNotify({
210216
title: "PNotify Stacks",
211217
text: "Stacks are used to position notices and determine where new notices will go when they're created. Each notice that's placed into a stack will be positioned related to the other notices in that stack. There is no limit to the number of stacks, and no limit to the number of notices in each stack.",
212218
type: "info",
@@ -229,14 +235,13 @@ function test_pnotify() {
229235
type: "error"
230236

231237
};
232-
$.pnotify(opts);
238+
new PNotify(opts);
233239

234-
$.pnotify({
240+
new PNotify({
235241
title: 'Show Effect',
236242
text: 'I use a different effect.',
237243
animation: 'show'
238244
});
239245

240-
$.pnotify_remove_all();
241-
246+
PNotify.removeAll();
242247
}

0 commit comments

Comments
 (0)