$(".retry", @element).click (ev) =>
@retry()
$('.solutions', @element).click =>
$(".retry", @element).click (ev) =>
@retry()
$('.solutions', @element).click =>
$(".question", @element).each (i, question) =>
scores.push(@check_question question)
$(".question", @element).each (i, question) =>
scores.push(@check_question question)
solution = @get_value_list(question, 'solution')
$(".question-piece", question).each (i, qpiece) =>
piece_no = $(qpiece).attr 'data-no'
solution = @get_value_list(question, 'solution')
$(".question-piece", question).each (i, qpiece) =>
piece_no = $(qpiece).attr 'data-no'
solve_question: (question) ->
solution = @get_value_list(question, 'solution')
solve_question: (question) ->
solution = @get_value_list(question, 'solution')
solve_question: (question) ->
positions = @get_value_list(question, 'original', true)
solve_question: (question) ->
positions = @get_value_list(question, 'original', true)
$(".placeholder + .question-piece", @element).each (i, qpiece) =>
$placeholder = $(qpiece).prev(".placeholder")
if $placeholder.data('solution') == $(qpiece).data('no')
@piece_correct qpiece
correct += 1
else
$(".placeholder + .question-piece", @element).each (i, qpiece) =>
$placeholder = $(qpiece).prev(".placeholder")
if $placeholder.data('solution') == $(qpiece).data('no')
@piece_correct qpiece
correct += 1
else
solve_question: (question) ->
$(".placeholder", question).each (i, placeholder) =>
solve_question: (question) ->
$(".placeholder", question).each (i, placeholder) =>
$(".paragraph", @element).each (i, par) =>
$(".placeholder", par).each (j, qpiece) =>
$(".paragraph", @element).each (i, par) =>
$(".placeholder", par).each (j, qpiece) =>
- all = $(".subjects .question-piece", question).length
+ self = this
+ $(".subject .question-piece", question).each (i, el) ->
+ v = self.get_value_optional_list el, 'solution'
+ mandatory = v[0]
+ all += mandatory.length
for pred in $(".predicate [data-predicate]", question)
pn = $(pred).attr('data-predicate')
for pred in $(".predicate [data-predicate]", question)
pn = $(pred).attr('data-predicate')
for qp in $(".question-piece", pred)
v = @get_value_optional_list qp, 'solution'
for qp in $(".question-piece", pred)
v = @get_value_optional_list qp, 'solution'
for qp in $(".question-piece", @element)
if $(qp).data("solution").toString() == $(qp).data("value")
good += 1
@piece_correct qp
else
for qp in $(".question-piece", @element)
if $(qp).data("solution").toString() == $(qp).data("value")
good += 1
@piece_correct qp
else