You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to some basic functionality and was wondering if it's possible to call tabs that are nested with anchors?
So one could call URL and change to 3rd tab of 2nd tab right away.
<linkhref="https://cdn.jsdelivr.net/gh/cferdinandi/tabby@12/dist/css/tabby-ui.css" rel="stylesheet"><scriptsrc="https://cdn.jsdelivr.net/gh/cferdinandi/tabby@12/dist/js/tabby.polyfills.js" type="text/javascript"></script><uldata-tabs><li><adata-tabby-defaulthref="#harry">Harry Potter</a></li><li><ahref="#hermione">Hermione</a></li><li><ahref="#neville">Neville</a></li></ul><divid="harry"><h2>Harry Potter</h2><p><strong>Fun Facts:</strong></p><ol><li>"The boy who lived"</li><li>Best friends with Ron and Hermione</li><li>Fails up on a regular basis</li></ol><p><ahref="https://en.wikipedia.org/wiki/Harry_Potter_(character)">More about Harry →</a></p></div><divid="hermione"><h2>Hermione</h2><ol><li>The real hero of the Harry Potter series</li><li>Underappreciated by her friends, but always saves the day</li><li>Harry somehow gets credit for her accomplishments on a regular basis</li></ol><p><ahref="https://en.wikipedia.org/wiki/Hermione_Granger">More about Hermione →</a></p><uldata-tabs><li><adata-tabby-defaulthref="#harry1">Harry Potter 1</a></li><li><ahref="#harry2">Harry Potter 2</a></li><li><ahref="#harry3">Harry Potter 3</a></li></ul><divid="harry1"><p><strong>Harry 1</strong></p><ol><li>The real hero of the Harry Potter series</li><li>Underappreciated by her friends, but always saves the day</li><li>Harry somehow gets credit for her accomplishments on a regular basis</li></ol><p><ahref="https://en.wikipedia.org/wiki/Hermione_Granger">More about Hermione →</a></p></div><divid="harry2"><p><strong>Harry 2</strong></p><ol><li>The real hero of the Harry Potter series</li><li>Underappreciated by her friends, but always saves the day</li><li>Harry somehow gets credit for her accomplishments on a regular basis</li></ol><p><ahref="https://en.wikipedia.org/wiki/Hermione_Granger">More about Hermione →</a></p></div><divid="harry3"><p><strong>Harry 3</strong></p><ol><li>The real hero of the Harry Potter series</li><li>Underappreciated by her friends, but always saves the day</li><li>Harry somehow gets credit for her accomplishments on a regular basis</li></ol><p><ahref="https://en.wikipedia.org/wiki/Hermione_Granger">More about Hermione →</a></p></div></div><divid="neville"><h2>Neville</h2><p><strong>Fun Facts:</strong></p><ol><li>The surprise hero of the last book</li><li>His life is forever intertwined with Harry's</li><li>Total badass</li></ol><p><ahref="https://www.pottermore.com/explore-the-story/neville-longbottom">More about Neville →</a></p></div><script>consttabSelectors=document.querySelectorAll('[data-tabs]');if(tabSelectors){for(const[i,tabs]of[...tabSelectors].entries()){tabs.setAttribute('data-tabs',i);newTabby(`[data-tabs="${i}"]`);}}functiontoggleTabs(sel){for([i,tabs]of[...tabSelectors].entries()){tabs=newTabby(`[data-tabs="${i}"]`);document.querySelectorAll(sel).forEach(tab=>tabs.toggle(tab));}}</script>
The text was updated successfully, but these errors were encountered:
I'm trying to some basic functionality and was wondering if it's possible to call tabs that are nested with anchors?
So one could call URL and change to 3rd tab of 2nd tab right away.
The text was updated successfully, but these errors were encountered: