DefinitelyTyped/types/jquery.jnotify/jquery.jnotify-tests.ts
2017-03-24 14:27:52 -07:00

47 lines
1.3 KiB
TypeScript

$(document).ready(function () {
$('#StatusBar').jnotifyInizialize({
oneAtTime: true
});
$('#Notification')
.jnotifyInizialize({
oneAtTime: false,
appendType: 'append'
})
.css({
'position': 'absolute',
'marginTop': '20px',
'right': '20px',
'width': '250px',
'z-index': '9999'
});
$('#addStatusBarMessage').click(function () {
$('#StatusBar').jnotifyAddMessage({
text: 'This is a non permanent message.',
permanent: false,
showIcon: false
});
});
$('#addStatusBarError').click(function () {
$('#StatusBar').jnotifyAddMessage({
text: 'This is a permanent error.',
permanent: true,
type: 'error'
});
});
$('#addNotificationMessage').click(function () {
$('#Notification').jnotifyAddMessage({
text: 'This is a non permanent message.',
permanent: false
});
});
$('#addNotificationError').click(function () {
$('#Notification').jnotifyAddMessage({
text: 'This is a permanent error.',
permanent: true,
type: 'error'
});
});
});