cferdinandi / tabby

Lightweight, accessible vanilla JS toggle tabs.
MIT License
599 stars 73 forks source link

Disable hash? #79

Closed jenstornell closed 7 years ago

jenstornell commented 7 years ago

I did not find how to disable using hash. Sometimes hash are good but sometimes not. I have many functions that could leave traces in the url but I prefer to keep things clean.

Is it possible in a simple way to not use hash in the url?

cferdinandi commented 7 years ago

Not supported. The hash is what powers the change, and progressively enhances what are otherwise normal anchor links.

jenstornell commented 7 years ago

As much as I like the idea of Tabby, some things did simply not work out for me like the hash problem. I decided to go for an own javascript plugin.

Tabbis was born: https://github.com/jenstornell/tabbis.js

Now why am I telling you this? Because if you are inspired by anything in Tabbis, feel free to snag ideas from it. You and Tabby have given me ideas, so I'm now offering the same thing.

screenshot

Super simple

<div data-tabs>
  <div>Tab1</div>
  <div>Tab2</div>
  <div>Tab3</div>
</div>

<div data-panes>
  <div>Pane1</div>
  <div>Pane2</div>
  <div>Pane3</div>
</div>

Thanks for the word.