Backup/shequ/obj/assets/plugins/notifications/notifications.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Theme: Moltran Admin Template
* Author: Coderthemes
* Notification
*/
!function($) {
"use strict";
var Notification = function() {};
//simple notificaiton
Notification.prototype.notify = function(style,position, title, text) {
var icon = 'fa fa-adjust';
if(style == "error"){
icon = "fa fa-exclamation";
}else if(style == "warning"){
icon = "fa fa-warning";
}else if(style == "success"){
icon = "fa fa-check";
}else if(style == "info"){
icon = "fa fa-question";
}else{
icon = "fa fa-adjust";
}
$.notify({
title: title,
text: text,
image: "<i class='"+icon+"'></i>"
}, {
style: 'metro',
className: style,
globalPosition:position,
showAnimation: "show",
showDuration: 0,
hideDuration: 0,
autoHide: false,
clickToHide: true
});
},
//auto hide notification
Notification.prototype.autoHideNotify = function (style,position, title, text) {
var icon = "fa fa-adjust";
if(style == "error"){
icon = "fa fa-exclamation";
}else if(style == "warning"){
icon = "fa fa-warning";
}else if(style == "success"){
icon = "fa fa-check";
}else if(style == "info"){
icon = "fa fa-question";
}else{
icon = "fa fa-adjust";
}
$.notify({
title: title,
text: text,
image: "<i class='"+icon+"'></i>"
后面还有 65 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
