File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
site/themes/arangodb-docs-theme Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
"page" .Page
3
3
) }}
4
4
5
- {{ warnf "PAGE %s" . }}
6
-
7
5
8
6
<!DOCTYPE html>
9
7
< html lang ="{{ .Page.Language | default "en " }}">
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ function loadPage(target) {
164
164
url : href ,
165
165
success : function ( newDoc ) {
166
166
replaceArticle ( href , newDoc )
167
+ scrollToFragment ( ) ;
167
168
initArticle ( href ) ;
168
169
return true ;
169
170
} ,
@@ -220,7 +221,7 @@ $(window).on('hashchange', function (e) {
220
221
_hsq . push ( [ 'setPath' , window . location . href ] ) ;
221
222
_hsq . push ( [ 'trackPageView' ] ) ;
222
223
223
- scrollToOpenApiFragment ( )
224
+ scrollToFragment ( )
224
225
} ) ;
225
226
226
227
@@ -434,7 +435,7 @@ function hideEmptyOpenapiDiv() {
434
435
}
435
436
}
436
437
437
- function scrollToOpenApiFragment ( ) {
438
+ function scrollToFragment ( ) {
438
439
fragment = location . hash . replace ( "#" , "" )
439
440
if ( fragment ) {
440
441
var element = document . getElementById ( fragment ) ;
@@ -561,5 +562,4 @@ window.onload = () => {
561
562
562
563
$ ( '#show-page-loading' ) . hide ( ) ;
563
564
$ ( '#page-wrapper' ) . css ( "opacity" , "1" )
564
- scrollToOpenApiFragment ( ) ;
565
565
}
You can’t perform that action at this time.
0 commit comments