mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Linkable tabs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user