mstp_22_developr.mvc/Scripts/mstp_22_developr/js/developr.content-panel.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
*
* '||''|. '||
* || || .... .... ... .... || ... ... ... ... ..
* || || .|...|| '|. | .|...|| || .| '|. ||' || ||' ''
* || || || '|.| || || || || || | ||
* .||...|' '|...' '| '|...' .||. '|..|' ||...' .||.
* ||
* --------------- By Display:inline ------------- '''' -----------
*
* Content panel 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($, document)
{
/*
* document is passed through as local variable rather than as a global, because this (slightly)
* quickens the resolution process and can be more efficiently minified.
*/
// Objects cache
var doc = $(document);
// Navigable menus
doc.on('click', '.open-on-panel-content, .open-on-panel-navigation', function(event)
{
var link = $(event.target).closest('a'),
contentPanel = link.closest('.content-panel'),
href;
// If not valid, exit
if (!link.length || !contentPanel.length)
{
return;
}
// Target
href = link.attr('href');
if ($.trim(href).length === 0 || href == '#')
{
return;
}
// Stop normal behavior
event.preventDefault();
// Load content
contentPanel[$(this).hasClass('open-on-panel-content') ? 'loadPanelContent' : 'loadPanelNavigation'](href);
});
/**
* Load navigation panel content with AJAX
后面还有 201 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。