Star Trek The Next Generation Season 1 2 3 4 5 6 7 Extras Dvdrip Tsv 1
Download >>>>> https://tiurll.com/2tglSs
\")[0],f=e.each;p.style.cssText=\"background-color:rgba(1,1,1,.5)\",c.rgba=p.style.backgroundColor.indexOf(\"rgba\")>-1,f(u,function(e,t){t.cache=\"_\"+e,t.props.alpha={idx:3,type:\"percent\",def:1}}),l.fn=e.extend(l.prototype,{parse:function(n,o,r,h){if(n===t)return this._rgba=[null,null,null,null],this;(n.jqueryn.nodeType)&&(n=e(n).css(o),o=t);var d=this,c=e.type(n),p=this._rgba=[];return o!==t&&(n=[n,o,r,h],c=\"array\"),\"string\"===cthis.parse(s(n)a._default):\"array\"===c(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t)}),this):\"object\"===c(n instanceof lf(u,function(e,t){n[t.cache]&&(d[t.cache]=n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if(!d[a]&&s.to){if(\"alpha\"===enull==n[e])return;d[a]=s.to(d._rgba)}d[a][t.idx]=i(n[e],t,!0)}),d[a]&&0>e.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,s.from&&(d._rgba=s.from(d[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,function(e,a){var o,r=i[a.cache];return r&&(o=n[a.cache]a.to&&a.to(n._rgba)[],f(a.props,function(e,i){return null!=r[i.idx]s=r[i.idx]===o[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],o=0===this.alpha()l(\"transparent\"):this,r=o[a.cache]a.to(o._rgba),h=r.slice();return s=s[a.cache],f(a.props,function(e,n){var a=n.idx,o=r[a],l=s[a],u=d[n.type]{};null!==l&&(null===oh[a]=l:(u.mod&&(l-o>u.mod/2o+=u.mod:o-l>u.mod/2&&(o-=u.mod)),h[a]=i((l-o)*t+o,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*n[t]+s*e}))},toRgbaString:function(){var t=\"rgba(\",i=e.map(this._rgba,function(e,t){return null==et>21:0:e});return 1===i[3]&&(i.pop(),t=\"rgb(\"),t+i.join()+\")\"},toHslaString:function(){var t=\"hsla(\",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>21:0),t&&3>t&&(e=Math.round(100*e)+\"%\"),e});return 1===i[3]&&(i.pop(),t=\"hsl(\"),t+i.join()+\")\"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push((255*s)),\"#\"+e.map(i,function(e){return e=(e0).toString(16),1===e.length\"0\"+e:e}).join(\"\")},toString:function(){return 0===this._rgba[3]\"transparent\":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]null==e[1]null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,o=e[3],r=Math.max(s,n,a),h=Math.min(s,n,a),l=r-h,u=r+h,d=.5*u;return t=h===r0:s===r60*(n-a)/l+360:n===r60*(a-s)/l+120:60*(s-n)/l+240,i=0===l0:.5>=dl/u:l/(2-u),[Math.round(t)%360,i,d,null==o1:o]},u.hsla.from=function(e){if(null==e[0]null==e[1]null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],a=e[3],o=.5>=ss*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,t+1/3)),Math.round(255*n(r,o,t)),Math.round(255*n(r,o,t-1/3)),a]},f(u,function(s,n){var a=n.props,o=n.cache,h=n.to,u=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===t)return this[o].slice();var n,r=e.type(s),d=\"array\"===r\"object\"===rs:arguments,c=this[o].slice();return f(a,function(e,t){var s=d[\"object\"===re:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u(n=l(u(c)),n[o]=c,n):l(c)},f(a,function(t,i){l.fn[t](l.fn[t]=function(n){var a,o=e.type(n),h=\"alpha\"===tthis._hsla\"hsla\":\"rgba\":s,l=this[h](),u=l[i.idx];return\"undefined\"===ou:(\"function\"===o&&(n=n.call(this,u),o=e.type(n)),null==n&&i.emptythis:(\"string\"===o&&(a=r.exec(n),a&&(n=u+parseFloat(a[2])*(\"+\"===a[1]1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(t){var i=t.split(\" \");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a,o,r=\"\";if(\"transparent\"!==n&&(\"string\"!==e.type(n)(a=s(n)))){if(n=l(an),!c.rgba&&1!==n._rgba[3]){for(o=\"backgroundColor\"===it.parentNode:t;(\"\"===r\"transparent\"===r)&&o&&o.style;)try{r=e.css(o,\"backgroundColor\"),o=o.parentNode}catch(h){}n=n.blend(r&&\"transparent\"!==rr:\"_default\")}n=n.toRgbaString()}try{t.style[i]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return f([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(i,s){t[\"border\"+s+\"Color\"]=e}),t}},a=e.Color.names={aqua:\"#00ffff\",black:\"#000000\",blue:\"#0000ff\",fuchsia:\"#ff00ff\",gray:\"#808080\",green:\"#008000\",lime:\"#00ff00\",maroon:\"#800000\",navy:\"#000080\",olive:\"#808000\",purple:\"#800080\",red:\"#ff0000\",silver:\"#c0c0c0\",teal:\"#008080\",white:\"#ffffff\",yellow:\"#ffff00\",transparent:[null,null,null,0],_default:\"#ffffff\"}}(p),function(){function t(t){var i,s,n=t.ownerDocument.defaultViewt.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],\"string\"==typeof n[i]&&(a[e.camelCase(i)]=n[i]);else for(i in n)\"string\"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){var s,a,o={};for(s in i)a=i[s],t[s]!==a&&(n[s](e.fx.step[s]!isNaN(parseFloat(a)))&&(o[s]=a));return o}var s=[\"add\",\"remove\",\"toggle\"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each([\"borderLeftStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderTopStyle\"],function(t,i){e.fx.step[i]=function(e){(\"none\"!==e.end&&!e.setAttr1===e.pos&&!e.setAttr)&&(p.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack(e.fn.addBack=function(e){return this.add(null==ethis.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(n,a,o,r){var h=e.speed(a,o,r);return this.queue(function(){var a,o=e(this),r=o.attr(\"class\")\"\",l=h.childreno.find(\"*\").addBack():o;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),a=function(){e.each(s,function(e,t){n[t]&&o[t+\"Class\"](n[t])})},a(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr(\"class\",r),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,\"\")})}),h.complete.call(o[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return se.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.length>1e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,o){return\"boolean\"==typeof svoid 0===sne.effects.animateClass.call(this,s{add:i}:{remove:i},n,a,o):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(n=i,s=null,i={}),(\"number\"==typeof ie.fx.speeds[i])&&(n=s,s=i,i={}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=si.duration,t.duration=e.fx.off0:\"number\"==typeof ss:s in e.fx.speedse.fx.speeds[s]:e.fx.speeds._default,t.complete=ni.complete,t}function i(t){return!t\"number\"==typeof te.fx.speeds[t]!0:\"string\"!=typeof te.effects.effect[t]e.isFunction(t)!0:\"object\"!=typeof tt.effect!1:!0:!0}e.extend(e.effects,{version:\"1.11.4\",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(c+t[i],e[0].style[t[i]])},restore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(c+t[s]),void 0===i&&(i=\"\"),e.css(t[s],i))},setMode:function(e,t){return\"toggle\"===t&&(t=e.is(\":hidden\")\"show\":\"hide\"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case\"top\":i=0;break;case\"middle\":i=.5;break;case\"bottom\":i=1;break;default:i=e[0]/t.height}switch(e[1]){case\"left\":s=0;break;case\"center\":s=.5;break;case\"right\":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(\".ui-effects-wrapper\"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),\"float\":t.css(\"float\")},s=e(\"\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return t.wrap(s),(t[0]===ae.contains(t[0],a))&&e(a).focus(),s=t.parent(),\"static\"===t.css(\"position\")(s.css({position:\"relative\"}),t.css({position:\"relative\"})):(e.extend(i,{position:t.css(\"position\"),zIndex:t.css(\"z-index\")}),e.each([\"top\",\"left\",\"bottom\",\"right\"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]=\"auto\")}),t.css({position:\"relative\",top:0,left:0,right:\"auto\",bottom:\"auto\"})),t.css(n),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(\".ui-effects-wrapper\")&&(t.parent().replaceWith(t),(t[0]===ie.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,n){return n=n{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t)&&t()}var n=e(this),a=s.complete,r=s.mode;(n.is(\":hidden\")\"hide\"===r:\"show\"===r)(n[r](),i()):o.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queue,o=e.effects.effect[s.effect];return e.fx.off!onthis[n](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a===!1this.each(i):this.queue(a\"fx\",i)},show:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode=\"show\",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode=\"hide\",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)\"boolean\"==typeof s)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode=\"toggle\",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each([\"em\",\"px\",\"%\",\"pt\"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each([\"Quad\",\"Cubic\",\"Quart\",\"Quint\",\"Expo\"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e1===ee:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing[\"easeIn\"+t]=i,e.easing[\"easeOut\"+t]=function(e){return 1-i(1-e)},e.easing[\"easeInOut\"+t]=function(e){return.5>ei(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,n,a,o=e(this),r=/updownvertical/,h=/upleftverticalhorizontal/,l=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],u=e.effects.setMode(o,t.mode\"hide\"),d=t.direction\"up\",c=r.test(d),p=c\"height\":\"width\",f=c\"top\":\"left\",m=h.test(d),g={},v=\"show\"===u;o.parent().is(\".ui-effects-wrapper\")e.effects.save(o.parent(),l):e.effects.save(o,l),o.show(),s=e.effects.createWrapper(o).css({overflow:\"hidden\"}),n=s[p](),a=parseFloat(s.css(f))0,g[p]=vn:0,m(o.css(c\"bottom\":\"right\",0).css(c\"top\":\"left\",\"auto\").css({position:\"absolute\"}),g[f]=va:n+a),v&&(s.css(p,0),ms.css(f,a+n)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){\"hide\"===u&&o.hide(),e.effects.restore(o,l),e.effects.removeWrapper(o),i()}})},e.effects.effect.bounce=function(t,i){var s,n,a,o=e(this),r=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],h=e.effects.setMode(o,t.mode\"effect\"),l=\"hide\"===h,u=\"show\"===h,d=t.direction\"up\",c=t.distance,p=t.times5,f=2*p+(ul1:0),m=t.duration/f,g=t.easing,v=\"up\"===d\"down\"===d\"top\":\"left\",y=\"up\"===d\"left\"===d,b=o.queue(),_=b.length;for((ul)&&r.push(\"opacity\"),e.effects.save(o,r),o.show(),e.effects.createWrapper(o),c(c=o[\"top\"===v\"outerHeight\":\"outerWidth\"]()/3),u&&(a={opacity:1},a[v]=0,o.css(\"opacity\",0).css(v,y2*-c:2*c).animate(a,m,g)),l&&(c/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(y\"-=\":\"+=\")+c,o.animate(n,m,g).animate(a,m,g),c=l2*c:c/2;l&&(n={opacity:0},n[v]=(y\"-=\":\"+=\")+c,o.animate(n,m,g)),o.queue(function(){l&&o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),o.dequeue()},e.effects.effect.clip=function(t,i){var s,n,a,o=e(this),r=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],h=e.effects.setMode(o,t.mode\"hide\"),l=\"show\"===h,u=t.direction\"vertical\",d=\"vertical\"===u,c=d\"height\":\"width\",p=d\"top\":\"left\",f={};e.effects.save(o,r),o.show(),s=e.effects.createWrapper(o).css({overflow:\"hidden\"}),n=\"IMG\"===o[0].tagNames:o,a=n[c](),l&&(n.css(c,0),n.css(p,a/2)),f[c]=la:0,f[p]=l0:a/2,n.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){lo.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}})},e.effects.effect.drop=function(t,i){var s,n=e(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"opacity\",\"height\",\"width\"],o=e.effects.setMode(n,t.mode\"hide\"),r=\"show\"===o,h=t.direction\"left\",l=\"up\"===h\"down\"===h\"top\":\"left\",u=\"up\"===h\"left\"===h\"pos\":\"neg\",d={opacity:r1:0};e.effects.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distancen[\"top\"===l\"outerHeight\":\"outerWidth\"](!0)/2,r&&n.css(\"opacity\",0).css(l,\"pos\"===u-s:s),d[l]=(r\"pos\"===u\"+=\":\"-=\":\"pos\"===u\"-=\":\"+=\")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){\"hide\"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&n()}function n(){p.css({visibility:\"visible\"}),e(b).remove(),mp.hide(),i()}var a,o,r,h,l,u,d=t.piecesMath.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode\"hide\"),m=\"show\"===f,g=p.show().css(\"visibility\",\"hidden\").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),b=[];for(a=0;d>a;a++)for(h=g.top+a*y,u=a-(d-1)/2,o=0;c>o;o++)r=g.left+o*v,l=o-(c-1)/2,p.clone().appendTo(\"body\").wrap(\"\").css({position:\"absolute\",visibility:\"visible\",left:-o*v,top:-a*y}).parent().addClass(\"ui-effects-explode\").css({position:\"absolute\",overflow:\"hidden\",width:v,height:y,left:r+(ml*v:0),top:h+(mu*y:0),opacity:m0:1}).animate({left:r+(m0:l*v),top:h+(m0:u*y),opacity:m1:0},t.duration500,t.easing,s)},e.effects.effect.fade=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode\"toggle\");s.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e.effects.effect.fold=function(t,i){var s,n,a=e(this),o=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],r=e.effects.setMode(a,t.mode\"hide\"),h=\"show\"===r,l=\"hide\"===r,u=t.size15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=h!==c,f=p[\"width\",\"height\"]:[\"height\",\"width\"],m=t.duration/2,g={},v={};e.effects.save(a,o),a.show(),s=e.effects.createWrapper(a).css({overflow:\"hidden\"}),n=p[s.width(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*n[l0:1]),h&&s.css(c{height:0,width:u}:{height:u,width:0}),g[f[0]]=hn[0]:u,v[f[1]]=hn[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&a.hide(),e.effects.restore(a,o),e.effects.removeWrapper(a),i()})},e.effects.effect.highlight=function(t,i){var s=e(this),n=[\"backgroundImage\",\"backgroundColor\",\"opacity\"],a=e.effects.setMode(s,t.mode\"show\"),o={backgroundColor:s.css(\"backgroundColor\")};\"hide\"===a&&(o.opacity=0),e.effects.save(s,n),s.show().css({backgroundImage:\"none\",backgroundColor:t.color\"#ffff99\"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){\"hide\"===a&&s.hide(),e.effects.restore(s,n),i()}})},e.effects.effect.size=function(t,i){var s,n,a,o=e(this),r=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\",\"overflow\",\"opacity\"],h=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"overflow\",\"opacity\"],l=[\"width\",\"height\",\"overflow\"],u=[\"fontSize\"],d=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],c=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],p=e.effects.setMode(o,t.mode\"effect\"),f=t.restore\"effect\"!==p,m=t.scale\"both\",g=t.origin[\"middle\",\"center\"],v=o.css(\"position\"),y=fr:h,b={height:0,width:0,outerHeight:0,outerWidth:0};\"show\"===p&&o.show(),s={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},\"toggle\"===t.mode&&\"show\"===p(o.from=t.tob,o.to=t.froms):(o.from=t.from(\"show\"===pb:s),o.to=t.to(\"hide\"===pb:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width},to:{y:o.to.height/s.height,x:o.to.width/s.width}},(\"box\"===m\"both\"===m)&&(a.from.y!==a.to.y&&(y=y.concat(d),o.from=e.effects.setTransition(o,d,a.from.y,o.from),o.to=e.effects.setTransition(o,d,a.to.y,o.to)),a.from.x!==a.to.x&&(y=y.concat(c),o.from=e.effects.setTransition(o,c,a.from.x,o.from),o.to=e.effects.setTransition(o,c,a.to.x,o.to))),(\"content\"===m\"both\"===m)&&a.from.y!==a.to.y&&(y=y.concat(u).concat(l),o.from=e.effects.setTransition(o,u,a.from.y,o.from),o.to=e.effects.setTransition(o,u,a.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.createWrapper(o),o.css(\"overflow\",\"hidden\").css(o.from),g&&(n=e.effects.getBaseline(g,s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.outerWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outerWidth-o.to.outerWidth)*n.x),o.css(o.from),(\"content\"===m\"both\"===m)&&(d=d.concat([\"marginTop\",\"marginBottom\"]).concat(u),c=c.concat([\"marginLeft\",\"marginRight\"]),l=r.concat(d).concat(c),o.find(\"*[width]\").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,c,a.from.x,i.from),i.to=e.effects.setTransition(i,c,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===o.to.opacity&&o.css(\"opacity\",o.from.opacity),\"hide\"===p&&o.hide(),e.effects.restore(o,y),f(\"static\"===vo.css({position:\"relative\",top:o.to.top,left:o.to.left}):e.each([\"top\",\"left\"],function(e,t){o.css(t,function(t,i){var s=parseInt(i,10),n=eo.to.left:o.to.top;return\"auto\"===in+\"px\":s+n+\"px\"})})),e.effects.removeWrapper(o),i()}})},e.effects.effect.scale=function(t,i){var s=e(this),n=e.extend(!0,{},t),a=e.effects.setMode(s,t.mode\"effect\"),o=parseInt(t.percent,10)(0===parseInt(t.percent,10)0:\"hide\"===a0:100),r=t.direction\"both\",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:\"horizontal\"!==ro/100:1,x:\"vertical\"!==ro/100:1};n.effect=\"size\",n.queue=!1,n.complete=i,\"effect\"!==a&&(n.origin=h[\"middle\",\"center\"],n.restore=!0),n.from=t.from(\"show\"===a{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},n.fade&&(\"show\"===a&&(n.from.opacity=0,n.to.opacity=1),\"hide\"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},e.effects.effect.puff=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode\"hide\"),a=\"hide\"===n,o=parseInt(t.percent,10)150,r=o/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:\"scale\",queue:!1,fade:!0,mode:n,complete:i,percent:ao:100,from:ah:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,n=e(this),a=e.effects.setMode(n,t.mode\"show\"),o=\"show\"===a,r=\"hide\"===a,h=o\"hide\"===a,l=2*(t.times5)+(h1:0),u=t.duration/l,d=0,c=n.queue(),p=c.length;for((o!n.is(\":visible\"))&&(n.css(\"opacity\",0).show(),d=1),s=1;l>s;s++)n.animate({opacity:d},u,t.easing),d=1-d;n.animate({opacity:d},u,t.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),n.dequeue()},e.effects.effect.shake=function(t,i){var s,n=e(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],o=e.effects.setMode(n,t.mode\"effect\"),r=t.direction\"left\",h=t.distance20,l=t.times3,u=2*l+1,d=Math.round(t.duration/u),c=\"up\"===r\"down\"===r\"top\":\"left\",p=\"up\"===r\"left\"===r,f={},m={},g={},v=n.queue(),y=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n),f[c]=(p\"-=\":\"+=\")+h,m[c]=(p\"+=\":\"-=\")+2*h,g[c]=(p\"-=\":\"+=\")+2*h,n.animate(f,d,t.easing),s=1;l>s;s++)n.animate(m,d,t.easing).animate(g,d,t.easing);n.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){\"hide\"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),n.dequeue()},e.effects.effect.slide=function(t,i){var s,n=e(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\"],o=e.effects.setMode(n,t.mode\"show\"),r=\"show\"===o,h=t.direction\"left\",l=\"up\"===h\"down\"===h\"top\":\"left\",u=\"up\"===h\"left\"===h,d={};e.effects.save(n,a),n.show(),s=t.distancen[\"top\"===l\"outerHeight\":\"outerWidth\"](!0),e.effects.createWrapper(n).css({overflow:\"hidden\"}),r&&n.css(l,uisNaN(s)\"-\"+s:-s:s),d[l]=(ru\"+=\":\"-=\":u\"-=\":\"+=\")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){\"hide\"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),n=e(t.to),a=\"fixed\"===n.css(\"position\"),o=e(\"body\"),r=ao.scrollTop():0,h=ao.scrollLeft():0,l=n.offset(),u={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},d=s.offset(),c=e(\"\").appendTo(document.body).addClass(t.className).css({top:d.top-r,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a\"fixed\":\"absolute\"}).animate(u,t.duration,t.easing,function(){c.remove(),i()})}});.tocify {width: 20%;max-height: 90%;overflow: auto;margin-left: 2%;position: fixed;border: 1px solid #ccc;border-radius: 6px;}.tocify ul, .tocify li {list-style: none;margin: 0;padding: 0;border: none;line-height: 30px;}.tocify-header {text-indent: 10px;}.tocify-subheader {text-indent: 20px;display: none;}.tocify-subheader li {font-size: 12px;}.tocify-subheader .tocify-subheader {text-indent: 30px;}.tocify-subheader .tocify-subheader .tocify-subheader {text-indent: 40px;}.tocify-subheader .tocify-subheader .tocify-subheader .tocify-subheader {text-indent: 50px;}.tocify-subheader .tocify-subheader .tocify-subheader .tocify-subheader .tocify-subheader {text-indent: 60px;}.tocify .tocify-item > a, .tocify .nav-list .nav-header {margin: 0px;}.tocify .tocify-item a, .tocify .list-group-item {padding: 5px;}.tocify .nav-pills > li {float: none;}/* jquery Tocify - v1.9.1 - 2013-10-22 * * Copyright (c) 2013 Greg Franko; Licensed MIT */// Immediately-Invoked Function Expression (IIFE) [Ben Alman Blog Post]( -invoked-function-expression/) that calls another IIFE that contains all of the plugin logic. I used this pattern so that anyone viewing this code would not have to scroll to the bottom of the page to view the local parameters that were passed to the main IIFE.(function(tocify) { // ECMAScript 5 Strict Mode: [John Resig Blog Post]( -5-strict-mode-json-and-more/) \"use strict\"; // Calls the second IIFE and locally passes in the global jQuery, window, and document objects tocify(window.jQuery, window, document); } // Locally passes in `jQuery`, the `window` object, the `document` object, and an `undefined` variable. The `jQuery`, `window` and `document` objects are passed in locally, to improve performance, since javascript first searches for a variable match within the local variables set before searching the global variables set. All of the global variables are also passed in locally to be minifier friendly. `undefined` can be passed in locally, because it is not a reserved word in JavaScript. (function($, window, document, undefined) { // ECMAScript 5 Strict Mode: [John Resig Blog Post]( -5-strict-mode-json-and-more/) \"use strict\"; var tocClassName = \"tocify\", tocClass = \".\" + tocClassName, tocFocusClassName = \"tocify-focus\", tocHoverClassName = \"tocify-hover\", hideTocClassName = \"tocify-hide\", hideTocClass = \".\" + hideTocClassName, headerClassName = \"tocify-header\", headerClass = \".\" + headerClassName, subheaderClassName = \"tocify-subheader\", subheaderClass = \".\" + subheaderClassName, itemClassName = \"tocify-item\", itemClass = \".\" + itemClassName, extendPageClassName = \"tocify-extend-page\", extendPageClass = \".\" + extendPageClassName; // Calling the jQueryUI Widget Factory Method $.widget(\"toc.tocify\", { //Plugin version version: \"1.9.1\", // These options will be used as defaults options: { // **context**: Accepts String: Any jQuery selector // The container element that holds all of the elements used to generate the table of contents context: \"body\", // **ignoreSelector**: Accepts String: Any jQuery selector // A selector to any element that would be matched by selectors that you wish to be ignored ignoreSelector: null, // **selectors**: Accepts an Array of Strings: Any jQuery selectors // The element's used to generate the table of contents. The order is very important since it will determine the table of content's nesting structure selectors: \"h1, h2, h3\", // **showAndHide**: Accepts a boolean: true or false // Used to determine if elements should be shown and hidden showAndHide: true, // **showEffect**: Accepts String: \"none\", \"fadeIn\", \"show\", or \"slideDown\" // Used to display any of the table of contents nested items showEffect: \"slideDown\", // **showEffectSpeed**: Accepts Number (milliseconds) or String: \"slow\", \"medium\", or \"fast\" // The time duration of the show animation showEffectSpeed: \"medium\", // **hideEffect**: Accepts String: \"none\", \"fadeOut\", \"hide\", or \"slideUp\" // Used to hide any of the table of contents nested items hideEffect: \"slideUp\", // **hideEffectSpeed**: Accepts Number (milliseconds) or String: \"slow\", \"medium\", or \"fast\" // The time duration of the hide animation hideEffectSpeed: \"medium\", // **smoothScroll**: Accepts a boolean: true or false // Determines if a jQuery animation should be used to scroll to specific table of contents items on the page smoothScroll: true, // **smoothScrollSpeed**: Accepts Number (milliseconds) or String: \"slow\", \"medium\", or \"fast\" // The time duration of the smoothScroll animation smoothScrollSpeed: \"medium\", // **scrollTo**: Accepts Number (pixels) // The amount of space between the top of page and the selected table of contents item after the page has been scrolled scrollTo: 0, // **showAndHideOnScroll**: Accepts a boolean: true or false // Determines if table of contents nested items should be shown and hidden while scrolling showAndHideOnScroll: true, // **highlightOnScroll**: Accepts a boolean: true or false // Determines if table of contents nested items should be highlighted (set to a different color) while scrolling highlightOnScroll: true, // **highlightOffset**: Accepts a number // The offset distance in pixels to trigger the next active table of contents item highlightOffset: 40, // **theme**: Accepts a string: \"bootstrap\", \"jqueryui\", or \"none\" // Determines if Twitter Bootstrap, jQueryUI, or Tocify classes should be added to the table of contents theme: \"bootstrap\", // **extendPage**: Accepts a boolean: true or false // If a user scrolls to the bottom of the page and the page is not tall enough to scroll to the last table of contents item, then the page height is increased extendPage: true, // **extendPageOffset**: Accepts a number: pixels // How close to the bottom of the page a user must scroll before the page is extended extendPageOffset: 100, // **history**: Accepts a boolean: true or false // Adds a hash to the page url to maintain history history: true, // **scrollHistory**: Accepts a boolean: true or false // Adds a hash to the page url, to maintain history, when scrolling to a TOC item scrollHistory: false, // **hashGenerator**: How the hash value (the anchor segment of the URL, following the // # character) will be generated. // // \"compact\" (default) - #CompressesEverythingTogether // \"pretty\" - #looks-like-a-nice-url-and-is-easily-readable // function(text, element){} - Your own hash generation function that accepts the text as an // argument, and returns the hash value. hashGenerator: \"compact\", // **highlightDefault**: Accepts a boolean: true or false // Set's the first TOC item as active if no other TOC item is active. highlightDefault: true }, // _Create // ------- // Constructs the plugin. Only called once. _create: function() { var self = this; self.extendPageScroll = true; // Internal array that keeps track of all TOC items (Helps to recognize if there are duplicate TOC item strings) self.items = []; // Generates the HTML for the dynamic table of contents self._generateToc(); // Adds CSS classes to the newly generated table of contents HTML self._addCSSClasses(); self.webkit = (function() { for (var prop in window) { if (prop) { if (prop.toLowerCase().indexOf(\"webkit\") !== -1) { return true; } } } return false; }()); // Adds jQuery event handlers to the newly generated table of contents self._setEventHandlers(); // Binding to the Window load event to make sure the correct scrollTop is calculated $(window).on(\"load\", function() { // Sets the active TOC item self._setActiveElement(true); // Once all animations on the page are complete, this callback function will be called $(\"html, body\").promise().done(function() { setTimeout(function() { self.extendPageScroll = false; }, 0); }); }); }, // _generateToc // ------------ // Generates the HTML for the dynamic table of contents _generateToc: function() { // _Local variables_ // Stores the plugin context in the self variable var self = this, // All of the HTML tags found within the context provided (i.e. body) that match the top level jQuery selector above firstElem, // Instantiated variable that will store the top level newly created unordered list DOM element ul, ignoreSelector = self.options.ignoreSelector; // Determine the element to start the toc with // get all the top level selectors firstElem = []; var selectors = this.options.selectors.replace(/ /g, \"\").split(\",\"); // find the first set that have at least one non-ignored element for(var i = 0; i < selectors.length; i++) { var foundSelectors = $(this.options.context).find(selectors[i]); for (var s = 0; s < foundSelectors.length; s++) { if (!$(foundSelectors[s]).is(ignoreSelector)) { firstElem = foundSelectors; break; } } if (firstElem.length> 0) break; } if (!firstElem.length) { self.element.addClass(hideTocClassName); return; } self.element.addClass(tocClassName); // Loops through each top level selector firstElem.each(function(index) { //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) { return; } // Creates an unordered list HTML element and adds a dynamic ID and standard class name ul = $(\"\", { \"id\": headerClassName + index, \"class\": headerClassName }). // Appends a top level list item HTML element to the previously created HTML header append(self._nestElements($(this), index)); // Add the created unordered list element to the HTML element calling the plugin self.element.append(ul); // Finds all of the HTML tags between the header and subheader elements $(this).nextUntil(this.nodeName.toLowerCase()).each(function() { // If there are no nested subheader elemements if ($(this).find(self.options.selectors).length === 0) { // Loops through all of the subheader elements $(this).filter(self.options.selectors).each(function() { //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) { return; } self._appendSubheaders.call(this, self, ul); }); } // If there are nested subheader elements else { // Loops through all of the subheader elements $(this).find(self.options.selectors).each(function() { //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) { return; } self._appendSubheaders.call(this, self, ul); }); } }); }); }, _setActiveElement: function(pageload) { var self = this, hash = window.location.hash.substring(1), elem = self.element.find('li[data-unique=\"' + hash + '\"]'); if (hash.length) { // Removes highlighting from all of the list item's self.element.find(\".\" + self.focusClass).removeClass(self.focusClass); // Highlights the current list item that was clicked elem.addClass(self.focusClass); // Triggers the click event on the currently focused TOC item elem.click(); } else { // Removes highlighting from all of the list item's self.element.find(\".\" + self.focusClass).removeClass(self.focusClass); if (!hash.length && pageload && self.options.highlightDefault) { // Highlights the first TOC item if no other items are highlighted self.element.find(itemClass).first().addClass(self.focusClass); } } return self; }, // _nestElements // ------------- // Helps create the table of contents list by appending nested list items _nestElements: function(self, index) { var arr, item, hashValue; arr = $.grep(this.items, function(item) { return item === self.text(); }); // If there is already a duplicate TOC item if (arr.length) { // Adds the current TOC item text and index (for slight randomization) to the internal array this.items.push(self.text() + index); } // If there not a duplicate TOC item else { // Adds the current TOC item text to the internal array this.items.push(self.text()); } hashValue = this._generateHashValue(arr, self, index); // Appends a list item HTML element to the last unordered list HTML element found within the HTML element calling the plugin item = $(\"\", { // Sets a common class name to the list item \"class\": itemClassName, \"data-unique\": hashValue }); if (this.options.theme !== \"bootstrap3\") { item.append($(\"\", { \"html\": self.html() })); } else { item.html(self.html()); } // Adds an HTML anchor tag before the currently traversed HTML element self.before($(\"\", { // Sets a name attribute on the anchor tag to the text of the currently traversed HTML element (also making sure that all whitespace is replaced with an underscore) \"name\": hashValue, \"data-unique\": hashValue })); return item; }, // _generateHashValue // ------------------ // Generates the hash value that will be used to refer to each item. _generateHashValue: function(arr, self, index) { var hashValue = \"\", hashGeneratorOption = this.options.hashGenerator; if (hashGeneratorOption === \"pretty\") { // prettify the text hashValue = self.text().toLowerCase().replace(/\\s/g, \"-\"); // fix double hyphens while (hashValue.indexOf(\"--\") > -1) { hashValue = hashValue.replace(/--/g, \"-\"); } // fix colon-space instances while (hashValue.indexOf(\":-\") > -1) { hashValue = hashValue.replace(/:-/g, \"-\"); } } else if (typeof hashGeneratorOption === \"function\") { // call the function hashValue = hashGeneratorOption(self.text(), self); } else { // compact - the default hashValue = self.text().replace(/\\s/g, \"\"); } // add the index if we need to if (arr.length) { hashValue += \"\" + index; } // return the value return hashValue; }, // _appendElements // --------------- // Helps create the table of contents list by appending subheader elements _appendSubheaders: function(self, ul) { // The current element index var index = $(this).index(self.options.selectors), // Finds the previous header DOM element previousHeader = $(self.options.selectors).eq(index - 1), currentTagName = +$(this).prop(\"tagName\").charAt(1), previousTagName = +previousHeader.prop(\"tagName\").charAt(1), lastSubheader; // If the current header DOM element is smaller than the previous header DOM element or the first subheader if (currentTagName < previousTagName) { // Selects the last unordered list HTML found within the HTML element calling the plugin self.element.find(subheaderClass + \"[data-tag=\" + currentTagName + \"]\").last().append(self._nestElements($(this), index)); } // If the current header DOM element is the same type of header(eg. h4) as the previous header DOM element else if (currentTagName === previousTagName) { ul.find(itemClass).last().after(self._nestElements($(this), index)); } else { // Selects the last unordered list HTML found within the HTML element calling the plugin ul.find(itemClass).last(). // Appends an unorderedList HTML element to the dynamic `unorderedList` variable and sets a common class name after($(\"\", { \"class\": subheaderClassName, \"data-tag\": currentTagName })).next(subheaderClass). // Appends a list item HTML element to the last unordered list HTML element found within the HTML element calling the plugin append(self._nestElements($(this), index)); } }, // _setEventHandlers // ---------------- // Adds jQuery event handlers to the newly generated table of contents _setEventHandlers: function() { // _Local variables_ // Stores the plugin context in the self variable var self = this, // Instantiates a new variable that will be used to hold a specific element's context $self, // Instantiates a new variable that will be used to determine the smoothScroll animation time duration duration; // Event delegation that looks for any clicks on list item elements inside of the HTML element calling the plugin this.element.on(\"click.tocify\", \"li\", function(event) { if (self.options.history) { window.location.hash = $(this).attr(\"data-unique\"); } // Removes highlighting from all of the list item's self.element.find(\".\" + self.focusClass).removeClass(self.focusClass); // Highlights the current list item that was clicked $(this).addClass(self.focusClass); // If the showAndHide option is true if (self.options.showAndHide) { var elem = $('li[data-unique=\"' + $(this).attr(\"data-unique\") + '\"]'); self._triggerShow(elem); } self._scrollTo($(this)); }); // Mouseenter and Mouseleave event handlers for the list item's within the HTML element calling the plugin this.element.find(\"li\").on({ // Mouseenter event handler \"mouseenter.tocify\": function() { // Adds a hover CSS class to the current list item $(this).addClass(self.hoverClass); // Makes sure the cursor is set to the pointer icon $(this).css(\"cursor\", \"pointer\"); }, // Mouseleave event handler \"mouseleave.tocify\": function() { if (self.options.theme !== \"bootstrap\") { // Removes the hover CSS class from the current list item $(this).removeClass(self.hoverClass); } } }); // only attach handler if needed (expensive in IE) if (self.options.extendPage self.options.highlightOnScroll self.options.scrollHistory self.options.showAndHideOnScroll) { // Window scroll event handler $(window).on(\"scroll.tocify\", function() { // Once all animations on the page are complete, this callback function will be called $(\"html, body\").promise().done(function() { // Local variables // Stores how far the user has scrolled var winScrollTop = $(window).scrollTop(), // Stores the height of the window winHeight = $(window).height(), // Stores the height of the document docHeight = $(document).height(), scrollHeight = $(\"body\")[0].scrollHeight, // Instantiates a variable that will be used to hold a selected HTML element elem, lastElem, lastElemOffset, currentElem; if (self.options.extendPage) { // If the user has scrolled to the bottom of the page and the last toc item is not focused if ((self.webkit && winScrollTop >= scrollHeight - winHeight - self.options.extendPageOffset) (!self.webkit && winHeight + winScrollTop > docHeight - self.options.extendPageOffset)) { if (!$(extendPageClass).length) { lastElem = $('div[data-unique=\"' + $(itemClass).last().attr(\"data-unique\") + '\"]'); if (!lastElem.length) return; // Gets the top offset of the page header that is linked to the last toc item lastElemOffset = lastElem.offset().top; // Appends a div to the bottom of the page and sets the height to the difference of the window scrollTop and the last element's position top offset $(self.options.context).append($(\"\", { \"class\": extendPageClassName, \"height\": Math.abs(lastElemOffset - winScrollTop) + \"px\", \"data-unique\": extendPageClassName })); if (self.extendPageScroll) { currentElem = self.element.find('li.' + self.focusClass); self._scrollTo($('div[data-unique=\"' + currentElem.attr(\"data-unique\") + '\"]')); } } } } // The zero timeout ensures the following code is run after the scroll events setTimeout(function() { // _Local variables_ // Stores the distance to the closest anchor var closestAnchorDistance = null, // Stores the index of the closest anchor closestAnchorIdx = null, // Keeps a reference to all anchors anchors = $(self.options.context).find(\"div[data-unique]\"), anchorText; // Determines the index of the closest anchor anchors.each(function(idx) { var distance = Math.abs(($(this).next().length $(this).next() : $(this)).offset().top - winScrollTop - self.options.highlightOffset); if (closestAnchorDistance == null distance < closestAnchorDistance) { closestAnchorDistance = distance; closestAnchorIdx = idx; } else { return false; } }); anchorText = $(anchors[closestAnchorIdx]).attr(\"data-unique\"); // Stores the list item HTML element that corresponds to the currently traversed anchor tag elem = $('li[data-unique=\"' + anchorText + '\"]'); // If the `highlightOnScroll` option is true and a next element is found if (self.options.highlightOnScroll && elem.length) { // Removes highlighting from all of the list item's self.element.find(\".\" + self.focusClass).removeClass(self.focusClass); // Highlights the corresponding list item elem.addClass(self.focusClass); } if (self.options.scrollHistory) { if (window.location.hash !== \"#\" + anchorText) { window.location.replace(\"#\" + anchorText); } } // If the `showAndHideOnScroll` option is true if (self.options.showAndHideOnScroll && self.options.showAndHide) { self._triggerShow(elem, true); } }, 0); }); }); } }, // Show // ---- // Opens the current sub-header show: function(elem, scroll) { // Stores the plugin context in the `self` variable var self = this, element = elem; // If the sub-header is not already visible if (!elem.is(\":visible\")) { // If the current element does not have any nested subheaders, is not a header, and its parent is not visible if (!elem.find(subheaderClass).length && !elem.parent().is(headerClass) && !elem.parent().is(\":visible\")) { // Sets the current element to all of the subheaders within the current header elem = elem.parents(subheaderClass).add(elem); } // If the current element does not have any nested subheaders and is not a header else if (!elem.children(subheaderClass).length && !elem.parent().is(headerClass)) { // Sets the current element to the closest subheader elem = elem.closest(subheaderClass); } //Determines what jQuery effect to use switch (self.options.showEffect) { //Uses `no effect` case \"none\": elem.show(); break; //Uses the jQuery `show` special effect case \"show\": elem.show(self.options.showEffectSpeed); break; //Uses the jQuery `slideDown` special effect case \"slideDown\": elem.slideDown(self.options.showEffectSpeed); break; //Uses the jQuery `fadeIn` special effect case \"fadeIn\": elem.fadeIn(self.options.showEffectSpeed); break; //If none of the above options were passed, then a `jQueryUI show effect` is expected default: elem.show(); break; } } // If the current subheader parent element is a header if (elem.parent().is(headerClass)) { // Hides all non-active sub-headers self.hide($(subheaderClass).not(elem)); } // If the current subheader parent element is not a header else { // Hides all non-active sub-headers self.hide($(subheaderClass).not(elem.closest(headerClass).find(subheaderClass).not(elem.siblings()))); } // Maintains chainablity return self; }, // Hide // ---- // Closes the current sub-header hide: function(elem) { // Stores the plugin context in the `self` variable var self = this; //Determines what jQuery effect to use switch (self.options.hideEffect) { // Uses `no effect` case \"none\": elem.hide(); break; // Uses the jQuery `hide` special effect case \"hide\": elem.hide(self.options.hideEffectSpeed); break; // Uses the jQuery `slideUp` special effect case \"slideUp\": elem.slideUp(self.options.hideEffectSpeed); break; // Uses the jQuery `fadeOut` special effect case \"fadeOut\": elem.fadeOut(self.options.hideEffectSpeed); break; // If none of the above options were passed, then a `jqueryUI hide effect` is expected default: elem.hide(); break; } // Maintains chainablity return self; }, // _triggerShow // ------------ // Determines what elements get shown on scroll and click _triggerShow: function(elem, scroll) { var self = this; // If the current element's parent is a header element or the next element is a nested subheader element if (elem.parent().is(headerClass) elem.next().is(subheaderClass)) { // Shows the next sub-header element self.show(elem.next(subheaderClass), scroll); } // If the current element's parent is a subheader element else if (elem.parent().is(subheaderClass)) { // Shows the parent sub-header element self.show(elem.parent(), scroll); } // Maintains chainability return self; }, // _addCSSClasses // -------------- // Adds CSS classes to the newly generated table of contents HTML _addCSSClasses: function() { // If the user wants a jqueryUI theme if (this.options.theme === \"jqueryui\") { this.focusClass = \"ui-state-default\"; this.hoverClass = \"ui-state-hover\"; //Adds the default styling to the dropdown list this.element.addClass(\"ui-widget\").find(\".toc-title\").addClass(\"ui-widget-header\").end().find(\"li\").addClass(\"ui-widget-content\"); } // If the user wants a twitterBootstrap theme else if (this.options.theme === \"bootstrap\") { this.element.find(headerClass + \",\" + subheaderClass).addClass(\"nav nav-list\"); this.focusClass = \"active\"; } // If the user wants a twitterBootstrap theme else if (this.options.theme === \"bootstrap3\") { this.element.find(headerClass + \",\" + subheaderClass).addClass(\"list-group\"); this.element.find(itemClass).addClass(\"list-group-item\"); this.focusClass = \"active\"; } // If a user does not want a prebuilt theme else { // Adds more neutral classes (instead of jqueryui) this.focusClass = tocFocusClassName; this.hoverClass = tocHoverClassName; } //Maintains chainability return this; }, // setOption // --------- // Sets a single Tocify option after the plugin is invoked setOption: function() { // Calls the jQueryUI Widget Factory setOption method $.Widget.prototype._setOption.apply(this, arguments); }, // setOptions // ---------- // Sets a single or multiple Tocify options after the plugin is invoked setOptions: function() { // Calls the jQueryUI Widget Factory setOptions method $.Widget.prototype._setOptions.apply(this, arguments); }, // _scrollTo // --------- // Scrolls to a specific element _scrollTo: function(elem) { var self = this, duration = self.options.smoothScroll 0, scrollTo = self.options.scrollTo, currentDiv = $('div[data-unique=\"' + elem.attr(\"data-unique\") + '\"]'); if (!currentDiv.length) { return self; } // Once all animations on the page are complete, this callback function will be called $(\"html, body\").promise().done(function() { // Animates the html and body element scrolltops $(\"html, body\").animate({ // Sets the jQuery `scrollTop` to the top offset of the HTML div tag that matches the current list item's `data-unique` tag \"scrollTop\": currentDiv.offset().top - ($.isFunction(scrollTo) scrollTo.call() : scrollTo) + \"px\" }, { // Sets the smoothScroll animation time duration to the smoothScrollSpeed option \"duration\": duration }); }); // Maintains chainability return self; } }); })); //end of plugin/** * jQuery Plugin: Sticky Tabs * * @author Aidan Lister * adapted by Ruben Arslan to activate parent tabs too * -the-tab-state-in-bootstrap/ */(function($) { \"use strict\"; $.fn.rmarkdownStickyTabs = function() { var context = this; // Show the tab corresponding with the hash in the URL, or the first tab var showStuffFromHash = function() { var hash = window.location.hash; var selector = hash 'a[href=\"' + hash + '\"]' : 'li.active > a'; var $selector = $(selector, context); if($selector.data('toggle') === \"tab\") { $selector.tab('show'); // walk up the ancestors of this element, show any hidden tabs $selector.parents('.section.tabset').each(function(i, elm) { var link = $('a[href=\"#' + $(elm).attr('id') + '\"]'); if(link.data('toggle') === \"tab\") { link.tab(\"show\"); } }); } }; // Set the correct tab when the page loads showStuffFromHash(context); // Set the correct tab when a user uses their back/forward button $(window).on('hashchange', function() { showStuffFromHash(context); }); // Change the URL when tabs are clicked $('a', context).on('click', function(e) { history.pushState(null, null, this.href); showStuffFromHash(context); }); return this; };}(jQuery));window.buildTabsets = function(tocID) { // build a tabset from a section div with the .tabset class function buildTabset(tabset) { // check for fade and pills options var fade = tabset.hasClass(\"tabset-fade\"); var pills = tabset.hasClass(\"tabset-pills\"); var navClass = pills \"nav-pills\" : \"nav-tabs\"; // determine the heading level of the tabset and tabs var match = tabset.attr('class').match(/level(\\d) /); if (match === null) return; var tabsetLevel = Number(match[1]); var tabLevel = tabsetLevel + 1; // find all subheadings immediately below var tabs = tabset.find(\"div.section.level\" + tabLevel); if (!tabs.length) return; // create tablist and tab-content elements var tabList = $(''); $(tabs[0]).before(tabList); var tabContent = $(''); $(tabs[0]).before(tabContent); // build the tabset var activeTab = 0; tabs.each(function(i) { // get the tab div var tab = $(tabs[i]); // get the id then sanitize it for use with bootstrap tabs var id = tab.attr('id'); // see if this is marked as the active tab if (tab.hasClass('active')) activeTab = i; // remove any table of contents entries associated with // this ID (since we'll be removing the heading element) $(\"div#\" + tocID + \" li a[href='#\" + id + \"']\").parent().remove(); // sanitize the id for use with bootstrap tabs id = id.replace(/[.\\/&!#]/g, '').replace(/\\s/g, '_'); tab.attr('id', id); // get the heading element within it, grab it's text, then remove it var heading = tab.find('h' + tabLevel + ':first'); var headingText = heading.html(); heading.remove(); // build and append the tab list item var a = $('' + headingText + ''); a.attr('href', '#' + id); a.attr('aria-controls', id); var li = $(''); li.append(a); tabList.append(li); // set it's attributes tab.attr('role', 'tabpanel'); tab.addClass('tab-pane'); tab.addClass('tabbed-pane'); if (fade) tab.addClass('fade'); // move it into the tab content div tab.detach().appendTo(tabContent); }); // set active tab $(tabList.children('li')[activeTab]).addClass('active'); var active = $(tabContent.children('div.section')[activeTab]); active.addClass('active'); if (fade) active.addClass('in'); if (tabset.hasClass(\"tabset-sticky\")) tabset.rmarkdownStickyTabs(); } // convert section divs with the .tabset class to tabsets var tabsets = $(\"div.section.tabset\"); tabsets.each(function(i) { buildTabset($(tabsets[i])); });};// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see -626106786) -->// v0.0.1// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020.document.addEventListener('DOMContentLoaded', function() { const codeList = document.getElementsByClassName(\"sourceCode\"); for (var i = 0; i < codeList.length; i++) { var linkList = codeList[i].getElementsByTagName('a'); for (var j = 0; j < linkList.length; j++) { if (linkList[j].innerHTML === \"\") { linkList[j].setAttribute('aria-hidden', 'true'); } } }}); code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} code { white-space: pre; } .sourceCode { overflow: visible; }pre > code.sourceCode { white-space: pre; position: relative; }pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }pre > code.sourceCode > span:empty { height: 1.2em; }code.sourceCode > span { color: inherit; text-decoration: inherit; }div.sourceCode { margin: 1em 0; }pre.sourceCode { margin: 0; }@media screen {div.sourceCode { overflow: auto; }}@media print {pre > code.sourceCode { white-space: pre-wrap; }pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }}pre.numberSource code { counter-reset: source-line 0; }pre.numberSource code > span { position: relative; left: -4em; counter-increment: source-line; }pre.numberSource code > span > a:first-child::before { content: counter(source-line); position: relative; left: -1em; text-align: right; vertical-align: baseline; border: none; display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; padding: 0 4px; width: 4em; color: #aaaaaa; }pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }div.sourceCode { }@media screen {pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }}code span.al { color: #ff0000; font-weight: bold; } /* Alert */code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */code span.at { color: #7d9029; } /* Attribute */code span.bn { color: #40a070; } /* BaseN */code span.bu { } /* BuiltIn */code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */code span.ch { color: #4070a0; } /* Char */code span.cn { color: #880000; } /* Constant */code span.co { color: #60a0b0; font-style: italic; } /* Comment */code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */code span.do { color: #ba2121; font-style: italic; } /* Documentation */code span.dt { color: #902000; } /* DataType */code span.dv { color: #40a070; } /* DecVal */code span.er { color: #ff0000; font-weight: bold; } /* Error */code span.ex { } /* Extension */code span.fl { color: #40a070; } /* Float */code span.fu { color: #06287e; } /* Function */code span.im { } /* Import */code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */code span.kw { color: #007020; font-weight: bold; } /* Keyword */code span.op { color: #666666; } /* Operator */code span.ot { color: #007020; } /* Other */code span.pp { color: #bc7a00; } /* Preprocessor */code span.sc { color: #4070a0; } /* SpecialChar */code span.ss { color: #bb6688; } /* SpecialString */code span.st { color: #4070a0; } /* String */code span.va { color: #19177c; } /* Variable */code span.vs { color: #4070a0; } /* VerbatimString */code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */// apply pandoc div.sourceCode style to pre.sourceCode instead(function() { var sheets = document.styleSheets; for (var i = 0; i < sheets.length; i++) { if (sheets[i].ownerNode.dataset[\"origin\"] !== \"pandoc\") continue; try { var rules = sheets[i].cssRules; } catch (e) { continue; } var j = 0; while (j < rules.length) { var rule = rules[j]; // check if there is a div.sourceCode rule if (rule.type !== rule.STYLE_RULE rule.selectorText !== \"div.sourceCode\") { j++; continue; } var style = rule.style.cssText; // check if color or background-color is set if (rule.style.color === '' && rule.style.backgroundColor === '') { j++; continue; } // replace div.sourceCode by a pre.sourceCode rule sheets[i].deleteRule(j); sheets[i].insertRule('pre.sourceCode{' + style + '}', j); } }})();.main-container { max-width: 940px; margin-left: auto; margin-right: auto;}img { max-width:100%;}.tabbed-pane { padding-top: 12px;}.html-widget { margin-bottom: 20px;}button.code-folding-btn:focus { outline: none;}summary { display: list-item;}details > summary > p:only-child { display: inline;}pre code { padding: 0;}.tabset-dropdown > .nav-tabs { display: inline-table; max-height: 500px; min-height: 44px; overflow-y: auto; border: 1px solid #ddd; border-radius: 4px;}.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before { content: \"\\e259\"; font-family: 'Glyphicons Halflings'; display: inline-block; padding: 10px; border-right: 1px solid #ddd;}.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before { content: \"\\e258\"; font-family: 'Glyphicons Halflings'; border: none;}.tabset-dropdown > .nav-tabs > li.active { display: block;}.tabset-dropdown > .nav-tabs > li > a,.tabset-dropdown > .nav-tabs > li > a:focus,.tabset-dropdown > .nav-tabs > li > a:hover { border: none; display: inline-block; border-radius: 4px; background-color: transparent;}.tabset-dropdown > .nav-tabs.nav-tabs-open > li { display: block; float: none;}.tabset-dropdown > .nav-tabs > li { display: none;}#TOC { margin: 25px 0px 20px 0px;}@media (max-width: 768px) {#TOC { position: relative; width: 100%;}}@media print {.toc-content { /* see -drafts/issues/4434 */ float: right;}}.toc-content { padding-left: 30px; padding-right: 40px;}div.main-container { max-width: 1200px;}div.tocify { width: 20%; max-width: 260px; max-height: 85%;}@media (min-width: 768px) and (max-width: 991px) { div.tocify { width: 25%; }}@media (max-width: 767px) { div.tocify { width: 100%; max-width: none; }}.tocify ul, .tocify li { line-height: 20px;}.tocify-subheader .tocify-item { font-size: 0.90em;}.tocify .list-group-item { border-radius: 0px;}Importing transcript abundance with tximportMichael I. Love, Charlotte Soneson, Mark D. Robinson2022-12-16IntroductionImport and summarize transcript-level abundance estimates for transcript- and gene-level analysis with Bioconductor packages, such as edgeR, DESeq2, and limma-voom. The motivation and methods for the functions provided by the tximport package are described in the following article (Soneson, Love, and Robinson 2015): 153554b96e
https://www.sereiaacademia.com.br/forum/discussoes-gerais/n-irl-r-cs-repack-2
https://www.hkoneness.hk/forum/general-discussions/david-telugu-movie-1080p-download-torrent