samsono/Easy-Responsive-Tabs-to-Accordion — pull request #17 by iwsscode (2013-11-06 20:05:51+00:00)
Title: Hash improvements

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.