Linkable tabs

This commit is contained in:
Jessica Lawshe 2018-09-19 17:58:07 -05:00
parent 6ad16c9406
commit bec50892de

View file

@ -0,0 +1,10 @@
script(type="text/javascript").
if (window.location.hash) {
setTimeout(function(){
tabID = window.location.hash.replace('#', '')
tab = document.getElementById(tabID)
if (tab && typeof(tab) != 'undefined' && tab != null) {
tab.setAttribute('active', true)
}
}, 500);
}