File tree 2 files changed +6
-2
lines changed
themes/vocabulary_theme/templates
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h1>{{ this.title }}</h1>
10
10
< div class ="container body ">
11
11
< div class ="columns ">
12
12
< div class ="column is-one-quarter ">
13
- < div class ="table-of-progress ">
13
+ < div class ="table-of-progress sticky-top ">
14
14
< h4 class ="step-header "> Steps</ h4 >
15
15
< ul >
16
16
{% for item in this.body.toc %}
Original file line number Diff line number Diff line change @@ -33,16 +33,20 @@ $(document).ready(function () {
33
33
}
34
34
} ) ;
35
35
36
- // Internal Navigation for table of contents component
36
+ // Internal Navigation for table of contents and table of progress component
37
37
let hash = window . location . hash ;
38
38
if ( hash . length > 0 ) {
39
39
$ ( '.menu-list' ) . find ( 'a[href=\"' + hash + '\"]' ) . addClass ( 'is-active' ) ;
40
+ $ ( '.step' ) . find ( 'a[href=\"' + hash + '\"]' ) . find ( '.number' ) . addClass ( 'is-active' ) ;
40
41
}
41
42
42
43
$ ( window ) . on ( 'hashchange' , function ( ) {
43
44
let hash = window . location . hash ;
44
45
$ ( '.menu-list a[href*="#"]' ) . closest ( 'a' ) . removeClass ( 'is-active' ) ;
45
46
$ ( '.menu-list' ) . find ( 'a[href=\"' + hash + '\"]' ) . addClass ( 'is-active' ) ;
47
+
48
+ $ ( '.step a[href*="#"]' ) . closest ( 'a' ) . find ( '.number' ) . removeClass ( 'is-active' ) ;
49
+ $ ( '.step' ) . find ( 'a[href=\"' + hash + '\"]' ) . find ( '.number' ) . addClass ( 'is-active' ) ;
46
50
} ) ;
47
51
} ) ;
48
52
You can’t perform that action at this time.
0 commit comments