-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (33 loc) · 921 Bytes
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>reCAPTCHA in jsPsych</title>
<script src="jspsych-6.0.5/jspsych.js"></script>
<script src="jspsych-6.0.5/plugins/jspsych-html-keyboard-response.js"></script>
<script src="jspsych-6.0.5/plugins/jspsych-external-html.js"></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<link href="jspsych-6.0.5/css/jspsych.css" rel="stylesheet" type="text/css">
</link>
</head>
<body></body>
<script>
// reCAPTCHA object
var recaptcha = {
type: "external-html",
url: "recaptcha.html",
cont_btn: "submit_button",
execute_script: true
};
// just for a demo
var welcome = {
type: "html-keyboard-response",
stimulus: "Welcome to the experiment. Press any key to begin."
};
var timeline = [];
timeline.push(recaptcha);
timeline.push(welcome);
jsPsych.init({
timeline: timeline
});
</script>
</html>