-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add prompt box and audio to finishExperiment screen
- Loading branch information
1 parent
0139cb9
commit 2b8888f
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { jsPsych } from "../../taskSetup"; | ||
import { taskStore } from "../helpers"; | ||
import { taskStore, PageAudioHandler } from "../helpers"; | ||
import { mediaAssets} from '../../..'; | ||
|
||
|
||
export function finishExperiment() { | ||
const t = taskStore().translations; | ||
jsPsych.endExperiment( | ||
`<div id="prompt-container-text"> | ||
<p id="prompt">${t?.taskCompletion || 'Thank you for completing the task! You can now close the window.'}</p> | ||
</div>`, | ||
); // ToDo: style text and add audio message? | ||
`<div class='instructions-container'> | ||
<div class='lev-row-container instruction'> | ||
<h1 class='instructions-title'>${t.taskFinished}</h1> | ||
</div> | ||
</div>`, | ||
PageAudioHandler.playAudio(mediaAssets.audio.taskFinished) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters