File tree Expand file tree Collapse file tree
bases/rsptx/interactives/runestone/common/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function addReadingList() {
6868
6969 exit_link . addEventListener ( 'click' , function ( event ) {
7070 localStorage . removeItem ( "currentAssignmentInfo" ) ;
71- } )
71+ } ) ;
7272
7373 //active.append(exit_link)
7474
@@ -142,7 +142,15 @@ function addReadingList() {
142142 snd . append ( txt ) ;
143143 snd . append ( snd_lnk ) ;
144144 } else {
145- snd = fst . cloneNode ( true ) ;
145+ snd = active . cloneNode ( true ) ;
146+ let txt = document . createTextNode ( ", Notice: this page is not part of the assignment. To remove this warning click " ) ;
147+ snd . append ( txt ) ;
148+ let exit_clone = exit_link . cloneNode ( true ) ;
149+
150+ exit_clone . addEventListener ( 'click' , function ( event ) {
151+ localStorage . removeItem ( "currentAssignmentInfo" ) ;
152+ } ) ;
153+ snd . append ( exit_clone ) ;
146154
147155 }
148156
You can’t perform that action at this time.
0 commit comments