EasyShop/js/artDialog_v4.0.3/jquery.artDialog.source.js

(开头部分) 32KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * artDialog 4.0.3
 * Date: 2011-07-15 14:50
 * http://code.google.com/p/artdialog/
 * (c) 2009-2010 TangBin, http://www.planeArt.cn
 *
 * This is licensed under the GNU LGPL, version 2.1 or later.
 * For details, see: http://creativecommons.org/licenses/LGPL/2.1/
 */

;(function ($, window, undefined) {

$.log = function (content) {window.console && console.log(content)};
$(function () {
	!window.jQuery && document.compatMode === 'BackCompat'
	&& alert('artDialog Error: document.compatMode === "BackCompat"');
});

var _oldApi, _thisScript, _skin, _path, _tmplEngine,
	_count = 0,
	_$window = $(window),
	_$document = $(document),
	_$html = $('html'),
	_$body = $(function(){_$body = $('body')}),
	_elem = document.documentElement,
	_isIE6 = !-[1,] && !('minWidth' in _elem.style),
	_isMobile = 'ontouchend' in _elem && !('onmousemove' in _elem)
		|| /(iPhone|iPad|iPod)/i.test(navigator.userAgent),
	_expando = $.expando;

var artDialog = function (config, yesFn, noFn) {
	config = config || {};
	var follow, followApi, i,
		buttons = [],
		defaults = artDialog.defaults,
		repeat = artDialog.list[config.id];
	
	// 閰嶇疆鏁版嵁鏍¢獙
	if (repeat) return repeat;
	if (typeof config === 'string' || config.nodeType === 1) config = {content: config, fixed: !_isMobile};
	if (!$.isArray(config.button)) config.button = config.button ? [config.button] : [];
	if (!config.id) config.id = _expando + (_count ++);
	if (_isMobile) config.fixed =  false;
	
	// 鍚堝苟榛樿閰嶇疆
	for (i in defaults) {
		if (config[i] === undefined) config[i] = defaults[i];		
	};
	
	// 鍚搁檮鍏冪礌
	follow = config.follow || this;
	if (typeof follow === 'string') follow = $(follow)[0];
	if (follow.nodeType === 1) {
		followApi = artDialog.list[follow[_expando + 'follow']];
		if (followApi) {
			return followApi.follow(follow).zIndex().focus();
		} else {
			config.follow = follow;
			follow[_expando + 'follow'] = config.id;
		};
后面还有 1205 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。