jspsych / jspsych-contrib

An open repository of jsPsych plugins and extensions, without any official support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add optional message to wait screen for pipe plugin

jodeleeuw opened this issue · comments

As suggested here: jspsych/datapipe#89

Would it be "as simple" as adding somewhere in here:

const progressHTML = `
<style>${progressCSS}</style>
<svg class="spinner" viewBox="0 0 50 50">
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
</svg>`;

"<p>Saving data. Please do not close this page yet!</p>"

Yes, that's the basic idea. I think we'd want to parameterize this message so that it could be modified easily, e.g., to translate into a different language.