fnp
/
edumed.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f87ad42ff1dff817c6660c8f22f1f7e75f9eed11
[edumed.git]
/
wtem
/
static
/
wtem
/
wtem.js
1
$(function() {
2
3
$('#submit_answers').click(function() {
4
var to_submit = [];
5
$('.exercise').each(function() {
6
var exercise = $(this).data('exercise');
7
if(exercise.get_answers) {
8
to_submit.push(exercise.get_answers()[0]);
9
}
10
});
11
console.log(JSON.stringify(to_submit));
12
});
13
14
});