芝麻web文件管理V1.00
",K=g(t.wordsClass,M),U=g(t.charsClass,M),X=-1!==(t.linesClass||"").indexOf("++"),Y=t.linesClass,ee=-1!==B.indexOf("<"),te=!0,ie=[],ne=[],se=[];for(0!=!t.reduceWhiteSpace&&(B=B.replace(p,"")),X&&(Y=Y.split("++").join("")),ee&&(B=B.split("<").join("{{LT}}")),d=B.length,y=K(),v=0;d>v;v++)if(")"===(T=B.charAt(v))&&B.substr(v,20)===a)y+=(te?J:"")+"
",te=!1,v!==d-20&&B.substr(v+20,20)!==a&&(y+=" "+K(),te=!0),v+=19;else if(T===k&&B.charAt(v-1)!==k&&v!==d-1&&B.substr(v-20,20)!==a){for(y+=te?J:"",te=!1;B.charAt(v+1)===k;)y+=O,v++;(")"!==B.charAt(v+1)||B.substr(v+1,20)!==a)&&(y+=O+K(),te=!0)}else"{"===T&&"{{LT}}"===B.substr(v,6)?(y+=j?U()+"{{LT}}"+M+">":"{{LT}}",v+=5):y+=j&&" "!==T?U()+T+""+M+">":T;for(e.innerHTML=y+(te?J:""),ee&&x(e,"{{LT}}","<"),b=e.getElementsByTagName("*"),d=b.length,_=[],v=0;d>v;v++)_[v]=b[v];if(A||E)for(v=0;d>v;v++)w=_[v],((c=w.parentNode===e)||E||j&&!R)&&(C=w.offsetTop,A&&c&&Math.abs(C-V)>D&&"BR"!==w.nodeName&&(u=[],A.push(u),V=C),E&&(w._x=w.offsetLeft,w._y=C,w._w=w.offsetWidth,w._h=w.offsetHeight),A&&(R!==c&&j||(u.push(w),w._x-=$),c&&v&&(_[v-1]._wordEnd=!0),"BR"===w.nodeName&&w.nextSibling&&"BR"===w.nextSibling.nodeName&&A.push([])));for(v=0;d>v;v++)w=_[v],c=w.parentNode===e,"BR"!==w.nodeName?(E&&(L=w.style,R||c||(w._x+=w.parentNode._x,w._y+=w.parentNode._y),L.left=w._x+"px",L.top=w._y+"px",L.position="absolute",L.display="block",L.width=w._w+1+"px",L.height=w._h+"px"),R?c&&""!==w.innerHTML?ne.push(w):j&&ie.push(w):c?(e.removeChild(w),_.splice(v--,1),d--):!c&&j&&(C=!A&&!E&&w.nextSibling,e.appendChild(w),C||e.appendChild(s.createTextNode(" ")),ie.push(w))):A||E?(e.removeChild(w),_.splice(v--,1),d--):R||e.appendChild(w);if(A){for(E&&(S=s.createElement(M),e.appendChild(S),H=S.offsetWidth+"px",C=S.offsetParent===e?0:e.offsetLeft,e.removeChild(S)),L=e.style.cssText,e.style.cssText="display:none;";e.firstChild;)e.removeChild(e.firstChild);for(N=" "===k&&(!E||!R&&!j),v=0;vb;b++)"BR"!==u[b].nodeName&&(w=u[b],S.appendChild(w),N&&(w._wordEnd||R)&&S.appendChild(s.createTextNode(" ")),E&&(0===b&&(S.style.top=w._y+"px",S.style.left=$+C+"px"),w.style.top="0px",C&&(w.style.left=w._x-C+"px")));0===d&&(S.innerHTML=" "),R||j||(S.innerHTML=n(S).split(String.fromCharCode(160)).join(" ")),E&&(S.style.width=H,S.style.height=w._h+"px"),e.appendChild(S)}e.style.cssText=L}E&&(Z>e.clientHeight&&(e.style.height=Z-I+"px",e.clientHeighte.clientWidth&&(e.style.width=F-P+"px",e.clientWidth-1;)this._originals[t]=this.elements[t].innerHTML,v(this.elements[t],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},b.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var e=this._originals.length;--e>-1;)this.elements[e].innerHTML=this._originals[e];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},y.selector=e.$||e.jQuery||function(t){var i=e.$||e.jQuery;return i?(y.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)},y.version="0.4.0"}(_gsScope),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).SplitText};"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&module.exports&&(module.exports=t())}();