Skip to content

Commit f579191

Browse files
fixed bottom exit
1 parent dab965b commit f579191

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

bases/rsptx/interactives/runestone/common/js/bookfuncs.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)