@@ -99,7 +99,7 @@ function addReadingList() {
9999 fst = active . cloneNode ( true ) ;
100100 let txt = document . createTextNode ( `, Page ${ position + 1 } of ${ num_readings } , ` ) ;
101101 var fst_lnk = document . createElement ( "a" ) ;
102- fst_lnk . className = "btn btn-lg reading-navigation prev-reading" ;
102+ // fst_lnk.className = "btn btn-lg reading-navigation prev-reading";
103103 fst_lnk . href = new_pos_link ;
104104 fst_lnk . textContent = `Back to page ${
105105 position
@@ -122,21 +122,25 @@ function addReadingList() {
122122 }
123123 if ( position == eBookConfig . readings . length - 1 ) {
124124 // no more readings
125- snd = document . createElement ( "div" ) ;
126- snd . textContent = `Page ${ num_readings } of ${ num_readings } : ${ reading_names [ position ] } ` ;
125+ snd = active ;
126+ let txt = document . createTextNode ( `, Page ${ num_readings } of ${ num_readings } : ${ reading_names [ position ] } ` ) ;
127+ snd . append ( txt ) ;
127128 } else if ( position >= 0 ) {
128129 // get next name
129130 new_pos = eBookConfig . readings [ position + 1 ] ;
130131 path_parts = cur_path_parts . slice ( 0 , cur_path_parts . length - endLop ) ;
131132 path_parts . push ( new_pos ) ;
132133 new_pos_link = path_parts . join ( "/" ) ;
133- snd = document . createElement ( "a" ) ;
134- snd . name = "link" ;
135- snd . className = "btn btn-lg reading-navigation next-reading" ;
136- snd . href = new_pos_link ;
137- snd . textContent = `Continue to page ${
134+ snd = active ;
135+ var snd_lnk = document . createElement ( "a" ) ;
136+ //snd_lnk .className = "btn btn-lg reading-navigation next-reading";
137+ snd_lnk . href = new_pos_link ;
138+ snd_lnk . textContent = `Continue to page ${
138139 position + 2
139140 } of ${ num_readings } : ${ reading_names [ position + 1 ] } `;
141+ let txt = document . createTextNode ( ", " ) ;
142+ snd . append ( txt ) ;
143+ snd . append ( snd_lnk ) ;
140144 } else {
141145 snd = fst . cloneNode ( true ) ;
142146
@@ -154,9 +158,9 @@ function addReadingList() {
154158 bottom . style . borderColor = "var(--componentBorderColor)"
155159 bottom . style . borderWidth = "1px"
156160
157- bottom . append ( active . cloneNode ( true ) ) ;
161+ // bottom.append(active.cloneNode(true));
158162 //bottom.append(fst.cloneNode(true));
159- bottom . append ( snd . cloneNode ( true ) ) ;
163+ bottom . append ( snd ) ;
160164
161165
162166 // check the body tag to see if it has a pretext class (no jquery)
0 commit comments