Skip to content

Commit

Permalink
add prompt box and audio to taskFinished trial
Browse files Browse the repository at this point in the history
  • Loading branch information
zwatson2001 committed Aug 15, 2024
1 parent 91e69ea commit 0139cb9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions task-launcher/src/tasks/shared/trials/taskFinished.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import jsPsychHTMLMultiResponse from '@jspsych-contrib/plugin-html-multi-response';
import { taskStore } from '../helpers';
import { taskStore, PageAudioHandler } from '../helpers';
import { mediaAssets } from '../../..';

export const taskFinished = {
type: jsPsychHTMLMultiResponse,
Expand All @@ -13,13 +14,17 @@ export const taskFinished = {
const t = taskStore().translations;
return `
<div class='instructions-container'>
<div class='lev-row-container instruction'>
<h1 class='instructions-title'>${t.taskFinished}</h1>
</div>'
<footer>${t.generalFooter}</footer>
</div>`;
},
button_choices: [`Continue`],
keyboard_choices: 'ALL_KEYS',
button_html: '<button class="primary">Exit</button>',
button_html: '<button class="primary" style=margin-top:10%>Exit</button>',
on_load: () => PageAudioHandler.playAudio(mediaAssets.audio.taskFinished)
// trial_duration: 1000,
};


0 comments on commit 0139cb9

Please sign in to comment.