@@ -147,27 +147,27 @@ export default class Timed extends RunestoneBase {
147147 this . renderContainer ( ) ;
148148 this . renderTimer ( ) ;
149149 await this . renderControlButtons ( ) ;
150- this . assessDiv . appendChild ( this . timedDiv ) ; // This can't be appended in renderContainer because then it renders above the timer and control buttons.
150+ this . containerDiv . appendChild ( this . timedDiv ) ; // This can't be appended in renderContainer because then it renders above the timer and control buttons.
151151 if ( this . renderedQuestionArray . length > 1 ) this . renderNavControls ( ) ;
152152 this . renderSubmitButton ( ) ;
153153 this . renderFeedbackContainer ( ) ;
154154 this . useRunestoneServices = eBookConfig . useRunestoneServices ;
155155 // Replace intermediate HTML with rendered HTML
156- $ ( this . origElem ) . replaceWith ( this . assessDiv ) ;
156+ $ ( this . origElem ) . replaceWith ( this . containerDiv ) ;
157157 // check if already taken and if so show results
158158 this . styleExamElements ( ) ; // rename to renderPossibleResults
159- this . checkServer ( "timedExam" ) ;
159+ this . checkServer ( "timedExam" , true ) ;
160160 }
161161
162162 renderContainer ( ) {
163- this . assessDiv = document . createElement ( "div" ) ; // container for the entire Timed Component
163+ this . containerDiv = document . createElement ( "div" ) ; // container for the entire Timed Component
164164 if ( this . fullwidth ) {
165165 // allow the container to fill the width - barb
166- $ ( this . assessDiv ) . attr ( {
166+ $ ( this . containerDiv ) . attr ( {
167167 style : "max-width:none" ,
168168 } ) ;
169169 }
170- this . assessDiv . id = this . divid ;
170+ this . containerDiv . id = this . divid ;
171171 this . timedDiv = document . createElement ( "div" ) ; // div that will hold the questions for the timed assessment
172172 this . navDiv = document . createElement ( "div" ) ; // For navigation control
173173 $ ( this . navDiv ) . attr ( {
@@ -244,8 +244,8 @@ export default class Timed extends RunestoneBase {
244244 if ( ! this . nopause ) {
245245 this . controlDiv . appendChild ( this . pauseBtn ) ;
246246 }
247- this . assessDiv . appendChild ( this . wrapperDiv ) ;
248- this . assessDiv . appendChild ( this . controlDiv ) ;
247+ this . containerDiv . appendChild ( this . wrapperDiv ) ;
248+ this . containerDiv . appendChild ( this . controlDiv ) ;
249249 }
250250
251251 renderNavControls ( ) {
@@ -471,7 +471,7 @@ export default class Timed extends RunestoneBase {
471471 this . scoreDiv = document . createElement ( "P" ) ;
472472 this . scoreDiv . id = this . divid + "results" ;
473473 this . scoreDiv . style . display = "none" ;
474- this . assessDiv . appendChild ( this . scoreDiv ) ;
474+ this . containerDiv . appendChild ( this . scoreDiv ) ;
475475 }
476476
477477 createRenderedQuestionArray ( ) {
@@ -906,8 +906,8 @@ export default class Timed extends RunestoneBase {
906906 }
907907 }
908908
909- // restoreAnswerdQuestions
910- // -----------------------
909+ // restoreAnsweredQuestions
910+ // ------------------------
911911 restoreAnsweredQuestions ( ) {
912912 for ( var i = 0 ; i < this . renderedQuestionArray . length ; i ++ ) {
913913 var currentQuestion = this . renderedQuestionArray [ i ] ;
0 commit comments