1/* 2 Base.js, version 1.1a 3 Copyright 2006-2010, Dean Edwards 4 License: http://www.opensource.org/licenses/mit-license.php 5*/ 6var Base=function(){};Base.extend=function(b,c){"use strict";var d=Base.prototype.extend;Base._prototyping=true;var e=new this();d.call(e,b);e.base=function(){};delete Base._prototyping;var constructor=e.constructor;var f=e.constructor=function(){if(!Base._prototyping){if(this._constructing||this.constructor==f){this._constructing=true;constructor.apply(this,arguments);delete this._constructing}else if(arguments[0]!==null){return(arguments[0].extend||d).call(arguments[0],e)}}};f.ancestor=this;f.extend=this.extend;f.forEach=this.forEach;f.implement=this.implement;f.prototype=e;f.toString=this.toString;f.valueOf=function(a){return(a=="object")?f:constructor.valueOf()};d.call(f,c);if(typeof f.init=="function")f.init();return f};Base.prototype={extend:function(c,d){if(arguments.length>1){var e=this[c];if(e&&(typeof d=="function")&&(!e.valueOf||e.valueOf()!=d.valueOf())&&/\bbase\b/.test(d)){var f=d.valueOf();d=function(){var a=this.base||Base.prototype.base;this.base=e;var b=f.apply(this,arguments);this.base=a;return b};d.valueOf=function(a){return(a=="object")?d:f};d.toString=Base.toString}this[c]=d}else if(c){var g=Base.prototype.extend;if(!Base._prototyping&&typeof this!="function"){g=this.extend||g}var h={toSource:null};var j=["constructor","toString","valueOf"];var i=Base._prototyping?0:1;while(k=j[i++]){if(c[k]!=h[k]){g.call(this,k,c[k])}}for(var k in c){if(!h[k])g.call(this,k,c[k])}}return this}};Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(a,b,c){for(var d in a){if(this.prototype[d]===un
6defined){b.call(c,a[d],d,a)}}},implement:function(){for(var i=0;i<arguments.length;i++){if(typeof arguments[i]=="function"){arguments[i](this.prototype)}else{this.prototype.extend(arguments[i])}}return this},toString:function(){return String(this.valueOf())}}); 7 8/* 9 * Smart Tab Drawer v3.2 10 * https://www.smartplugins.info/ 11 * 12 * Copyright 2008 - 2021 Milan Petrovic (email: [email protected]) 13 * 14 * https://www.dev4press.com 15 * https://www.smartplugins.info 16 * 17 */ 18var smartTabDrawer,stdIDSequence=1,stdMaxWidth={left:0,right:0},stdMaxHeight={top:0,bottom:0};(function($,f,g,h){"use strict";smartTabDrawer=function(a,b){return new smartTabDrawer.Core(a,b)};smartTabDrawer.Base=Base.extend({version:"3.2",constructor:function(a,b){if(typeof a!=="object"){a={}}if(typeof b!=="object"){b={}}this.setOptions($.extend(true,{},a,b))},setOption:function(a,b){this[a]=b},getOption:function(a){if(this[a]){return this[a]}return false},setOptions:function(a){var b;for(b in a){if(typeof a[b]!=="undefined"){this.setOption(b,a[b])}}},getOptions:function(){return this},callback:function(a){if(typeof a==="function"){var b=[],i;for(i=1;i<=arguments.length;i++){if(arguments[i]){b.push(arguments[i])}}a.apply(this,b)}}});smartTabDrawer.Core=smartTabDrawer.Base.extend({$status:"closed",$visible:true,$browser:{ios:false,safari:false}
18,$element:false,$skin:false,constructor:function(a,b){this._deviceDetect();this.$element=a;this.$skin=this._loadSkin(b)},call:function(a){this[a]()},set:function(a,b){this.$skin.set(a,b)},get:function(a){return this.$skin.get(a)},show:function(){this.$skin.show()},hide:function(){this.$skin.hide()},toggle:function(){this.$skin.toggle()},open:function(){if(this.$status==="closed"){this.$skin.toggle()}},close:function(){if(this.$status==="open"){this.$skin.toggle()}},update:function(){this.$skin.update()},_loadSkin:function(a){var b=a&&a.skin?a.skin:"LeftRight";if(!smartTabDrawer[b+"Skin"]){b="LeftRight"}return new smartTabDrawer[b+"Skin"](this,a)},_deviceDetect:function(){if(navigator&&navigator.platform&&navigator.platform.match(/^(iPad|iPod|iPhone)$/)){this.$browser.ios=true}if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("CriOS")===-1&&navigator.userAgent.indexOf("Chrome")===-1){this.$browser.safari=true}}});smartTabDrawer.Skin=smartTabDrawer.Base.extend({name:"",code:"",$obj:false,$hideAll:false,$calc:{windowWidth:0,windowHeight:0,minWidth:0,maxWidth:0,minHeight:0,maxHeight:0,drawerWidth:0,drawerHeight:0,totalWidth:0,totalHeight:0},$cls:{classTarget:"std-tag-target",classOpened:"std-status-open",classClosed:"std-status-closed",prefixSkin:"std-skin-",prefixSequence:"std-idseq-",prefixStyle:"std-style-",prefixLocation:"std-location-",prefixPosition:"std-position-",prefixAnchor:"std-anchor-",baseClass:"smart-tab-drawer",tabClass:"std-tab",tabRotate:"std-tab-rotate",tabMethodPrefix:"std-tab-",drawerClass:"std-drawer",drawerInnerClass:"std-drawer-inner",niceScroll:"nicescroll-rails"},core:false,sequenceID:"",sid:"",scrollerActive:false,scrollerOptions:{},embed:"append",style:"default",position:"fixed",location:"left",anchor:"top",border:1,hideOnOpen:"auto",hideOnLoad:false,openOnLoad:false,outClickToClose:false,zIndex:9000,zIndexOpen:10000,opacity:1,opacityOpen:1,minWindowWidth:0,minWindowHeight:0,animateOpenDuration:500,animateOpenEffect:"swing",animateCloseDuration:200,animateCloseEffect:"swing",wrapClass:"",wrapOffset:40,wrapEdge:40,wrapSpace:8,drawerClass:"",drawerWidth:300,drawerHeight:400,drawerPadding:10,drawerRound:5,tabClass:"",tabWidth:96,tabHeight:32,tabRound:4,tabOffset:32,tabEdge:32,tabRotate:true,tabMethod:"slide",tabMode:"text",tabContent:"TAB",tabContentClosed:false,tabTitle:"Click to Open/Close",tabTitleClosed:false,tabRedirectURL:"",tabRedirectAttr:{},onRender:null,onTabClick:null,onOpen:null,onClose:null,onShow:null,onHide:null,constructor:function(a,b){this.base(b);this.core=a;if(this.tabContentClosed===false){this.tabContentClosed=this.tabContent}if(this.tabTitleClosed===false){this.tabTitleClosed=this.tabTitle}var c=this._width(),winHeight=this._height();if(c>this.minWindowWidth&&winHeight>this.minWindowWidth){this._uniqueIDClass();this._prepare();if(this.embed==="prepend"){$("body").prepend(this._render())}else{$("body").append(this._render())}this.$obj=$(this.sid);this.core.$element.addClass(this.$cls.classTarget).data("stdID",this.sequenceID).data("stdLocation",this.location).show();$("."+this.$cls.drawerInnerClass,this.$obj).append(this.core.$element);this.$obj.data("stdID",stdIDSequence-1);if(!this.hideOnLoad){this.$obj.show()}this._slider();this._scroller();this._attachEvents();this.callback(this.onRender,this)}},toggle:function(){if(this.core.$visible&&this.tabMethod==="slide"){$("."+this.$cls.tabClass,this.$obj).click()}},show:function(){this.$obj.show();this.core.$visible=true;this.callback(this.onShow,this)},hide:function(){this.$obj.hide();this.core.$visible=false;this.callback(this.onHide,this)},update:function(){if($("."+this.$cls.tabClass,this.$obj).data("state")==="opened"){this._preSlide("hide")}},_prepare:function(){},_slider:function(){},_calcSize:function(){},_render:function(){},post:function(){$("."+this.$cls.classTarget).each(function(){$(this).data("stdPlugin").update()})},_tabContent:function(c){var d=c==="opened"?this.tabContent:this.tabContentClosed,render,attr="";if(this.tabMode==="text"){render="<span>"+d+"</span>"}else{render="<img alt='"+this.tabTitle+"' src='"+d+"' />"}if(this.tabMethod==="redirect"){$.each(this.tabRedirectAttr,function(a,b){attr+=' '+a+'="'+b+'"'});render='<a href="'+this.tabRedirectURL+'"'+attr+'>'+render+'</a>'}return render},_attachEvents:function(){var b=this;if(this.position==="fixed"){$(f).bind("load resize orientationchange",function(){b._calcSize()})}if(this.outClickToClose){var c="#"+this.sequenceID+" ."+this.$cls.tabClass+", #"+this.sequenceID+" ."+this.$cls.drawerClass;
18$(g).on("click","body",function(a){if(b.core.$status==="open"){if(!$(a.target).closest(c).length){$("."+b.$cls.tabClass,b.$obj).click()}}})}},_height:function(){var a=$(f).height();if(this.core.$browser.ios&&this.core.$browser.safari){a=f.innerHeight}return a},_width:function(){return $(f).width()},_preSlide:function(a){if(this.hideOnOpen!=="no"){var b=this.sequenceID,location=this.location,hideAll=this.hideOnOpen==="auto"?this.$hideAll:true;$("."+this.$cls.classTarget).each(function(){if($(this).data("stdID")!==b){if($(this).data("stdLocation")===location||hideAll){if(a==="show"){$(this).data("stdPlugin").show()}else{$(this).data("stdPlugin").hide()}}}})}},_scroller:function(){if(this.scrollerActive==="nice"){$("."+this.$cls.drawerInnerClass,this.$obj).niceScroll(this.scrollerOptions);$("."+this.$cls.niceScroll,this.$obj).hide()}else if(this.scrollerActive==="nano"){$("."+this.$cls.drawerInnerClass,this.$obj).addClass("nano-content");$("."+this.$cls.drawerClass,this.$obj).addClass("nano").nanoScroller(this.scrollerOptions)}},_uniqueIDClass:function(){this.sequenceID=this.$cls.prefixSequence+stdIDSequence;this.sid="#"+this.sequenceID;stdIDSequence++},_slideSingle:function(b,c){var d=this;$("."+this.$cls.tabClass+"."+this.$cls.tabMethodPrefix+"slide",this.$obj).click(function(){var a=$("."+d.$cls.drawerClass,d.$obj),move,state=$(this).data("state"),from=state==="opened"?"closed":"opened",tab=d._tabContent(from),stdID=d.$obj.data("stdID"),title=from==="opened"?d.tabTitle:d.tabTitleClosed,openTab,openDrawer,closeTab,closeDrawer,openWrap,closeWrap;if(b==="width"){move=a.outerWidth()}else if(b==="height"){move=a.outerHeight()}openWrap={opacity:d.opacityOpen};closeWrap={opacity:d.opacity};d.callback(d.onTabClick,d,state);switch(c){case"left":openTab={marginLeft:"+="+move+"px"};openDrawer={marginLeft:"+="+move+"px"};closeTab={"marginLeft":"-="+move+"px"};closeDrawer={"marginLeft":"-="+move+"px"};break;case"right":openTab={marginLeft:"-="+move+"px"};openDrawer={marginRight:"+="+move+"px"};closeTab={"marginLeft":"+="+move+"px"};closeDrawer={"marginRight":"-="+move+"px"};break;case"top":openTab={marginTop:"+="+move+"px"};openDrawer={marginTop:"+="+move+"px"};closeTab={"marginTop":"-="+move+"px"};closeDrawer={"marginTop":"-="+move+"px"};break;case"bottom":openTab={marginBottom:"+="+move+"px"};openDrawer={marginBottom:"+="+move+"px"};closeTab={"marginBottom":"-="+move+"px"};closeDrawer={"marginBottom":"-="+move+"px"};break}if(state==="closed"){d._preSlide("hide");d.core.$status="opening";$(this).animate(openTab,d.animateOpenDuration,d.animateOpenEffect,function(){$(this).attr("title",title).html(tab)});$(this).parent().css("z-index",d.zIndexOpen+stdID*2).animate(openWrap,d.animateOpenDuration,function(){$(this).removeClass(d.$cls.classClosed).addClass(d.$cls.classOpened)});$(this).prev().animate(openDrawer,d.animateOpenDuration,d.animateOpenEffect,function(){d.core.$status="open";$("."+d.$cls.niceScroll,d.$obj).show();d.callback(d.onOpen,d)});$(this).data("state","opened")}else{$("."+d.$cls.niceScroll,d.$obj).hide();d.core.$status="closing";$(this).animate(closeTab,d.animateCloseDuration,d.animateCloseEffect,function(){$(this).attr("title",title).html(tab)});$(this).parent().animate(closeWrap,d.animateCloseDuration,function(){$(this).removeClass(d.$cls.classOpened).addClass(d.$cls.classClosed).css("z-index",d.zIndex+stdID*2)});$(this).prev().animate(closeDrawer,d.animateCloseDuration,d.animateCloseEffect,function(){d.core.$status="closed";d._preSlide("show");d.callback(d.onClose,d)});$(this).data("state","closed")}})}});smartTabDrawer.LeftRightSkin=smartTabDrawer.Skin.extend({name:"LeftRight",code:"leftright",_prepare:function(){this.$calc.windowWidth=this._width();this.$calc.windowHeight=this._height();var a=this.tabRotate?this.tabHeight:this.tabWidth,moddHeight=this.tabRotate?this.tabWidth:this.tabHeight;this.$calc.drawerWidth=this.drawerWidth+2*this.drawerPadding;this.$calc.drawerHeight=this.drawerHeight+2*this.drawerPadding;this.$calc.minHeight=this.tabOffset+moddHeight+this.tabEdge;if(this.$calc.drawerWidth+a+this.wrapSpace>this.$calc.windowWidth){this.$calc.drawerWidth=this.$calc.windowWidth-a-this.wrapSpace}if(this.position==="fixed"){if(this.$calc.drawerHeight+this.wrapOffset+this.wrapEdge>this.$calc.windowHeight){this.$calc.drawerHeight=this.$calc.windowHeight-this.wrapOffset-this.wrapEdge}}this.$calc.totalWidth=this.$calc.drawerWidth+a+this.wrapSpace+this.border;if(this.$calc.totalWidth>stdMaxWidth[this.location]){stdMaxWidth[this.location]=this.$calc.totalWidth}},_calcSize:function(){this.$calc.windowWidth=this._width();this.$calc.windowHeight=this._height();this.$calc.drawerHeight=this.drawerHeight+2*this.drawerPadding;if(this.$calc.drawerHeight+this.wrapOffset+this.wrapEdge>this.$calc.windowHeight){this.$calc.drawerHeight=this.$calc.windowHeight-this.wrapOffset-this.wrapEdge}if(this.$calc.drawerHeight<this.$calc.minHeight){this.$calc.drawerHeight=this.$calc.minHeight}$("."+this.$cls.drawerClass,this.$obj).height(this.$calc.drawerHeight-2*this.border);$(this.$obj).height(this.$calc.drawerHeight);this.$hideAll=this.$calc.windowWidth<stdMaxWidth.left+stdMaxWidth.right},_render:function(){var a=[],styleDrawer=[],styleInnerDrawer=[],slider=this.tabMethod==="slide",status=slider&&this.openOnLoad?"opened":"closed",zIndex=this.openOnLoad?this.zIndexOpen+stdIDSequence*2:this.zIndex+stdIDSequence*2,opacity=this.openOnLoad?this.opacityOpen:this.opacity,classes=this.openOnLoad?this.$cls.classOpened:this.$cls.classClosed,classWrap=[this.$cls.baseClass,this.$cls.prefixSkin+this.code,this.$cls.prefixLocation+this.location,this.$cls.prefixPosition+this.position,this.$cls.prefixAnchor+this.anchor,this.$cls.prefixStyle+this.style,classes],classTab=[this.$cls.tabClass,this.$cls.tabMethodPrefix+this.tabMethod],styleWrap=["height: "+this.$calc.drawerHeight+"px;","display: none;","opacity: "+opacity+";",this.anchor+": "+this.wrapOffset+"px;","z-index: "+zIndex+";"],styleTab=["height: "+this.tabHeight+"px;","line-height: "+(this.tabHeight-this.border*2)+"px;","width: "+this.tabWidth+"px;"],modOpenDrawer=0;if(slider&&this.openOnLoad){modOpenDrawer=this.$calc.drawerWidth}if(this.tabRound>0){if(this.tabRotate){styleTab.push("border-radius: 0 0 "+this.tabRound+"px "+this.tabRound+"px;")}else{if(this.location==="left"){styleTab.push("border-radius: 0 "+this.tabRound+"px "+this.tabRound+"px 0;")}else if(this.location==="right"){styleTab.push("border-radius: "+this.tabRound+"px 0 0 "+this.tabRound+"px;")}}}if(this.wrapClass!==""){classWrap.push(this.wrapClass)}if(this.tabClass!==""){classTab.push(this.tabClass)}if(slider){a=[this.$cls.drawerClass];styleDrawer=["height: "+this.$calc.drawerHeight+"px;","min-height: "+this.$calc.minHeight+"px;","width: "+this.$calc.drawerWidth+"px;",this.anchor+": 0px;"];if(this.drawerPadding>0){styleInnerDrawer.push("padding: "+this.drawerPadding+"px;")}if(this.location==="left"){styleDrawer.push("margin-left: "+(-this.$calc.drawerWidth+modOpenDrawer)+"px;")}else if(this.location==="right"){styleDrawer.push("margin-right: "+(-this.$calc.drawerWidth+modOpenDrawer)+"px;")}if(this.drawerRound>0){if(this.location==="left"){styleDrawer.push("border-radius: 0 "+this.drawerRound+"px "+this.drawerRound+"px 0;")}else if(this.location==="right"){styleDrawer.push("border-radius: "+this.drawerRound+"px 0 0 "+this.drawerRound+"px;")}}if(this.drawerClass!==""){a.push(this.drawerClass)}}if(this.tabRotate){classTab.push(this.$cls.tabRotate);if(this.location==="left"){styleTab.push("margin-left: "+(-((this.tabWidth-this.tabHeight)/2+this.border)+modOpenDrawer)+"px;")}else if(this.location==="right"){styleTab.push("margin-left: "+(-((this.tabWidth+this.tabHeight)/2-this.border)-modOpenDrawer)+"px;")}styleTab.push("border-top: none;");styleTab.push("margin-"+this.anchor+": "+((this.tabWidth-this.tabHeight)/2+this.tabOffset)+"px;")}else{if(this.location==="left"){styleTab.push("margin-left: "+(-this.border+modOpenDrawer)+"px;");styleTab.push("border-left: none;")}else if(this.location==="right"){styleTab.push("margin-left: "+(-(this.tabWidth-this.border)-modOpenDrawer)+"px;");
18styleTab.push("border-right: none;")}styleTab.push("margin-"+this.anchor+": "+this.tabOffset+"px;")}var b='<div id="'+this.sequenceID+'" class="'+classWrap.join(" ")+'" style="'+styleWrap.join(" ")+'">';if(slider){b+='<div class="'+a.join(" ")+'" style="'+styleDrawer.join(" ")+'">';b+='<div class="'+this.$cls.drawerInnerClass+'" style="'+styleInnerDrawer.join(" ")+'">';b+="</div></div>"}var c=status==="opened"?this.tabTitle:this.tabTitleClosed;b+='<div title="'+c+'" data-state="'+status+'" class="'+classTab.join(" ")+'" style="'+styleTab.join(" ")+'">';b+=this._tabContent(status);b+="</div>";b+="</div>";return b},_slider:function(){if(this.location==="left"){this._slideSingle("width","left")}else if(this.location==="right"){this._slideSingle("width","right")}}});smartTabDrawer.TopBottomSkin=smartTabDrawer.Skin.extend({name:"TopBottom",code:"topbottom",location:"bottom",anchor:"right",position:"fixed",drawerWidth:600,drawerHeight:300,tabRotate:false,_prepare:function(){this.position="fixed";this.$calc.windowWidth=this._width();this.$calc.windowHeight=this._height();var a=this.tabRotate?this.tabHeight:this.tabWidth,moddHeight=this.tabRotate?this.tabWidth:this.tabHeight;this.$calc.drawerHeight=this.drawerHeight+2*this.drawerPadding;this.$calc.drawerWidth=this.drawerWidth+2*this.drawerPadding;this.$calc.minWidth=this.tabOffset+a+this.tabEdge;if(this.$calc.drawerWidth+this.wrapOffset+this.wrapEdge>this.$calc.windowWidth){this.$calc.drawerWidth=this.$calc.windowWidth-this.wrapOffset-this.wrapEdge}if(this.$calc.drawerHeight+moddHeight+this.wrapSpace>this.$calc.windowHeight){this.$calc.drawerHeight=this.$calc.windowHeight-moddHeight-this.wrapSpace}this.$calc.totalHeight=this.$calc.drawerHeight+moddHeight+this.wrapSpace+this.border;if(this.$calc.totalHeight>stdMaxHeight[this.location]){stdMaxHeight[this.location]=this.$calc.totalHeight}},_calcSize:function(){this.$calc.windowWidth=this._width();this.$calc.windowHeight=this._height();this.$calc.drawerWidth=this.drawerWidth+2*this.drawerPadding;if(this.$calc.drawerWidth+this.wrapOffset+this.wrapEdge>this.$calc.windowWidth){this.$calc.drawerWidth=this.$calc.windowWidth-this.wrapOffset-this.wrapEdge}if(this.$calc.drawerWidth<this.$calc.minWidth){this.$calc.drawerWidth=this.$calc.minWidth}$("."+this.$cls.drawerClass,this.$obj).width(this.$calc.drawerWidth-2*this.border);$(this.$obj).width(this.$calc.drawerWidth);this.$hideAll=this.$calc.windowHeight<stdMaxHeight.left+stdMaxHeight.right},_render:function(){var a=[],styleDrawer=[],styleInnerDrawer=[],slider=this.tabMethod==="slide",status=slider&&this.openOnLoad?"opened":"closed",zIndex=this.openOnLoad?this.zIndexOpen+stdIDSequence*2:this.zIndex+stdIDSequence*2,opacity=this.openOnLoad?this.opacityOpen:this.opacity,classes=this.openOnLoad?this.$cls.classOpened:this.$cls.classClosed,classWrap=[this.$cls.baseClass,this.$cls.prefixSkin+this.code,this.$cls.prefixLocation+this.location,this.$cls.prefixPosition+this.position,this.$cls.prefixAnchor+this.anchor,this.$cls.prefixStyle+this.style,classes],classTab=[this.$cls.tabClass,this.$cls.tabMethodPrefix+this.tabMethod],styleWrap=["width: "+this.$calc.drawerWidth+"px;","display: none;","opacity: "+opacity+";",this.anchor+": "+this.wrapOffset+"px;","z-index: "+zIndex+";"],styleTab=["height: "+this.tabHeight+"px;","line-height: "+(this.tabHeight-this.border*2)+"px;","width: "+this.tabWidth+"px;",this.location+": 0px;"],modOpenDrawer=0;if(slider&&this.openOnLoad){modOpenDrawer=this.$calc.drawerHeight}if(this.tabRound>0){if(this.tabRotate){styleTab.push("border-radius: "+this.tabRound+"px 0 0 "+this.tabRound+"px;")}else{if(this.location==="top"){styleTab.push("border-radius: 0 0 "+this.tabRound+"px "+this.tabRound+"px;")}else if(this.location==="bottom"){styleTab.push("border-radius: "+this.tabRound+"px "+this.tabRound+"px 0 0;")}}}if(this.wrapClass!==""){classWrap.push(this.wrapClass)}if(this.tabClass!==""){classTab.push(this.tabClass)}if(slider){a=[this.$cls.drawerClass];styleDrawer=["height: "+this.$calc.drawerHeight+"px;","min-width: "+this.$calc.minWidth+"px;","width: "+this.$calc.drawerWidth+"px;",this.location+": 0px;",this.anchor+": 0px;"];if(this.drawerPadding>0){styleInnerDrawer.push("padding: "+this.drawerPadding+"px;")}if(this.location==="top"){styleDrawer.push("margin-top: "+(-this.$calc.drawerHeight+modOpenDrawer)+"px;")}else if(this.location==="bottom"){styleDrawer.push("margin-bottom: "+(-this.$calc.drawerHeight+modOpenDrawer)+"px;")}if(this.drawerRound>0){if(this.location==="top"){styleDrawer.push("border-radius: 0 0 "+this.drawerRound+"px "+this.drawerRound+"px;")}else if(this.location==="bottom"){styleDrawer.push("border-radius: "+this.drawerRound+"px "+this.drawerRound+"px 0 0;")}}if(this.drawerClass!==""){a.push(this.drawerClass)}}if(this.tabRotate){classTab.push(this.$cls.tabRotate);if(this.location==="top"){styleTab.push("margin-top: "+((this.tabWidth-this.tabHeight)/2-this.border+modOpenDrawer)+"px;")}else if(this.location==="bottom"){styleTab.push("margin-bottom: "+((this.tabWidth-this.tabHeight)/2-this.border+modOpenDrawer)+"px;")}
18styleTab.push("border-right: none;");styleTab.push("margin-"+this.anchor+": "+((this.tabHeight-this.tabWidth)/2+this.tabOffset)+"px;")}else{if(this.location==="top"){styleTab.push("margin-top: "+(-this.border+modOpenDrawer)+"px;");styleTab.push("border-top: none;")}else if(this.location==="bottom"){styleTab.push("margin-bottom: "+(-this.border+modOpenDrawer)+"px;");styleTab.push("border-bottom: none;")}styleTab.push("margin-"+this.anchor+": "+this.tabOffset+"px;")}var b='<div id="'+this.sequenceID+'" class="'+classWrap.join(" ")+'" style="'+styleWrap.join(" ")+'">';if(slider){b+='<div class="'+a.join(" ")+'" style="'+styleDrawer.join(" ")+'">';b+='<div class="'+this.$cls.drawerInnerClass+'" style="'+styleInnerDrawer.join(" ")+'">';b+="</div></div>"}var c=status==="opened"?this.tabTitle:this.tabTitleClosed;b+='<div title="'+c+'" data-state="'+status+'" class="'+classTab.join(" ")+'" style="'+styleTab.join(" ")+'">';b+=this._tabContent(status);b+="</div>";b+="</div>";return b},_slider:function(){if(this.location==="top"){this._slideSingle("height","top")}else if(this.location==="bottom"){this._slideSingle("height","bottom")}}});String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};String.prototype.pad=function(a,b){var c=this;if(!b){b="0"}while(c.length<a){c=b+c}return c};$.fn.smartTabDrawer=function(b,c,d){if(b===h||typeof b==="object"){return this.each(function(){var a=$(this),$plugin=new smartTabDrawer(a,b);a.data("std-plugin",$plugin);$plugin.$skin.post()})}else if(typeof b==="string"){if(b==="set"){this.each(function(){var a=$(this).data("stdPlugin");if(a){a.set(c,d)}})}else if(b==="get"){var e=[];this.each(function(){var a=$(this).data("stdPlugin");if(a){e.push(a.get(c))}});if(e.length===1){return e[0]}else{return e}}else{this.each(function(){var a=$(this).data("stdPlugin");if(a){a.call(b)}})}}}})(jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.