mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-01 22:44:05 +00:00
deploy: 7722748432
This commit is contained in:
parent
38955e92a5
commit
015688cbdd
355 changed files with 7887 additions and 7885 deletions
js
14
js/theme.js
14
js/theme.js
|
@ -803,12 +803,14 @@ function scrollToFragment() {
|
|||
return;
|
||||
}
|
||||
window.setTimeout(function(){
|
||||
var e = document.querySelector( window.location.hash );
|
||||
if( e && e.scrollIntoView ){
|
||||
e.scrollIntoView({
|
||||
block: 'start',
|
||||
});
|
||||
}
|
||||
try{
|
||||
var e = document.querySelector( window.location.hash );
|
||||
if( e && e.scrollIntoView ){
|
||||
e.scrollIntoView({
|
||||
block: 'start',
|
||||
});
|
||||
}
|
||||
} catch( e ){}
|
||||
}, 10);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue