From d83d49cac40fd1720d7b8c07146002c1c94de7e7 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Mon, 15 Jul 2013 11:26:03 -0400 Subject: [PATCH] drag_and_drop template added --- .../templates/problem/drag_and_drop.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml diff --git a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml new file mode 100644 index 0000000000..3705004316 --- /dev/null +++ b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml @@ -0,0 +1,44 @@ +--- +metadata: + display_name: Drag and Drop + rerandomize: never + showanswer: finished +data: | + + Here's an example of a "Drag and Drop" question set. Click and drag each word in the scrollbar below, up to the numbered bucket which matches the number of letters in the word. + + + + + + + + + + + + + + + + correct_answer = { + '1': [[70, 150], 121], + '6': [[190, 150], 121], + '8': [[190, 150], 121], + '2': [[310, 150], 121], + '9': [[310, 150], 121], + '11': [[310, 150], 121], + '4': [[420, 150], 121], + '7': [[420, 150], 121], + '3': [[550, 150], 121], + '5': [[550, 150], 121], + '10': [[550, 150], 121]} + if draganddrop.grade(submission[0], correct_answer): + correct = ['correct'] + else: + correct = ['incorrect'] + + + + +children: []