docs: new site
This commit is contained in:
parent
43ccd7389d
commit
719a563feb
43 changed files with 1185 additions and 1899 deletions
9
resources/theme/scripts.js
Normal file
9
resources/theme/scripts.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var offset = 82
|
||||
function offsetScroll(){
|
||||
if (document.location.hash) {
|
||||
var el = document.getElementById(document.location.hash.substring(1))
|
||||
if (el) document.body.scrollTop = document.documentElement.scrollTop = el.offsetTop - offset
|
||||
}
|
||||
}
|
||||
window.addEventListener('hashchange', offsetScroll)
|
||||
setTimeout(offsetScroll, 250)
|
||||
Loading…
Add table
Add a link
Reference in a new issue