|
|
/*! UIkit 1.1.0 | http://www.getuikit.com | (c) 2013 YOOtheme | MIT License */
(function(t,i){"use strict";var e=t.UIkit||{};e.fn||(e.fn=function(i,n){var s=arguments,o=i.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=o[1],r=o[2];return e[a]?this.each(function(){var i=t(this),o=i.data(a);o||i.data(a,o=new e[a](this,r?void 0:n)),r&&o[r].apply(o,Array.prototype.slice.call(s,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.support.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,e.Utils={},e.Utils.debounce=function(t,i,e){var n;return function(){var s=this,o=arguments,a=function(){n=null,e||t.apply(s,o)},r=e&&!n;clearTimeout(n),n=setTimeout(a,i),r&&t.apply(s,o)}},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(s){}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 s=Math.abs(t-i),o=Math.abs(e-n);return s>=o?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function n(){u=null,h.last&&(h.el.trigger("longTap"),h={})}function s(){u&&clearTimeout(u),u=null}function o(){a&&clearTimeout(a),r&&clearTimeout(r),l&&clearTimeout(l),u&&clearTimeout(u),a=r=l=u=null,h={}}var a,r,l,u,h={},c=750;t(document).ready(function(){var d,p;t(document.body).bind("touchstart",function(e){d=Date.now(),p=d-(h.last||d),h.el=t(i(e.originalEvent.touches[0].target)),a&&clearTimeout(a),h.x1=e.originalEvent.touches[0].pageX,h.y1=e.originalEvent.touches[0].pageY,p>0&&250>=p&&(h.isDoubleTap=!0),h.last=d,u=setTimeout(n,c)}).bind("touchmove",function(t){s(),h.x2=t.originalEvent.touches[0].pageX,h.y2=t.originalEvent.touches[0].pageY}).bind("touchend",function(){s(),h.x2&&Math.abs(h.x1-h.x2)>30||h.y2&&Math.abs(h.y1-h.y2)>30?l=setTimeout(function(){h.el.trigger("swipe"),h.el.trigger("swipe"+e(h.x1,h.x2,h.y1,h.y2)),h={}},0):"last"in h&&(r=setTimeout(function(){var i=t.Event("tap");i.cancelTouch=o,h.el.trigger(i),h.isDoubleTap?(h.el.trigger("doubleTap"),h={}):a=setTimeout(function(){a=null,h.el.trigger("singleTap"),h={}},250)},0))}).bind("touchcancel",o),t(window).bind("scroll",o)}),["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){var s=t(this);s.data("alert")||(s.data("alert",new e(s,i.Utils.options(s.data("uk-alert")))),t(n.target).is(s.data("alert").options.trigger)&&(n.preventDefault(),s.data("alert").close()))})}(jQuery,jQuery.UIkit),function(t,i){"use strict";var e=function(i,e){var n=this,s=t(i);this.options=t.extend({},this.options,e),this.element=s.on("click",this.options.target,function(i){i.preventDefault(),s.find(n.options.target).not(this).removeClass("uk-active").blur(),s.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.optio
|