This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export default class ClickableArea extends RunestoneBase {
4545 this . renderNewElements ( ) ;
4646 this . caption = "Clickable" ;
4747 this . addCaption ( "runestone" ) ;
48+ this . checkServer ( "clickableArea" , true ) ;
4849 }
4950 /*===========================
5051 == Update basic attributes ==
@@ -76,6 +77,7 @@ export default class ClickableArea extends RunestoneBase {
7677 renderNewElements ( ) {
7778 // wrapper function for generating everything
7879 this . containerDiv = document . createElement ( "div" ) ;
80+ this . containerDiv . id = this . origElem . id ;
7981 this . containerDiv . appendChild ( this . question ) ;
8082 $ ( this . containerDiv ) . addClass ( this . origElem . getAttribute ( "class" ) ) ;
8183 this . newDiv = document . createElement ( "div" ) ;
@@ -85,7 +87,6 @@ export default class ClickableArea extends RunestoneBase {
8587 }
8688 this . newDiv . innerHTML = newContent ;
8789 this . containerDiv . appendChild ( this . newDiv ) ;
88- this . checkServer ( "clickableArea" ) ;
8990 this . createButtons ( ) ;
9091 this . createFeedbackDiv ( ) ;
9192 $ ( this . origElem ) . replaceWith ( this . containerDiv ) ;
Original file line number Diff line number Diff line change @@ -14,11 +14,9 @@ Testing: Clickable Area Questions
1414 (e.g. "DataStructures/queues.rst").
1515
1616
17-
1817 Clickable Area
1918--------------
20-
21- .. clickablearea :: question1
19+ .. clickablearea :: test_clickablearea_1
2220 :question: Click the rainbow color(s)
2321 :feedback: This is incorrect
2422 :iscode:
@@ -29,7 +27,7 @@ Clickable Area
2927 :click-incorrect: Black:endclick:
3028
3129
32- .. clickablearea :: question2
30+ .. clickablearea :: test_clickablearea_2
3331 :question: Click the rainbow color(s)
3432 :feedback: This is incorrect
3533 :table:
You can’t perform that action at this time.
0 commit comments