/*! UIkit 2.27.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; UI.component('tab', { defaults: { target : '>li:not(.uk-tab-responsive, .uk-disabled)', connect : false, active : 0, animation : false, duration : 200, swiping : true }, boot: function() { // init code UI.ready(function(context) { UI.$("[data-uk-tab]", context).each(function() { var tab = UI.$(this); if (!tab.data("tab")) { var obj = UI.tab(tab, UI.Utils.options(tab.attr("data-uk-tab"))); } }); }); }, init: function() { var $this = this; this.current = false; this.on("click.uk.tab", this.options.target, function(e) { e.preventDefault(); if ($this.switcher && $this.switcher.animating) { return; } var current = $this.find($this.options.target).not(this); current.removeClass("uk-active").blur(); $this.trigger("change.uk.tab", [UI.$(this).addClass("uk-active"), $this.current]); $this.current = UI.$(this); // Update ARIA if (!$this.options.connect) { current.attr('aria-expanded', 'false'); UI.$(this).attr('aria-expanded', 'true'); } }); if (this.options.connect) { this.connect = UI.$(this.options.connect); } // init responsive tab this.responsivetab = UI.$('