From 0139cb9bcc059352f508dbf650d67a5603282d96 Mon Sep 17 00:00:00 2001 From: zwatson2001 Date: Thu, 15 Aug 2024 10:33:15 -0400 Subject: [PATCH] add prompt box and audio to taskFinished trial --- task-launcher/src/tasks/shared/trials/taskFinished.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/task-launcher/src/tasks/shared/trials/taskFinished.js b/task-launcher/src/tasks/shared/trials/taskFinished.js index 61e703c1..d2efff54 100644 --- a/task-launcher/src/tasks/shared/trials/taskFinished.js +++ b/task-launcher/src/tasks/shared/trials/taskFinished.js @@ -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, @@ -13,13 +14,17 @@ export const taskFinished = { const t = taskStore().translations; return `
+

${t.taskFinished}

- +
'
${t.generalFooter}
`; }, button_choices: [`Continue`], keyboard_choices: 'ALL_KEYS', - button_html: '', + button_html: '', + on_load: () => PageAudioHandler.playAudio(mediaAssets.audio.taskFinished) // trial_duration: 1000, }; + +