mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
28 KiB
14 lines
28 KiB
9 years ago
|
/**!
|
||
|
* MixItUp v2.1.11
|
||
|
*
|
||
|
* @copyright Copyright 2015 KunkaLabs Limited.
|
||
|
* @author KunkaLabs Limited.
|
||
|
* @link https://mixitup.kunkalabs.com
|
||
|
*
|
||
|
* @license Commercial use requires a commercial license.
|
||
|
* https://mixitup.kunkalabs.com/licenses/
|
||
|
*
|
||
|
* Non-commercial use permitted under terms of CC-BY-NC license.
|
||
|
* http://creativecommons.org/licenses/by-nc/3.0/
|
||
|
*/
|
||
9 years ago
|
(function(n,t){"use strict";n.MixItUp=function(){var t=this;t._execAction("_constructor",0);n.extend(t,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:!0,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:!0,queueLimit:1,animateChangeLayout:!1,animateResizeContainer:!0,animateResizeTargets:!1,staggerSequence:!1,reverseOut:!1},callbacks:{onMixLoad:!1,onMixStart:!1,onMixBusy:!1,onMixEnd:!1,onMixFail:!1,_user:!1},controls:{enable:!0,live:!1,toggleFilterButtons:!1,toggleLogic:"or",activeClass:"active"},layout:{display:"inline-block",containerClass:"",containerClassFail:"fail"},load:{filter:"all",sort:!1},_$body:null,_$container:null,_$targets:null,_$parent:null,_$sortButtons:null,_$filterButtons:null,_suckMode:!1,_mixing:!1,_sorting:!1,_clicking:!1,_loading:!0,_changingLayout:!1,_changingClass:!1,_changingDisplay:!1,_origOrder:[],_startOrder:[],_newOrder:[],_activeFilter:null,_toggleArray:[],_toggleString:"",_activeSort:"default:asc",_newSort:null,_startHeight:null,_newHeight:null,_incPadding:!0,_newDisplay:null,_newClass:null,_targetsBound:0,_targetsDone:0,_queue:[],_$show:n(),_$hide:n()});t._execAction("_constructor",1)};n.MixItUp.prototype={constructor:n.MixItUp,_instances:{},_handled:{_filter:{},_sort:{}},_bound:{_filter:{},_sort:{}},_actions:{},_filters:{},extend:function(t){for(var i in t)n.MixItUp.prototype[i]=t[i]},addAction:function(t,i,r,u){n.MixItUp.prototype._addHook("_actions",t,i,r,u)},addFilter:function(t,i,r,u){n.MixItUp.prototype._addHook("_filters",t,i,r,u)},_addHook:function(t,i,r,u,f){var o=n.MixItUp.prototype[t],e={};f=f===1||f==="post"?"post":"pre";e[i]={};e[i][f]={};e[i][f][r]=u;n.extend(!0,o,e)},_init:function(t,i){var r=this,u;if(r._execAction("_init",0,arguments),i&&n.extend(!0,r,i),r._$body=n("body"),r._domNode=t,r._$container=n(t),r._$container.addClass(r.layout.containerClass),r._id=t.id,r._platformDetect(),r._brake=r._getPrefixedCSS("transition","none"),r._refresh(!0),r._$parent=r._$targets.parent().length?r._$targets.parent():r._$container,r.load.sort&&(r._newSort=r._parseSort(r.load.sort),r._newSortString=r.load.sort,r._activeSort=r.load.sort,r._sort(),r._printSort()),r._activeFilter=r.load.filter==="all"?r.selectors.target:r.load.filter==="none"?"":r.load.filter,r.controls.enable&&r._bindHandlers(),r.controls.toggleFilterButtons)for(r._buildToggleArray(),u=0;u<r._toggleArray.length;u++)r._updateControls({filter:r._toggleArray[u],sort:r._activeSort},!0);else r.controls.enable&&r._updateControls({filter:r._activeFilter,sort:r._activeSort});r._filter();r._init=!0;r._$container.data("mixItUp",r);r._execAction("_init",1,arguments);r._buildState();r._$targets.css(r._brake);r._goMix(r.animation.enable)},_platformDetect:function(){var n=this,i=["Webkit","Moz","O","ms"],u=["webkit","moz"],f=window.navigator.appVersion.match(/Chrome\/(\d+)\./)||!1,o=typeof InstallTrigger!="undefined",s=function(n){for(var t=0;t<i.length;t++)if(i[t]+"Transition"in n.style)return{prefix:"-"+i[t].toLowerCase()+"-",vendor:i[t]};return"transition"in n.style?"":!1},e=s(n._domNode),r;for(n._execAction("_platformDetect",0),n._chrome=f?parseInt(f[1],10):!1,n._ff=o?parseInt(window.navigator.userAgent.match(/rv:([^)]+)\)/)[1]):!1,n._prefix=e.prefix,n._vendor=e.vendor,n._suckMode=window.atob&&n._prefix?!1:!0,n._suckMode&&(n.animation.enable=!1),n._ff&&n._ff<=4&&(n.animation.enable=!1),r=0;r<u.length&&!window.requestAnimationFrame;r++)window.requestAnimationFrame=window[u[r]+"RequestAnimationFrame"];typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=typeof"test".__proto__=="object"?function(n){return n.__proto__}:function(n){return n.constructor.prototype});n._domNode.nextElementSibling===t&&Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var n=this.nextSibling;n;){if(n.nodeType===1)return n;n=n.nextSibling}return null}});n._execAction("_platformDetect",1)},_refresh:function(n,i){var r=this,e,h,f,u;for(r._execAction("_refresh",0,arguments),r._$targets=r._$container.find(r.selectors.target),f=0;f<r._$t
|