mstp_22_developr.mvc/Scripts/mstp_22_developr/js/developr.message.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
*
* '||''|. '||
* || || .... .... ... .... || ... ... ... ... ..
* || || .|...|| '|. | .|...|| || .| '|. ||' || ||' ''
* || || || '|.| || || || || || | ||
* .||...|' '|...' '| '|...' .||. '|..|' ||...' .||.
* ||
* --------------- By Display:inline ------------- '''' -----------
*
* Block messages plugin
*
* Structural good practices from the article from Addy Osmani 'Essential jQuery plugin patterns'
* @url http://coding.smashingmagazine.com/2011/10/11/essential-jquery-plugin-patterns/
*/
/*
* The semi-colon before the function invocation is a safety
* net against concatenated scripts and/or other plugins
* that are not closed properly.
*/
;(function($, undefined)
{
/*
* undefined is used here as the undefined global variable in ECMAScript 3 is mutable (i.e. it can
* be changed by someone else). undefined isn't really being passed in so we can ensure that its value is
* truly undefined. In ES5, undefined can no longer be modified.
*/
/**
* Display a message on the target element
*
* @param string message the text or html message to display
* @param object options - optional (see defaults for a complete list)
* @return jQuery the messages nodes
*/
$.fn.message = function(message, options)
{
// Settings
var globalSettings = $.extend({}, $.fn.message.defaults, options),
all;
// Insert message
all = $();
this.each(function(i)
{
var target = $(this),
settings = $.extend({}, globalSettings, target.data('message-options')),
classes = ['message'].concat(settings.classes),
onTop = (settings.position.toLowerCase() != 'bottom'),
method = onTop ? (settings.append ? 'prependTo' : 'insertBefore') : (settings.append ? 'appendTo' : 'insertAfter'),
link = (settings.node.toLowerCase() === 'a') ? ' href="'+settings.link+'"' : '',
// Extra elements
simpler = settings.simpler ? ' simpler' : '',
inset = settings.inset ? ' inset' : '',
closeOnHover = settings.showCloseOnHover ? ' show-on-parent-hover' : '',
closeButton = settings.closable ? '<span class="close'+inset+closeOnHover+simpler+'">✕</span>' : '',
useArrow = (settings.arrow && $.inArray(settings.arrow.toLowerCase(), ['top', 'right', 'bottom', 'left']) > -1),
arrow = useArrow ? '<span class="block-arrow '+settings.arrow.toLowerCase()+'"><span></span></span>' : '',
后面还有 281 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。