return _results;
};
+ Uporzadkuj.prototype.get_answer = function(question) {
+ var answer,
+ _this = this;
+ answer = [];
+ $(".question-piece", this.element).each(function(i, qpiece) {
+ return answer.push($(qpiece).attr('data-pos'));
+ });
+ return answer;
+ };
+
return Uporzadkuj;
})(Exercise);
return _results;
};
+ Przyporzadkuj.prototype.get_answer = function(question) {
+ var answer,
+ _this = this;
+ answer = {};
+ $(".predicate [data-predicate]", question).each(function(i, subjects) {
+ var predicate;
+ predicate = $(subjects).attr('data-predicate');
+ answer[predicate] = [];
+ return $('.question-piece', subjects).each(function(i, qpiece) {
+ var $qpiece;
+ $qpiece = $(qpiece);
+ return answer[predicate].push($qpiece.attr('data-id'));
+ });
+ });
+ return answer;
+ };
+
return Przyporzadkuj;
})(Exercise);
return _results;
};
+ PrawdaFalsz.prototype.get_answer = function(question) {
+ var answer,
+ _this = this;
+ answer = [];
+ $(".question-piece", this.element).each(function(i, qpiece) {
+ return answer.push($(qpiece).data('value') || '-');
+ });
+ return answer;
+ };
+
return PrawdaFalsz;
})(Exercise);