docs: update discourse logo && script

This commit is contained in:
bordun 2020-04-08 16:16:49 +02:00
parent ff05b0f74c
commit 8e67a5bb05
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,17 @@
document.addEventListener('DOMContentLoaded', ()=>{
if (window.location.hash) {
// show target in tabs/details
document.querySelectorAll('[id='+window.location.hash.split("#")[1]+']').forEach(function(item){
var tab = item.closest('.tabbed-content'),
details = item.closest('details')
if (tab) tab.previousSibling.click()
if (item) {
item.scrollIntoView()
document.documentElement.scrollTop -= 70
}
})
}
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Before After
Before After