Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runestone/assess/multiplechoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def depart_mc_node(self,node):
if 'answer_' in k:
x,label = k.split('_')
node.mc_options['alabel'] = label
node.mc_options['atext'] = node.mc_options[k]
node.mc_options['atext'] = "(" +k[-1].upper() + ") " + node.mc_options[k]
currFeedback = "feedback_" + label
node.mc_options['feedtext'] = node.mc_options[currFeedback]
if label in node.mc_options['correct']:
Expand Down Expand Up @@ -122,6 +122,7 @@ def run(self):
Question text
...
"""

TEMPLATE_START = '''
<ul data-component="multiplechoice" data-multipleanswers="%(multipleAnswers)s" %(random)s id="%(divid)s">
'''
Expand Down
2 changes: 1 addition & 1 deletion runestone/codelens/js/pytutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
if (curEntry.question) {
//alert(curEntry.question.text);

$('#'+curEntry.question.div).modal({position:["25%","50%"]});
$('#'+curEntry.question.div).modal({position:["25%","50%"]}).draggable();
}

if (myViz.params.debugMode) {
Expand Down