-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobals.js
50 lines (37 loc) · 1.48 KB
/
globals.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ACCESS_KEY needs to be used for server setup (data store)
const ACCESS_KEY = '00000000-0000-0000-0000-000000000000';
// default value for pseudorandomisation restrictions
const MAX_SUCCEEDING_ITEMS_OF_TYPE = 2;
// Default behavior of (sub) trial phases. times are in ms.
const FIXCROSS_DURATION = 1000;
const MASK_DURATION = 100;
const PRIME_DURATION = 500;
const RESPONSE_TIMEOUT_DURATION = 2000;
const FEEDBACK_DURATION = 1000;
const PRIME_GAP_DURATION = 300;
const DEFAULT_ITI = 500; // inter trial interval
// Defaults for buttons/labels etc. These are all "translatable".
const OK_BUTTON_TEXT = "OK";
const YES_BUTTON_TEXT = "Yes";
const NO_BUTTON_TEXT = "No";
const TRUE_BUTTON_TEXT = "True";
const FALSE_BUTTON_TEXT = "False";
const LEFT_TEXT = "Left";
const RIGHT_TEXT = "Right";
const CORRECT_TEXT = "Correct";
const INCORRECT_TEXT = "Incorrect";
const GENDER_MALE = "Male";
const GENDER_FEMALE = "Female";
const GENDER_OTHER = "Other";
const GENDER_PREFER_NOT_SAY = "Prefer not to say";
// Default restrictions of minimal browser dimensions
const MIN_WIDTH = 800;
const MIN_HEIGHT = 600;
// Bail out string for mobiles
const BAIL_OUT_MOBILE_TEXT = "Please run this experiment on a PC or Laptop.";
// Test stimulus name for the test audio.
const AUDIO_TEST_STIMULUS = "./sounds/sound_test.mp3";
// message while loading sounds
const PRELOAD_MSG = "Loading the experiment, please be patient.";
// The duration the last stimulus/debriefing is visible
const DEBRIEF_MESSAGE_DURATION = 30000;