Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work out how to add surveys to plain old HTML/js pages (ie, to embed directly in Turk) #80

Open
JamesPHoughton opened this issue Oct 17, 2022 · 0 comments

Comments

@JamesPHoughton
Copy link
Contributor

JamesPHoughton commented Oct 17, 2022

As a researcher, I want to be able to embed each survey from this repo in empirica, on a separate webpage, and in an Mturk HIT, so that I can ensure that it is administered consistently regardless of where it is used.

One way to do this would be to package the surveys in this repo for embedding as a javascript library within a <script> tag in an HTML page. This may be possible using UNPKG and the existing npm build. It may alternately turn out that the existing package can't be run without React, in which case we may need to create two separate builds, one using SurveyJS's react backend, and another using one of the other backends (e.g. jquery)

Ideally, this would be done without any changes to the existing surveys/ folder. It may require writing a separate SurveyFactory file and a separate index.js, and modifying the rollup config.

This may also let us embed the surveys in their own Readme's...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant