
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
jquery-noti5
Advanced tools
jQuery notication plugin
jQuery library
Description | Default | |
---|---|---|
title | The title of noti5 | |
message | The content of noti5 | |
type | The type of noti5, namely info, success, warn and danger | info |
timeout | The duration of noti5 in second | 4 |
pos | The global position of the noti5. It includes top-left, top-center, top-right, bottom-left, bottom-center, and bottom-right | top-right |
elementPos | The element position of the noti5: top, bottom, left or right | right |
link | The target link object container href, title and target when noti5 is being clicked | {href: '#' title: '', target: '_blank'} |
offset | The offset of noti5. It takes either a single number or an object including x and y value | 0 |
spacing | The spacing between each noti5 containers | 5 |
showCloseBtn | A boolean value to determine a close button is shown or not | true |
{
'title': '',
'message': '',
'type': 'info',
'timeout': 4,
'pos': 'top-right',
'elementPos': 'right',
'link': {
'href': '#',
'title': '',
'target': '_blank'
},
'offset': 0,
// or
// 'offset': {
// 'x': 0,
// 'y': 0
//}
'spacing': 5,
'showCloseBtn': true
}
HTML:
<div class="foo"></div>
JavaScript:
$('.foo').noti5();
Pass a simple message
$('.foo').noti5("Lorem Ipsum");
Pass a custom setting
$('.foo').noti5({
'title': 'Lorem Ipsum',
'message': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
'type': 'info'
});
You can also initialize noti5 without a selector
$.noti5({
'title': 'Lorem Ipsum',
'message': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
'type': 'danger'
});
You can call the below methods with an noti5 instance
Only title, message, type and link can be updated.
var noti5 = $.noti5({
'title': 'Lorem Ipsum',
'message': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
'type': 'danger'
});
setTimeout(function(){
noti5.update({
'title': 'updated title',
'message': 'updated message',
'type': 'danger',
'link': {
'href': 'https://foo.com',
'title': 'updated title',
'target': '_blank'
}
});
}, 3000);
var noti5 = $.noti5({
'title': 'Lorem Ipsum',
'message': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
'type': 'danger'
});
setTimeout(function(){
noti5.close();
}, 3000);
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
jQuery notication plugin
We found that jquery-noti5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.