Added EEG story and added tooltip answers to story

This commit is contained in:
2019-01-03 21:41:50 +00:00
parent 93cf17e0a3
commit fba8d03fcd
12 changed files with 29 additions and 5 deletions
BIN
View File
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
1, What are the gods trying to do?
2, Who came to help them?
3, What deal was agreed on?
1 1 What are the gods trying to do?
2 2 Who came to help them?
3 3 What deal was agreed on?
+3
View File
@@ -0,0 +1,3 @@
1, What reward did the stranger ask for his work?
2, Who is, in fact, the stranger?
3, What did the gods decide to do?
1 1, What reward did the stranger ask for his work?
2 2, Who is, in fact, the stranger?
3 3, What did the gods decide to do?
+2
View File
@@ -0,0 +1,2 @@
1, How is the construction progressing?
2, What is happening to the horse?
1 1 How is the construction progressing?
2 2 What is happening to the horse?
+3
View File
@@ -0,0 +1,3 @@
1, What part of the wall is left unfinished?
2, Who was the little mare?
3, Are the Gods happy about the resolution of their dilemma?
1 1 What part of the wall is left unfinished?
2 2 Who was the little mare?
3 3 Are the Gods happy about the resolution of their dilemma?
+3
View File
@@ -0,0 +1,3 @@
1, Who are the characters of this story?
2, What are they up to?
3, What did they wager?
1 1 Who are the characters of this story?
2 2 What are they up to?
3 3 What did they wager?
+3
View File
@@ -0,0 +1,3 @@
1, What items did the dwarves forge?
2, Could they work in peace?
3, Who is, in fact, Gadfly?
+3
View File
@@ -0,0 +1,3 @@
1, What is the last item forged?
2, What happened to the hammer?
3, What did the Gods think of Golden Bristle?
1 1 What is the last item forged?
2 2 What happened to the hammer?
3 3 What did the Gods think of Golden Bristle?
+3
View File
@@ -0,0 +1,3 @@
1, To whom was the hammer given?
2, What was the judgement of the Gods?
3, How did Loki get out of losing the bet?
1 1 To whom was the hammer given?
2 2 What was the judgement of the Gods?
3 3 How did Loki get out of losing the bet?
+2 -1
View File
@@ -47,7 +47,7 @@ class EEGStoryTrainThread(BaseThread):
self.selected_q = []
self.question = []
self.answers = []
self.answers = [''] * 8
self.wav_files = []
self.q_files = []
@@ -94,6 +94,7 @@ class EEGStoryTrainThread(BaseThread):
if self._stopevent.isSet() or self.finishTest:
return
self.processResponse()
self.trial_ind += 1
self.saveState(out=self.backupFilepath)
if not self._stopevent.isSet():
self.unsetPageLoaded()
@@ -83,10 +83,9 @@
waitingDialog.hide();
});
socket.on('test_fill_table', function(msg) {
for(i = 0; i < msg['data'].length; i++) {
$(`#Q1 > .T${i+1} > button`).attr("title", msg['data'][i]);
}
socket.on('test_resp', function(msg) {
debugger;
$(`#Q1 > .T${parseInt(msg['trial_ind'])+1} > button`).attr("data-original-title", msg['ans']).tooltip('show');
});
$('#test_save').click(function(event) {
+1
View File
@@ -74,6 +74,7 @@
displayInstructions();
});
socket.on('test_ready', function(msg) {
loading = false;
waitingDialog.hide();