Skip to content

Commit 5b85577

Browse files
committed
Show anchor section
1 parent 9e1b7f2 commit 5b85577

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

js/app.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function parseHash() {
1515
}
1616

1717
if (parseSearch().value || parseHash().id_token) {
18-
scrollTo($('#debugger'));
18+
scrollTo($('#debugger-io'));
1919
}
2020

2121
function safeLocalStorageSetItem(key, value) {
@@ -31,13 +31,11 @@ safeLocalStorageSetItem("visited", "1");
3131
* Go to url hash from intro section
3232
*/
3333
if (location.href.indexOf("#debugger") != -1) {
34-
parent.location.hash = ''
35-
scrollTo($('#debugger'));
34+
scrollTo($('#debugger-io'));
3635
}
3736

3837
if (location.href.indexOf("#libraries") != -1) {
39-
parent.location.hash = ''
40-
scrollTo($('#libraries'));
38+
scrollTo($('#libraries-io'));
4139
}
4240

4341
/*

views/index.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ block content
1212
img(src='/img/logo.svg').logo
1313

1414
nav.menu
15-
a(href='#debugger').scrollto Debugger
16-
a(href='#libraries').scrollto Libraries
15+
a(href='#debugger-io').scrollto Debugger
16+
a(href='#libraries-io').scrollto Libraries
1717
a(href='/introduction') Introduction
1818
a(href='https://ask.auth0.com/category/jwt', target='_blank') Ask
1919
a(href='http://swag.auth0.com/', target='_blank') Get a T-shirt!
@@ -56,7 +56,7 @@ block content
5656
path(d='M16 10v28l22-14z')
5757
path(d='M0 0h48v48H0z', fill='none')
5858

59-
section#debugger.debugger-jwt
59+
section#debugger-io.debugger-jwt
6060
.container
6161
//- a(name='debugger')
6262
h1 Debugger
@@ -117,7 +117,7 @@ block content
117117

118118
.validation-status.js-signature
119119

120-
section#libraries.libraries-jwt
120+
section#libraries-io.libraries-jwt
121121
.container
122122
.title-header
123123
//- a(name='libraries')

0 commit comments

Comments
 (0)