芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/fashionmodelquicktrack.com/wp-content/plugins/fixed-toc/frontend/assets/js/ftoc.min.js
"use strict";var fixedtoc=function(s){var t={init:function(){fixedtocOption.scrollOffset=a(fixedtocOption.scrollOffset),fixedtocOption.fixedOffsetX=a(fixedtocOption.fixedOffsetX),fixedtocOption.fixedOffsetY=a(fixedtocOption.fixedOffsetY),fixedtocOption.contentsFixedHeight=a(fixedtocOption.contentsFixedHeight),fixedtocOption.contentsWidthInPost=a(fixedtocOption.contentsWidthInPost),fixedtocOption.contentsHeightInPost=a(fixedtocOption.contentsHeightInPost),fixedtocOption.triggerBorderWidth=e(fixedtocOption.triggerBorder),fixedtocOption.contentsBorderWidth=e(fixedtocOption.contentsBorder),fixedtocOption.triggerSize=a(fixedtocOption.triggerSize)},set:n,update:function(t,e,i){n(t,e,i)},remove:function(t){void 0!==fixedtocOption[t]&&delete fixedtocOption[t]}};function n(t,e,i){fixedtocOption[t]="int"==i?a(e):"float"==i?parseFloat(e)||0:e}function e(t){switch(t){case"thin":return 1;case"medium":return 2;case"bold":return 5;default:return 0}}var r,i={inWidgetProp:void 0,showAdminbar:function(){return fixedtocOption.showAdminbar},isQuickMin:function(){return fixedtocOption.isQuickMin},isEscMin:function(){return fixedtocOption.isEscMin},isEnterMax:function(){return fixedtocOption.isEnterMax},isNestedList:function(){return fixedtocOption.isNestedList},isColExpList:function(){return fixedtocOption.isColExpList},showColExpIcon:function(){return fixedtocOption.showColExpIcon},isAccordionList:function(){return fixedtocOption.isAccordionList},showTargetHint:function(){return!0},supportInPost:function(){return fixedtocOption.inPost},inWidget:function(){return!!fixedtocOption.inWidget&&(void 0===this.inWidgetProp&&(this.inWidgetProp=!!s("#ftwp-widget-container").length),this.inWidgetProp)},fixedWidget:function(){return!!this.inWidget()&&fixedtocOption.fixedWidget},isAutoHeightFixedToPost:function(){return 0==fixedtocOption.contentsFixedHeight},isFloat:function(){return"none"!=fixedtocOption.contentsFloatInPost},isAutoHeightInPost:function(){return 0==fixedtocOption.contentsHeightInPost},isPositionAtFixed:function(t){return-1!=fixedtocOption.fixedPosition.indexOf(t)},isDebug:function(){return 1==fixedtocOption.debug},isNotBlur:function(){var t=navigator.userAgent.toLowerCase();return-1
x.data.scrollTop))},inWidget:y,inPost:function(){return!!i.supportInPost()&&x.data.inPostRangeY.bottom>x.data.scrollTop},fixedToPost:function(){return x.data.ftocRangeY.top<=x.data.scrollTop&&x.data.ftocRangeY.bottom>x.data.scrollTop}};function y(){return i.inWidget()&&!i.isMobile()}var k,F,S={location:k={fixedWidget:!(F=["common","hidden","fixedToPost","inPost","inWidget","fixedWidget"]),inWidget:!1,inPost:!1,fixedToPost:!1,hidden:!1},register:function(t,e){-1!=s.inArray(t,F)?(void 0!==e._construct&&r.container.on("ftoc_"+t,e._construct),"common"!=t&&void 0!==e._destruct&&r.container.on("_ftoc_"+t,e._destruct)):f("Not support this event: "+t)},updateOnResize:function(){Y("resize")},updateOnScroll:function(){Y("scroll")},init:function(){r.container.trigger("ftoc_common"),Y("init")}};function Y(o){function t(t){for(var e=F.length,i={location:t,eventType:o},n=1;n
i||x.data.ftocRangeY.bottom
i||t());function t(){s.each(e,function(t){return void 0===e[t+1]&&this.headingTop<=x.data.ftocRangeY.bottom?($=[this,e[t],t],tt=x.data.document.height,V.activeCurrent(this.anchorEle),r.container.trigger("ftocAfterTargetIndicated",[this.anchorEle,i]),!1):this.headingTop<=i&&e[t+1].headingTop>i?($=[this,e[t+1],t],void 0===x.data.document&&x.setDocumentHeight(),tt=x.data.document.height,V.activeCurrent(this.anchorEle),r.container.trigger("ftocAfterTargetIndicated",[this.anchorEle,i]),!1):void 0})}}var nt,ot,ct,st;nt=function(){r.list.on("scroll",ot),r.list.on("mouseleave",ct),r.document.on("click",st),r.window.on("scroll",ct)},ot=function(){r.body.addClass("ftwp-no-scroll")},ct=function(){r.body.hasClass("ftwp-no-scroll")&&(r.list.off("scroll",ot),r.body.removeClass("ftwp-no-scroll"),setTimeout(function(){r.list.on("scroll",ot)},100))},st=function(t){s.contains(r.list.get(0),t.target)||ct()};function rt(){r.body.removeClass("ftwp-no-scroll"),r.list.off("scroll",ot),r.list.off("mouseleave",ct),r.document.off("click",st),r.window.off("scroll",ct)}var at,dt,ft,ut,pt,lt,gt,ht,xt,wt={_construct:function(){r.container.addClass("ftwp-hidden-state"),f("Actived hideToc().")},_destruct:function(){r.container.removeClass("ftwp-hidden-state"),f("Deactivated hideToc().")}},mt=(at=function(t,e){return e<=t.outerWidth()},dt={set:function(){var t,e;xt.setTransformOrigin(),i.isPositionAtFixed("left")?(t=x.data.window.width-x.data.postRect.left+fixedtocOption.fixedOffsetX,e=x.data.postRect.left-fixedtocOption.fixedOffsetX,vt(r.trigger,t,e),vt(r.contents,t,e)):(t=x.data.postRect.right+fixedtocOption.fixedOffsetX,e=x.data.window.width-t,Ot(r.trigger,t,e),Ot(r.contents,t,e)),function(){if(i.isPositionAtFixed("top")){r.trigger.css("top",x.data.fixedOffsetTop+"px");r.contents.css("top",x.data.fixedOffsetTop+"px")}else if(i.isPositionAtFixed("middle"))r.contents.css("top",x.data.fixedHeight+"px");else{r.trigger.css("top","");r.contents.css("top","")}}(),ht.reset()},unset:function(){r.trigger.css({left:"",right:"",top:""}),r.contents.css({left:"",right:"",top:""}),xt.removeTransformOrigin()}},ht={reset:function(){var t=function(){var t;if(i.isAutoHeightFixedToPost())if(i.isColExpList())t=window.innerHeight;else{j.setAuto();r.contents.css("height","auto");t=r.contents.outerHeight();ft();j.unset()}else t=fixedtocOption.contentsFixedHeight;return t}(),e=i.isPositionAtFixed("middle")?x.data.window.height-x.data.fixedHeight:x.data.window.height-x.data.fixedOffsetTop,t=e