PageSourceSearch

https://bbj-movie.com/static/js/jquery.my-message.1.1.js

js bbj-movie.com collected 2026-10-04 12:02:45 UTC 1,902 bytes, 28 lines download raw bytes

1var MyMessage=(function(){function message(setting){this.messageContainer=null;this.opts=null;this._setting(setting);this.init();}
2message.DEFAULTS={iconFontSize:"20px",messageFontSize:"20px",showTime:3000,align:"center",positions:{top:"10px",bottom:"10px",right:"10px",left:"10px"},message:"这是一条消息",type:"normal",}
3message.prototype._setting=function(setting){this.opts=$.extend({},message.DEFAULTS,setting);}
4message.prototype.setting=function(name,val){if("object"===typeof name){for(var k in name){this.opts[k]=name[k]}}else if("string"===typeof name){this.opts[name]=val;}}
5message.prototype.init=function(){var domStr="<div class='m-message' style='top:"+
6this.opts.positions.top+
7";right:"+
8this.opts.positions.right+
9";left:"+
10this.opts.positions.left+
11";width:calc(100%-"+
12this.opts.positions.right+
13this.opts.positions.left+
14");bottom:"+this.opts.positions.bottom+
15"'></div>"
16this.messageContainer=$(domStr);this.messageContainer.appendTo($('body'))}
17message.prototype.add=function(message,type){var domStr="";type=type||this.opts.type;domStr+="<div class='c-message-notice' style='"+
18"text-align:"+
19this.opts.align+
20";'><div class='m_content'><i class='";switch(type){case "normal":domStr+="icon-bubble";break;case "success":domStr+="icon-check-alt";break;case "error":domStr+="icon-notification";break;case "warning":domStr+="icon-cancel-circle";break;default:throw "传递的参数type错误,请传递normal/success/error/warning中的一种";break;}
21domStr+="' style='font-size:"+
22this.opts.iconFontSize+
23";'></i><span style='font-size:"+
24this.opts.messageFontSize+
25";'>"+message+"</span></div></div>";var $domStr=$(domStr).appendTo(this.messageContainer);this._hide($domStr);}
26message.prototype._hide=function($domStr){setTimeout(function(){$domStr.fadeOut(1000);},this.opts.showTime);}
27return{message:message}})();
28/* cluster_id: 177741339943 */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.