mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-09-13 07:21:38 +08:00
添加Metronic(作为LFS)
This commit is contained in:
40
frontend/static/assets/admin/pages/scripts/ui-notific8.js
Normal file
40
frontend/static/assets/admin/pages/scripts/ui-notific8.js
Normal file
@@ -0,0 +1,40 @@
|
||||
var UINotific8 = function () {
|
||||
|
||||
return {
|
||||
//main function to initiate the module
|
||||
init: function () {
|
||||
|
||||
|
||||
$('#notific8_show').click(function(event) {
|
||||
var settings = {
|
||||
theme: $('#notific8_theme').val(),
|
||||
sticky: $('#notific8_sticky').is(':checked'),
|
||||
horizontalEdge: $('#notific8_pos_hor').val(),
|
||||
verticalEdge: $('#notific8_pos_ver').val()
|
||||
},
|
||||
$button = $(this);
|
||||
|
||||
if ($.trim($('#notific8_heading').val()) != '') {
|
||||
settings.heading = $.trim($('#notific8_heading').val());
|
||||
}
|
||||
|
||||
if (!settings.sticky) {
|
||||
settings.life = $('#notific8_life').val();
|
||||
}
|
||||
|
||||
$.notific8('zindex', 11500);
|
||||
$.notific8($.trim($('#notific8_text').val()), settings);
|
||||
|
||||
$button.attr('disabled', 'disabled');
|
||||
|
||||
setTimeout(function() {
|
||||
$button.removeAttr('disabled');
|
||||
}, 1000);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
Reference in New Issue
Block a user