scale=1),n.threeD?r="translate3d("+e.x+"px, "+e.y+"px, 0) scale3d("+e.scale+", "+e.scale+", 1)":r="translate("+e.x+"px, "+e.y+"px) scale("+e.scale+", "+e.scale+")",e.x!==undefined&&n.setPrefixedCss(e.$this,"transform",r),e.opacity!==undefined&&n.useTransition&&e.$this.css("opacity",e.opacity),n.useTransition?e.$this.one(n.transitionend,i):i();else{var s={left:e.x,top:e.y,opacity:e.opacity};n.useTransition?e.$this.stop(!0,!0).animate(s,n.speed,"swing",i):(e.$this.css(s),i())}},_processStyleQueue:function(){var e=this,n=e.styleQueue;t.each(n,function(t,n){n.skipTransition?e._skipTransition(n.$this[0],function(){e.transition(n)}):e.transition(n)}),e.styleQueue.length=0},shrinkEnd:function(){this.fire("shrunk")},filterEnd:function(){this.fire("filtered")},sortEnd:function(){this.fire("sorted")},_skipTransition:function(e,n,r){var i=this,s,o=i.transitionDuration,u=e.style[o];e.style[o]="0ms",t.isFunction(n)?n():e.style[n]=r,s=e.offsetWidth,e.style[o]=u},_addItems:function(e,t,n){var r=this,i,s;r.supported||(t=!1),e.addClass("shuffle-item"),r._initItems(undefined,e),r.$items=r._getItems(),e.not(i).css("opacity",0),i=r.filter(undefined,e),s=i.get(),r._updateItemCount(),t?(r._layout(s,null,!0,!0),n&&r._setSequentialDelay(i),r._revealAppended(i)):r._layout(s)},_revealAppended:function(e){var n=this;setTimeout(function(){e.each(function(e,r){n.transition({from:"reveal",$this:t(r),opacity:1})})},n.revealAppendedDelay)},shuffle:function(e,t){var n=this;if(!n.enabled)return;e||(e="all"),n.filter(e),n.lastFilter=e,n._updateItemCount(),n._resetCols(),n.shrink(),t&&(n.lastSort=t),n._reLayout()},sort:function(e,t,n){var r=this,i=r.$items.filter(".filtered").sorted(e);t||r._resetCols(),r._layout(i,function(){t&&r.filterEnd(),r.sortEnd()},n),r.lastSort=e},resized:function(e){this.enabled&&(e||this._setColumns(),this._reLayout())},layout:function(){this.update(!0)},update:function(e){this.resized(e)},appended:function(e,t,n){t=t===!1?!1:!0,n=n===!1?!1:!0,this._addItems(e,t,n)},disable:function(){this.enabled=!1},enable:function(e){this.enabled=!0,e!==!1&&this.update()},showMore:function(e){var t=this;t.pageSize=e;var n=t.$items.css("transition");t.$items.css("transition","none"),t.update(),setTimeout(function(){t.$items.css("transition",n)},500)},isEndOfList:function(){var e=this;return e.$items.filter(".filtered").get().length<=e.pageSize},remove:function(e){if(!e.length||!e.jquery)return;var t=this,n=function(){var t=this;e.remove(),e=null,setTimeout(function(){t.$items=t._getItems(),t.layout(),t._updateItemCount(),t.fire("removed",[e,t])},0)};t.shrink(e,n),t._processStyleQueue()},destroy:function(){var e=this;e.$window.off("."+e.unique),e.$container.removeClass("shuffle").removeAttr("style").removeData("shuffle"),e.$items.removeAttr("style").removeClass("concealed filtered shuffle-item"),e.destroyed=!0}},t.fn.shuffle=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this),s=i.data("shuffle");s||(s=new r(i,e),i.data("shuffle",s));if(t.isFunction(e))s.shuffle.apply(s,n);else if(typeof e=="string")switch(e){case"sort":case"destroy":case"update":case"appended":case"enable":case"disable":case"layout":case"remove":s[e].apply(s,n);break;default:s.shuffle(e)}})},t.fn.shuffle.options={group:"all",speed:400,easing:"ease-out",itemSelector:"",gutterWidth:0,columnWidth:0,showInitialTransition:!0,delimeter:null,buffer:0,throttle:t.debounce||null,throttleTime:300,keepSorted:!0,hideLayoutWithFade:!1,sequentialFadeDelay:150,useTransition:!0,supported:n.csstransforms&&n.csstransitions,pageSize:0},t.fn.shuffle.settings={itemCss:{position:"absolute",top:0,left:0},revealAppendedDelay:300,enabled:!0,destroyed:!1,styleQueue:[],prefixed:n.prefixed,threeD:n.csstransforms3d}}),define("secondary/jquery.simplescroll",["require","jquery"],function(e){var t=e("jquery"),n=null,r=function(e,n){var r=this;t.extend(r,t.simplescroll.options,e),r.$window=t(window),r.lastTargetOffset=0,r.animating=!1,r._init(n)};r.prototype={_init:function(e){var r=this,i=t.isFunction(r.target)?r.target():r.target,s=i.jquery?"#"+i.attr("id"):i.replace(/.*(?=#[^\s]*$)/,""),o=i.jquery?i:t(s),u=0;if(!o.length)return;typeof e=="function"&&(r.callback=e),r.showHash&&r._showHash(s,o),r.lastTargetOffset=u=r._getTargetOffset(),r._animate(u,r.speed,r.easing,r.callback);var a=function(){clearTimeout(n),n=setTimeout(t.proxy(r._followThrough,r),r.speed)};r.followthrough==1&&r.followthroughEventName.length>0&&r.followthroughSelector.length>0&&t(r.followthroughSelector).on(r.followthroughEventName,a)},_followThrough:function(){var e=this,t=e._getTargetOffset();e.lastTargetOffset!=t&&(e._animate(t,e.speed,e.easing,e.callback),e.lastTargetOffset=t)},_getTargetOffset:function(){var e=this,n=t.isFunction(e.target)?e.target():e.target,r=n.jquery?"#"+n.attr("id"):n.replace(/.*(?=#[^\s]*$)/,""),i=n.jquery?n:t(r),s=i.length?i.offset().top-e.offset:0,o=t(document).height(),u=e.$window.height();return o-s<u&&(s-=u-(o-s)),s=Math.ceil(s),s},_animate:function(e,r,i,s){var o=this,u=!1;o.animating=!0,t("html,body").animate({scrollTop:e},{duration:r,easing:i,progress:function(){clearTimeout(n)},complete:function(e){u||(s.call(this,e),o.animating=!1),u=!0}})},_showHash:function(e,n){var r=this,i;e=e.replace(/^#/,""),n.length&&(n.attr("id",""),i=t("<div/>").css({position:"absolute",visibility:"hidden",top:r.$window.scrollTop()+"px"}).attr("id",e)[0],document.body.appendChild(i)),window.location.hash=e,n.length&&(document.body.removeChild(i),n.attr("id",e))}},t.simplescroll=function(e,t){return new r(e,t)},t.simplescroll.initial=function(e,n){window.location.hash&&window.location.hash.indexOf("/")<0&&(e=t.extend(e,{target:window.location.hash}),t.simplescroll(e,n))},t.fn.simplescroll=function(e,n){return this.each(function(){t(this).on("click.simplescroll",function(r){r.preventDefault();var i=t.extend({},e);i.target=t.isFunction(i.target)?i.target.call(this):this.getAttribute("href"),i.offset=t.isFunction(i.offset)?i.offset.call(this):i.offset||0,t.simplescroll(i,n)})})},t.simplescroll.options={target:"body",speed:400,easing:t.easing.easeOutQuad?"easeOutQuad":"swing",showHash:!1,callback:t.
Back to home |
File page
Subscribe |
Register |
Login
| N