mstp_22_developr.mvc/Scripts/mstp_22_developr/js/developr.auto-resizing.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
*
* '||''|. '||
* || || .... .... ... .... || ... ... ... ... ..
* || || .|...|| '|. | .|...|| || .| '|. ||' || ||' ''
* || || || '|.| || || || || || | ||
* .||...|' '|...' '| '|...' .||. '|..|' ||...' .||.
* ||
* --------------- By Display:inline ------------- '''' -----------
*
* Auto-resizing textareas 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($, window, document)
{
/*
* document is passed through as local variable rather than as global, because this (slightly)
* quickens the resolution process and can be more efficiently minified.
*/
// Objects cache
var win = $(window),
doc = $(document),
bod = $(document.body);
/**
* Helper function to build a pre element identical to the textarea
* @param jQuery textarea the target textarea
* @return jQuery the generated pre element
*/
function buildTextareaPre(textarea)
{
// Box-sizing type
var boxSized = ( textarea.css('box-sizing') === 'border-box' || textarea.css('-webkit-box-sizing') === 'border-box' || textarea.css('-moz-box-sizing') === 'border-box' ),
boxPadding = boxSized ? 'padding-bottom:'+(textarea.parseCSSValue('padding-top')+textarea.parseCSSValue('padding-bottom'))+'px; ' : '',
// Some browsers break lines a little bit before the padding box
breakPadding = 0;
if ( $.browser.mozilla )
{
breakPadding = 8;
}
else if ( $.browser.opera )
{
breakPadding = 4;
}
else if ( $.browser.msie )
{
breakPadding = 2;
}
return $('<pre style="position: absolute; '+
后面还有 112 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。