File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,19 @@ function safeLocalStorageSetItem(key, value) {
27
27
}
28
28
safeLocalStorageSetItem ( "visited" , "1" ) ;
29
29
30
+ /*
31
+ * Go to url hash from intro section
32
+ */
33
+ if ( location . href . indexOf ( "#debugger" ) != - 1 ) {
34
+ parent . location . hash = ''
35
+ scrollTo ( $ ( '#debugger' ) ) ;
36
+ }
37
+
38
+ if ( location . href . indexOf ( "#libraries" ) != - 1 ) {
39
+ parent . location . hash = ''
40
+ scrollTo ( $ ( '#libraries' ) ) ;
41
+ }
42
+
30
43
/*
31
44
* Show icon
32
45
*/
@@ -78,15 +91,12 @@ $('.accordion').accordion({
78
91
* Scroll to section
79
92
*/
80
93
$ ( 'a[href^="#"].scrollto' ) . on ( 'click' , function ( event ) {
81
- event . preventDefault ( ) ;
82
94
var target = $ ( $ ( this ) . attr ( 'href' ) ) ;
83
95
84
96
if ( target . length ) {
85
97
event . preventDefault ( ) ;
86
98
scrollTo ( target ) ;
87
99
}
88
-
89
- return false ;
90
100
} ) ;
91
101
92
102
$ ( window ) . on ( 'scroll' , function ( ) {
You can’t perform that action at this time.
0 commit comments