This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
forked from madebyafox/learning_at_a_glance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (56 loc) · 2.51 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/amystyle.css">
<script>
window.addEventListener("keydown", doKeyDown, true); //add keyboard key listener
//----------------------
///CALLED EVERYTIME A KEY IS PRESSED
//----------------------
function doKeyDown(e) {
switch (e.keyCode) {
case 13:
console.log(" ENTER PRESSED");
if (document.getElementById("a").value =="" || (document.getElementById("b").value != "1")&& document.getElementById("b").value != "2") {
alert("Please enter name and condition to continue");
document.getElementById("consentform").reset();
return;
}
else {
document.getElementById("consentform").submit();
}
break;
}
}
</script>
</head>
<body>
<div class="center">
<div class="top">
<h3>Informed Consent</h3>
</div>
<!--top!-->
<div class="box">
<p style="color:red; text-align: center; ">Please put on your headphones</p>
<p>This study consists of one session lasting no more than 30 minutes during which you will be asked to: </p>
<ol>
<li> Read instructions.</li>
<li> Interact with a computer to learn a series of items.</li>
<li> Identify the series of items.</li>
</ol>
<p> It is important for you to know that this investigation conforms to the ethical guidelines of the American Psychological Association (APA). Thus, the data we collect from you will be coded to anonymous values, remain entirely confidential, and will be used exclusively for research. APA also ensures that you are free to withdraw your participation at any time should you choose to do so.</p>
<p>If you understand the Informed Consent and agree with its contents, click the corresponding checkbox below. If you wish to terminate your participation, please notify the experimenter, and you may be excused. </p>
<form id="consentform" method="get" action="instructions.html">
Name:
<input type="text" id ="a"name="participant" required/>
<br/> Condition:
<input type="text" id="b" name="condition" required />
<br/>
</form>
<p style="text-align: center; font-style: italic;
">Press ENTER to continue</p>
</div>
<!--center!-->
</div>
</body>
</html>