Easy responsive tabs - is a lightweight jQuery plugin which optimizes normal horizontal or vertical tabs to accordion on multi devices

Overview

Easy Responsive Tabs to Accordion

Easy responsive tabs - is a lightweight jQuery plugin which optimizes normal horizontal or vertical tabs to accordion on multi devices like: web, tablets, Mobile (IPad & IPhone). This plugin adapts the screen size and changes its form accordingly.

Features

  • Horizontal / Vertical Tabs to Accordion
  • Tabs and accordion are created entirely with jQuery
  • Supports multiple sets of tabs on same page
  • Cross browser compatibility (IE7+, Chrome, Firefox, Safari and Opera)
  • Multi device support (Web, Tablets & Mobile)
  • Link directly to specified tab (works with multiple instances)
  • Maintains state of tabs when navigating away from page and then returning using back or forward (if browser supports the History API)
  • Nested tabs

Demo

http://webthemez.com/demo/easy-responsive-tabs/Index.html

How to use

=> Included jQuery file (minimum jQuery-1.5.1.min.js) => Included easyResponsiveTabs.js => Include responsive-tabs.css => Here is the Markup for Tabs structure (non nested tabs):

  • ....
  • ....
  • ....
.......
.......
.......
">
    
  
  • ....
  • ....
  • ....
.......
.......
.......

=> Here is the Markup for Tabs structure (nested tabs):

  • ....
  • ....
  • ....

  • ....
  • ....
  • ....
.......
.......
.......

.......
.......
">
    
  
  • ....
  • ....
  • ....

  • ....
  • ....
  • ....
.......
.......
.......

.......
.......

=> Call the easyResponsiveTabs function:

    $('#demoTab').easyResponsiveTabs();

=> With optional parameters:

    $("#demoTab").easyResponsiveTabs({
    type: 'default', //Types: default, vertical, accordion           
    width: 'auto', //auto or any custom width
    fit: true,   // 100% fits in a container
    closed: false, // Close the panels on start, the options 'accordion' and 'tabs' keep them closed in there respective view types
    activate: function() {},  // Callback function, gets called if tab is switched
    tabidentify: 'tab_identifier_child', // The tab groups identifier *This should be a unique name for each tab group and should not be defined in any styling or css file.
    activetab_bg: '#B5AC5F', // background color for active tabs in this group
    inactive_bg: '#E0D78C', // background color for inactive tabs in this group
    active_border_color: '#9C905C', // border color for active tabs heads in this group
    active_content_border_color: '#9C905C' // border color for active tabs contect in this group so that it matches the tab head border
});

=> Linking to Tabs:

    http://yoursite.com/tabs.html#{TAB ID}{TAB NUM}
    http://yoursite.com/tabs.html#demoTab2

    Multiple Instances:
    http://yoursite.com/tabs.html#{TAB ID 1}{TAB NUM}|{TAB ID 2}{TAB NUM}
    http://yoursite.com/tabs.html#demoTab2|demoTwo3

For any support

Samson Email: [email protected]

Comments
  • Linking to tabs doesn't work when linking to a tab like an in-page anchor

    Linking to tabs doesn't work when linking to a tab like an in-page anchor

    Linking to tabs works great if the link is one on page (say test.shtml) and the tab is on another page (say index.shtml).

    If I am on index.shtml and I have text on tab 1 that links to tab 2 (also on the index page), how do I do that?

    Upon implementing the new instructions, the URL changes to the appropriate tab but the content on the page doesn't switch to the new tab.

    Thanks!

    opened by izziebee 7
  • Nested tabs?

    Nested tabs?

    Hello. I would very much like to nest the vertical tabs within the horizontal ones. For example, I'd like to have a row of 6 horizontal tabs, and inside each of those would like a column of 8 vertical tabs. Can you think of an easy way to do this? I've tried it myself but haven't had any luck.

    Thanks.

    opened by Fatbat 6
  • Linking to Tabs - I Can't make it work

    Linking to Tabs - I Can't make it work

    Hi @samsono,

    First of all, thank you so much for such a great plugin.

    I am following your instructions but I must be doing something wrong.

    I was wondering if you could possibly include an a couple of links-to-tabs in the index.html so they can serve as examples.

    Thanks.

    Best Regards

    opened by diegocanal 3
  • Set Default Tab

    Set Default Tab

    I have a tabs that are dynamically loaded and I want to set one of them as the default one.

    I added class="resp-tab-active" to the list item to be opened by default. However, this didn't work. I tried putting the item at the beginning of the list which works only if there are more than 1 items in the list.

    opened by Reem-Alatrash 3
  • Converted CSS to Sass/SCSS

    Converted CSS to Sass/SCSS

    Converted CSS to Sass/SCSS for easier import into Sass projects, abstraction for easier theming, configuration for usage variation. Cleaned up repetitive/loose styles. Moved body styles to demo index styles. Configurable sass to turn on/off horiztontal/vertical/accordion styles.

    opened by bubbleheadinc 3
  • Linking from another page, tab open

    Linking from another page, tab open

    I think this is related to the "Open a specific tab using a link" issue that is already closed...

    I have some navigation items on the homepage of a site. Each item (or Problem) links to a specific tab (or Solution) within a single Solutions page. Each tab is a solution to a different problem.

    How can I do this so that when a Problem link is clicked the corresponding Solution tab is open when the page loads?

    I am somewhat familiar with jQuery but I am by no means an expert. The answer to the previous issue similar to mine did not resolve my problem. Thanks for your help. These tabs are great!

    opened by chipgrafx 3
  • Get rid of styling the body tag

    Get rid of styling the body tag

    In css/easy-responsive-tabs.css the body tag gets styled with a background and font-family. This breaks styling in (for example) my admin theme on certain pages. I suggest removing this body styling.

    opened by KoenPasman 1
  • Keep tabs closed on accordion mode only?

    Keep tabs closed on accordion mode only?

    Hi! I'm looking for a way to keep all tabs closed on load but in accordion mode only. Horzontal mode must stay open on load. Any help will be much apreciate. Thank's.

    opened by dragoeco 1
  • Linking to Tabs: Use Tab Name istead of Number

    Linking to Tabs: Use Tab Name istead of Number

    Would it be possible to extend the plugin, so that it is possible to link directly to a content with using the title for the anchor link instead of the number?

    Example Three Tabs with the names: Cars, Bikes, Planes If I Like to link to Bikes I would use http://yoursite.com/tabs.html#{TAB ID}2

    I think the plugin would be more flexible and SEO friendly if it would be possilbe to link to http://yoursite.com/tabs.html#Bikes instead.

    Do you think this is possible?

    opened by holzhannes 1
  • Enable link to tab

    Enable link to tab

    Is it possible to add such a function would be handy sometimes necessary to activate the table by number or ID example: a href='tabs.html#2"> open second tab

    opened by zavrus 1
  • Remember last tab via updating URL hash

    Remember last tab via updating URL hash

    I think you got something nice here. It would be really cool to be able to remember the last tab you were on by updating the URL hash when you click on a tab. Maybe even being able to update a hidden field with the hash as well so you can stay on that tab when you submit a form. Keep up the good work!

    opened by its-sean 1
  • why my console on Chrome got error

    why my console on Chrome got error

    Uncaught TypeError: $(...).tooltip is not a function at HTMLDocument. (main.js:117) at j (jquery-2.1.4.min.js:2) at Object.fireWith [as resolveWith] (jquery-2.1.4.min.js:2) at Function.ready (jquery-2.1.4.min.js:2) at HTMLDocument.I (jquery-2.1.4.min.js:2) listingKod:242 Uncaught TypeError: $(...).easyResponsiveTabs is not a function at HTMLDocument. (listingKod:242) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2)

    opened by qilamira 0
  • Active accordion bug on window resize

    Active accordion bug on window resize

    If you close opened accordion and then resize window, the last active accordion will be opened again and if you try to close it, it will close and then opens. This happens becouse the author remove attribute from tabs on line 217 $respTabs.find('.resp-accordion-closed').removeAttr('style');

    To fix this all you have to do is to check window width, if it's more than the brakpoint when tabs becomes accrodion. in my case this breakpoint eqauls to 767px, so i check it like this $(window).on('resize', function () { if ( $(window).width() > 767 ) { $respTabs.find('.resp-accordion-closed').removeAttr('style'); } });

    opened by maximQa-kgd 0
  • Please split 'body' on first line

    Please split 'body' on first line

    on CSS, i see this code

    body { margin: 0px; padding: 0px; background: #f5f5f5; font-family: 'Segoe UI'; }

    i think, this code if for general style, so not included on this plugin i'm advice to split it to other css file

    opened by agussuhartono 0
  • Link to an external URL

    Link to an external URL

    Is there a way to link a chosen tab to an external link instead of one of the tabs? I have a set of tab links which work well but now my client want to link one of those tabs directly to a URL instead of showing the content within a tabbed panel.

    So, something like this:

    <ul class="resp-tabs-list">
        <li>Link One</li>
        <li>Link Two</li>
         <li><a href="https://www.google.com/" target="_blank">Link Three</a></li>
        <li>Link Four</li>
      </ul>
    

    If I take out the <li> wrapping the external link it works, however, on mobile it does not show on the accordion.

    opened by moonshark 0
Releases(1.2.2)
Owner
Samson Onna
Samson Onna
jQuery Plugin for Ticker, News Ticker with Vertical, Horizontal, Marquee and Typewriting effects

AcmeTicker - News Ticker A very lightweight jQuery plugin for creating advanced news ticker. Demo: Gutentor News Ticker Ticker Type Vertical Horizonta

Santosh Kunwar 11 Sep 3, 2022
Horizontal Timeline 2.0, a fully customisable jQuery plugin to create a dynamic timeline on the horizontal axis.

Horizontal Timeline 2.0 by yCodeTech Twitter @yCodeTech Current Version: 2.0.5.3 Quick Links: Setup | Options | Autoplay | Known Issues | Known Issues

Stu 18 May 29, 2022
Accordion Slider is a jQuery plugin that combines the functionality of a slider with that of an accordion.

Accordion Slider - jQuery slider plugin A responsive and touch-enabled jQuery accordion slider plugin that combines the functionality of a slider with

null 0 Dec 29, 2022
Responsive tabs-to-accordion script without jQuery, written using pure JavaScript

vanilla-tabs Responsive tabs-to-accordion script without jQuery, written using pure JavaScript Author Dmytro Kudleichuk LinkedIn GitHub Online Demo Se

Dmitriy Kudleichuk 7 Dec 20, 2022
Responsive Tabs is a jQuery plugin that provides responsive tab functionality.

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.

Jelle Kralt 537 Dec 8, 2022
LiveTabs is a Javascript library that allows you to create and manage tabs on the fly. This library gives the ability to your application to act like browser tabs, making dynamic tabs.

LiveTabs Table of content Description Goals Technologies Setup Description LiveTabs is a Javascript library that allows you to create and manage tabs

Hossein Khalili 3 May 3, 2022
High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.

lazysizes lazysizes is a fast (jank-free), SEO-friendly and self-initializing lazyloader for images (including responsive images picture/srcset), ifra

Alexander Farkas 16.6k Jan 1, 2023
jQuery plugin to show a tabs bar for navigation. The tabs can be defined once, and shared across multiple HTML pages.

jquery.simpletabs v1.2.3 The jquery.simpletabs plugin shows a tabs bar for navigation. The tabs can be defined once, and shared across multiple HTML p

Peter Thoeny 1 Feb 23, 2022
Simple and lightweight vertical 3-dot context menu

3-dot Context Menu Thanks for taking a look at our 3-dot context menu for web development. The 3-dot context menu allows a simple and lightweight impl

Boardies IT Solutions 3 Nov 6, 2022
You can easily create the horizontal timeline with two types by using this jQuery plugin.

jQuery.Timeline V2 You are able to easily create two types of horizontal timeline with this jQuery plugin. Report bug · Request feature · Blog Table o

ka2 222 Dec 9, 2022
Just a jQuery accordion plugin

BeefUp Just a jQuery accordion plugin https://schascha.github.io/BeefUp/ Examples: Toggle buttons Hashchange CSS animations Self block Installation Yo

Sascha Künstler 44 Jul 6, 2022
jQuery plugin that combines the functionality of a grid with that of an accordion.

Grid Accordion - jQuery plugin A responsive and touch-enabled jQuery grid accordion plugin that combines the functionality of a grid with that of an a

null 1 Dec 16, 2022
A JavaScript lib with more functions for the normal Date class.

A JavaScript lib with more functions for the normal Date class.

Ícaro Gabriel 4 Jan 26, 2022
CodeTogether is a platform that aims to bring all the developers and coders together to appreciate collaborative coding by resolving issues faced by programmers on normal IDEs/platforms

CodeTogether is a platform that aims to bring all the developers and coders together to appreciate collaborative coding by resolving issues faced by programmers on normal IDEs/platforms. It allows developers to communicate with their fellow developers or collaborators through online voice call and realtime chat. Besides, the whiteboard makes the framing of an algorithm easier by helping programmers working collaboratively to discuss and plan their approach together

Shayan Debroy 5 Jan 20, 2022
Story Show Gallery - JS & React - minimalist, vertical photo gallery, mobile friendly

Vertical photo gallery optimized for smartphones (notch area included). SSG will support your brand and marketing. Optimally placed captions, full screen lightbox, no ugly arrows

Roman Flössler 21 Oct 4, 2022
A jQuery Single/Multi Select plugin which can be used on almost any device

jquery.sumoselect jquery.sumoselect.js - A beautiful cross device Single/Multi Select jQuery Select plugin. A jQuery plugin that progressively enhance

Hemant Negi 537 Dec 7, 2022
Lightweight plugin for easy responsive images replacement

Responsive image replacement Check out the example here. resonsive-img.js is a lightweight plugin for fast, clean and easy responsive image replacemen

Koen Vendrik 315 Sep 20, 2022
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.

Sortable Sortable is a JavaScript library for reorderable drag-and-drop lists. Demo: http://sortablejs.github.io/Sortable/ Features Supports touch dev

SortableJS 26.1k Jan 5, 2023