/** * Tabs - jQuery plugin for accessible, unobtrusive tabs * @requires jQuery v1.1.1 * * http://stilbuero.de/tabs/ * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Version: 2.7.4 */ (function($) { // block scope $.extend({ tabs: { remoteCount: 0 // TODO in Tabs 3 this is going to be more cleanly in one single namespace } }); /** * Create an accessible, unobtrusive tab interface based on a particular HTML structure. * * The underlying HTML has to look like this: * *
* * Each anchor in the unordered list points directly to a section below represented by one of the * divs (the URI in the anchor's href attribute refers to the fragment with the corresponding id). * Because such HTML structure is fully functional on its own, e.g. without JavaScript, the tab * interface is accessible and unobtrusive. * * A tab is also bookmarkable via hash in the URL. Use the History/Remote plugin (Tabs will * auto-detect its presence) to fix the back (and forward) button. * * @example $('#container').tabs(); * @desc Create a basic tab interface. * @example $('#container').tabs(2); * @desc Create a basic tab interface with the second tab initially activated. * @example $('#container').tabs({disabled: [3, 4]}); * @desc Create a tab interface with the third and fourth tab being disabled. * @example $('#container').tabs({fxSlide: true}); * @desc Create a tab interface that uses slide down/up animations for showing/hiding tab * content upon tab switching. * * @param Number initial An integer specifying the position of the tab (no zero-based index) that * gets activated at first (on page load). Two alternative ways to specify * the active tab will overrule this argument. First a li element * (representing one single tab) belonging to the selected tab class, e.g. * set the selected tab class (default: "tabs-selected", see option * selectedClass) for one of the unordered li elements in the HTML source. * In addition if a fragment identifier/hash in the URL of the page refers * to the id of a tab container of a tab interface the corresponding tab will * be activated and both the initial argument as well as an eventually * declared class attribute will be overruled. Defaults to 1 if omitted. * @param Object settings An object literal containing key/value pairs to provide optional settings. * @option Array