DotaNoobs main site.
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.

2 lines
24 KiB

  1. /*! UIkit 1.0.1 | http://www.getuikit.com | (c) 2013 YOOtheme | MIT License */
  2. (function(t,i){"use strict";var e=t.UIkit||{};e.fn||(e.fn=function(i,n){var o=arguments,s=i.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=s[1],r=s[2];return e[a]?this.each(function(){var i=t(this),s=i.data(a);s||i.data(a,s=new e[a](this,r?void 0:n)),r&&s[r].apply(s,Array.prototype.slice.call(o,1))}):(t.error("UIkit component ["+a+"] does not exist."),this)},e.support={},e.support.transition=function(){var t=function(){var t,e=i.body||i.documentElement,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return n[t]}();return t&&{end:t}}(),e.Utils={},e.Utils.debounce=function(t,i,e){var n;return function(){var o=this,s=arguments,a=function(){n=null,e||t.apply(o,s)},r=e&&!n;clearTimeout(n),n=setTimeout(a,i),r&&t.apply(o,s)}},e.Utils.options=function(i){if(t.isPlainObject(i))return i;var e=i.indexOf("{"),n={};if(-1!=e)try{n=Function("","var json = "+i.substr(e)+"; return JSON.parse(JSON.stringify(json));")()}catch(o){}return n},t.UIkit=e,t.fn.uk=e.fn,t.UIkit.langdirection="rtl"==t("html").attr("dir")?"right":"left")})(jQuery,document),function(t){function i(t){return"tagName"in t?t:t.parentNode}function e(t,i,e,n){var o=Math.abs(t-i),s=Math.abs(e-n);return o>=s?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function n(){u=null,c.last&&(c.el.trigger("longTap"),c={})}function o(){u&&clearTimeout(u),u=null}function s(){a&&clearTimeout(a),r&&clearTimeout(r),l&&clearTimeout(l),u&&clearTimeout(u),a=r=l=u=null,c={}}var a,r,l,u,c={},h=750;t(document).ready(function(){var d,p;t(document.body).bind("touchstart",function(e){d=Date.now(),p=d-(c.last||d),c.el=t(i(e.originalEvent.touches[0].target)),a&&clearTimeout(a),c.x1=e.originalEvent.touches[0].pageX,c.y1=e.originalEvent.touches[0].pageY,p>0&&250>=p&&(c.isDoubleTap=!0),c.last=d,u=setTimeout(n,h)}).bind("touchmove",function(t){o(),c.x2=t.originalEvent.touches[0].pageX,c.y2=t.originalEvent.touches[0].pageY}).bind("touchend",function(){o(),c.x2&&Math.abs(c.x1-c.x2)>30||c.y2&&Math.abs(c.y1-c.y2)>30?l=setTimeout(function(){c.el.trigger("swipe"),c.el.trigger("swipe"+e(c.x1,c.x2,c.y1,c.y2)),c={}},0):"last"in c&&(r=setTimeout(function(){var i=t.Event("tap");i.cancelTouch=s,c.el.trigger(i),c.isDoubleTap?(c.el.trigger("doubleTap"),c={}):a=setTimeout(function(){a=null,c.el.trigger("singleTap"),c={}},250)},0))}).bind("touchcancel",s),t(window).bind("scroll",s)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(i){t.fn[i]=function(t){return this.bind(i,t)}})}(jQuery),function(t,i){"use strict";var e=function(i,e){var n=this;this.options=t.extend({},this.options,e),this.element=t(i).on("click",this.options.trigger,function(t){t.preventDefault(),n.close()})};t.extend(e.prototype,{options:{fade:!0,duration:200,trigger:".uk-alert-close"},close:function(){function t(){i.trigger("closed").remove()}var i=this.element.trigger("close");this.options.fade?i.css("overflow","hidden").css("max-height",i.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,t):t()}}),i.alert=e,t(document).on("click.alert.uikit","[data-uk-alert]",function(n){n.preventDefault();var o=t(this);o.data("alert")||(o.data("alert",new e(o,i.Utils.options(o.data("uk-alert")))),t(n.target).is(o.data("alert").options.trigger)&&o.data("alert").close())})}(jQuery,jQuery.UIkit),function(t,i){"use strict";var e=function(i,e){var n=this,o=t(i);this.options=t.extend({},this.options,e),this.element=o.on("click",this.options.target,function(i){i.preventDefault(),o.find(n.options.target).not(this).removeClass("uk-active").blur(),o.trigger("change",[t(this).addClass("uk-active")])})};t.extend(e.prototype,{options:{target:".uk-button"},getSelected:function(){this.element.find(".uk-active")}});var n=function(i,e){var n=t(i);this.options=t.extend({},this.options,e),this.element=n.on("click",this.options.target,function(i){i.preventDefault(),n.trigger("change",[t(this).toggleClass("uk-active").blur()])})};