This PR adds pseudo-randomization to the experiment.
The number of same-type stimuli that are allowed to appear in succession can be set with the new MAX_SUCCEEDING_ITEMS_OF_TYPE global.
I did hit a snag, namely that the randomisation library wasn't loaded in time when not loading from the cache.
To fix that, I've wrapped the logic in index.html in a JS 'loaded' event, which ensures that it will be executed iff every js file has been loaded.
This makes the diff a bit useless. The only other addition is line 71
This PR adds pseudo-randomization to the experiment.
The number of same-type stimuli that are allowed to appear in succession can be set with the new
MAX_SUCCEEDING_ITEMS_OF_TYPE
global.I did hit a snag, namely that the randomisation library wasn't loaded in time when not loading from the cache. To fix that, I've wrapped the logic in
index.html
in a JS 'loaded' event, which ensures that it will be executed iff every js file has been loaded.This makes the diff a bit useless. The only other addition is line 71