- Switched to `hashchange` listening instead of delegation
We still check that the given hash exists as a `href` within a valid
Skeleton tabs markup, but you can now send links around that focus
on tabs.
As an example, if I tweet out mypage.com/#activetab, it will check that
`#activetab` is a valid href in an anchor within an `<ul class="tabs">`
element, and if so, make that tab active.
- In addition, you can have multiple anchors in the page that
trigger tabs by simply setting the appropriate `href`.
- Leverage `closest` and `find` instead of `parent`, `siblings` and
`children` (code simplification).
If this is not done, then the active class remains on the tab that was initially visible on page load - even if this tab is now hidden and no longer active. This is confusing when trying to target CSS as a the selector "ul.tabs-content > li.active" , may not be visible.
Also removed unused tabsContent variable.