File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ <h1>Get<br /> Started</h1>
45
45
46
46
{% for item in items %}
47
47
< div class ="article-wrapper " data-slug ="{{ item.slug }} ">
48
- < a name ="{{ item.slug }} "> </ a >
49
-
50
48
< article >
51
49
{{ item.content }}
52
50
</ article >
@@ -99,13 +97,13 @@ <h5>Course Name</h5>
99
97
< script type ="text/javascript ">
100
98
// This page includes content that is hidden from view until clicked in the article menu.
101
99
// This ensures that named links display the correct content on page load
102
- var pageHash = window . location . hash . replace ( / ^ # / , '' ) ;
103
100
101
+ var pageHash = window . location . hash . replace ( / ^ # / , '' ) ;
104
102
if ( pageHash ) {
105
103
showArticle ( pageHash ) ;
106
104
} else {
107
- var firstArticleSlug = $ ( '.article-wrapper:first' ) . data ( 'slug' ) ;
108
- showArticle ( firstArticleSlug ) ;
105
+ showArticle ( "start-locally" ) ;
106
+ $ ( '.nav-link[data-id="start-locally"]' ) . parent ( ".nav-item" ) . addClass ( "nav-select" ) ;
109
107
}
110
108
111
109
$ ( '.nav-link[data-id="' + pageHash + '"]' ) . parent ( ".nav-item" ) . addClass ( "nav-select" ) ;
You can’t perform that action at this time.
0 commit comments