Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Just push the button to go ahead!
@@.btn1;<<button "Los!">>
<<goto "2x3">>
<</button>>@@
<<set $focus = "B1 Wortstellg Modalsatz">>
<h1></h1>
<span class="instruction">Reconstruct the sentence by dragging the words into the correct order!</span>
<<wordOrder "#Afterwards,*Paine*took*different*jobs*such as*a tax*collector*and*teacher.#" $level $focus>>
<<widget "wordOrder">>\
<<set $level to $args[1]>>\
<<set $cap = Story.get(passage()).tags[0]>>
<<set $focus to $args[2]>>\
<<set $round += 1>>\
<<set $cap = Story.get(passage()).tags[0]>>\
<<script>>
dragInit(State.variables.args[0]);
<</script>>
<div id="container" class="noScroll"></div>
@@.btn1;<<button "check!">>
<<if wordOrderCorrect>>\
<<goto "right">>
<<else>>\
<<goto "wrong">>
<</if>>
<</button>>
<</widget>>
<<widget "dialog">>\
<<set $level to $args[1]>>\
<<set $focus to $args[2]>>\
<<set $round += 1>>\
<<set $cap = Story.get(passage()).tags[0]>>\
<<if Array.isArray($args[0])>>\
<<script>>
shuffler(State.variables.args[0]);
<</script>>
<<else>>
<<script>>
shuffler(State.variables.args);
<</script>>
<</if>>\
<span class="instruction">Ziehen Sie die Sätze in das linke
Fenster und bringen Sie den Dialog/Text in die richtige
Reihenfolge!</span>
<br>
<div id="dialogs_container">
<div id="left_container">
<ul></ul>
</div>
<div id="right_container"></div>
</div>
@@.btn1;<<button "weiter">>
<<if orderCorrect>>\
<<set $solved to true>>
<<else>>\
<<set $solved to false>>\
<</if>>
<<selNextPassage>>\
<</button>>
<</widget>>
<<widget "selNextPassage">>
<<audio ":all" stop>>
<<set $cap = Story.get(passage()).tags[0]>>
<<if $solved eq true>>
<<set $performance.answerLog.push(true)>>
<<set $result to $result + ($level+1)>>
<<set $performance.rightAnswers[$level] ++>>
<<set $strengths[$cap].push($focus)>>
<<else>>
<<set $performance.answerLog.push(false)>>
<<set $weaknesses[$cap].push($focus)>>
<</if>>
<<if $performance.answerLog.length lt 4>>\
<<set $performance.trueCount to 0>>\
<<set $performance.falseCount to 0>>\
<<else>>\
<<set $performance.trueCount to
$performance.answerLog.slice(-4).count(true)>>\
<<set $performance.falseCount to
$performance.answerLog.slice(-4).count(false)>>\
<</if>>\
<<if $performance.trueCount gt $performance.falseCount>>
<<set $level to $level + 1>>
<<set $direction.push("↑")>>
<<if $level gt 4>>
<<set $level to 4>>
<</if>>
<<elseif $performance.falseCount gt $performance.trueCount>>
<<set $level to $level - 1>>
<<set $direction.push("↓")>>
<<if $level lt 0>>
<<set $level to 0>>
<</if>>
<<else>>
<<set $level to $level>>
<<set $direction.push("=")>>
<</if>>
<<set $nextpassage to $level + "x" + $round>>\
<<if Story.has($nextpassage)>>\
<<set $performance.path.push($level)>>\
<<goto $nextpassage>>\
<<else>>\
<<goto "evaluation">>\
<</if>>\
<</widget>>
<<widget "showCaps">>
<<set $capacity to $args[0]>>\
<<set $weakOrStrong to $args[1]>>\
<<if $weakOrStrong eq "weak">>\
<<for _i to 0; _i lt $weaknesses[$capacity].length;
_i++>>\
<<print
"<li>"+$weaknesses[$capacity][_i]+"</li>">>
<</for>>\
<<elseif $weakOrStrong eq "strong">>\
<<for _i to 0; _i lt $strengths[$capacity].length; _i++>>\
<<print
"<li>"+$strengths[$capacity][_i]+"</li>">>
<</for>>\
<<else>>\
<<print "ERROR">>
<</if>>
<</widget>>
<<set $performance to {
rightAnswers : [ 0, 0, 0, 0, 0],
answerLog : [],
path: []
}>>
<<set $strengths to {
audio : [],
lesen : [],
gram : [],
coherence : [],
voc : [],
dialog : []
}>>
<<set $weaknesses to {
audio : [],
lesen : [],
gram : [],
coherence : [],
voc : [],
dialog : []
}>>
<<set $result to 0>>\
<<set $round = 0>>\
<<set $direction = []>>\
<<set $problems = []>>\
<<set $level = "">>\
<<set $userName to "">>\
<<set $userMail to "">>\
<<set $nameOK to false>>\
<<set $mailOK to false>>\
<<set $solved to false>>\
<<if passage() === "evaluation">>
<<set
_correct to [],
_incorrect to [];
$performance.path.forEach(function (v, i) {
var selector = "#" + v + "x" + (i + 1);
if ($performance.answerLog[i]) {
_correct.push(selector);
} else {
_incorrect.push(selector);
}
});
_correct to _correct.join(",");
_incorrect to _incorrect.join(",");
>>
<<addclass _correct "green">>
<<addclass _incorrect "red">>
<</if>>
<<prepend ".passage">>\
<div class="header"></div>
<<if
_hint>>\
@@#hint;<<button "">><<toggleclass "#passageHint"
"show">\><<toggleclass "#hint"
"toggled">><</button>>@@\
<div id="passageHint">_hint</div>\
<</if>>\
<</prepend>>
You chose wisely!You chose poorly!