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 action accordingly.
Added the ability to link directly to tabs based on the hash tag. Also, the script now updates the state of the tabs when they are clicked using the History API. There is a check for support for the History API and then is utilized if supported. If there isn't support, no fall back is used.
I also made some changes to the attaching of the active tab classes. First, they were located in aria tab declarations loop and were being assigned multiple times when they only needed to be applied once. In addition, when the accordion parameter was set as closed, if you expanded out to desktop mode the content regions were all hidden. So i made sure that resp-tab-content-active and resp-accordion-closed classes were applied to either the first region or the one specified in the hash.
Added the ability to link directly to tabs based on the hash tag. Also, the script now updates the state of the tabs when they are clicked using the History API. There is a check for support for the History API and then is utilized if supported. If there isn't support, no fall back is used.
I also made some changes to the attaching of the active tab classes. First, they were located in aria tab declarations loop and were being assigned multiple times when they only needed to be applied once. In addition, when the accordion parameter was set as closed, if you expanded out to desktop mode the content regions were all hidden. So i made sure that resp-tab-content-active and resp-accordion-closed classes were applied to either the first region or the one specified in the hash.