NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

codeversion needs quotations in the exp.html #447

Closed afdreher closed 4 years ago

afdreher commented 4 years ago

I was just building a new version of the psiturk example to verify my local changes, but the new codeversion variable breaks the example. The reason is var codeversion = {{ codeversion }}; // a number indexing counterbalancing conditions needs to be var codeversion = "{{ codeversion }}"; ... because otherwise JS will interpret the semantic version, such as 0.0.1, as an invalid number, even though the rest of the code correctly expects it to be a string.

Additionally, the copy and paste comments need to be modified to reflect the purpose of the variables.

deargle commented 4 years ago

Closed by #448