docs: update discourse logo && script
This commit is contained in:
parent
ff05b0f74c
commit
8e67a5bb05
2 changed files with 17 additions and 0 deletions
17
resources/docs/extra/scripts.js
Normal file
17
resources/docs/extra/scripts.js
Normal 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 |
Loading…
Add table
Add a link
Reference in a new issue