A URL-driven tabbing system
by
, 05-29-2016 at 10:40 PM (11764 Views)
There are many 'tab content scripts' on the web that let you organize hidden DIV contents into a tab interface, with the desired content appearing when a tab is clicked on.
But most of the time, these scripts merely do that and nothing else. They don't add entries to the browser's history, which implies that the 'panels' are not bookmarkable / that the native browser's back/forward button does not change the state of the selected tabs. And if the scripts use the hash tag for correcting this, it doesn't always work (https://hanshillen.github.io/jqtest). And if it does work, a 'hash-script' is used (like on http://filamentgroup.github.io/Acces...pdateHash.html) that is far too complicated for the job.
I was a bit frustrated about this, so I wrote a 'tabbing system' of my own. I hope it serves its purpose. Demo and instructions here.