-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
33 lines (32 loc) · 1.21 KB
/
main.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
// when the DOM is created and JavaScript code can run safely,
// the experiment initialisation is called
$('document').ready(function () {
// prevent scrolling when space is pressed
window.onkeydown = function (e) {
if (e.keyCode == 32 && e.target == document.body) {
e.preventDefault();
}
};
babeInit({
// views_seq: [init, intro, instructions, lobby, game, thanks],
views_seq: [init, intro, instructions, lobby, trial, thanks],
deploy: {
experimentID: '1',
// experimentID: "1",
serverAppURL:
'https://magpie-refactored-2.herokuapp.com/api/submit_experiment/',
// serverAppURL: 'http://localhost:4000/api/submit_experiment/',
socketURL: 'wss://magpie-refactored-2.herokuapp.com/socket',
// socketURL: 'ws://localhost:4000/socket',
deployMethod: 'directLink',
contact_email: '[email protected]',
prolificURL:
'https://app.prolific.ac/submissions/complete?cc=EXAMPLE1234'
},
progress_bar: {
in: ['forcedChoice'],
style: 'default',
width: 100
}
});
});