Added EEG story and added tooltip answers to story
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
1, What are the gods trying to do?
|
||||
2, Who came to help them?
|
||||
3, What deal was agreed on?
|
||||
|
@@ -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?
|
||||
|
@@ -0,0 +1,2 @@
|
||||
1, How is the construction progressing?
|
||||
2, What is happening to the horse?
|
||||
|
@@ -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?
|
||||
|
@@ -0,0 +1,3 @@
|
||||
1, Who are the characters of this story?
|
||||
2, What are they up to?
|
||||
3, What did they wager?
|
||||
|
@@ -0,0 +1,3 @@
|
||||
1, What items did the dwarves forge?
|
||||
2, Could they work in peace?
|
||||
3, Who is, in fact, Gadfly?
|
||||
@@ -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?
|
||||
|
@@ -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?
|
||||
|
@@ -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) {
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
displayInstructions();
|
||||
});
|
||||
|
||||
|
||||
socket.on('test_ready', function(msg) {
|
||||
loading = false;
|
||||
waitingDialog.hide();
|
||||
|
||||
Reference in New Issue
Block a user