-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrspan.html
More file actions
76 lines (56 loc) · 2.2 KB
/
rspan.html
File metadata and controls
76 lines (56 loc) · 2.2 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Reading Span Task</title>
<link rel="stylesheet" type="text/css" href="general.css" />
<link rel="stylesheet" type="text/css" href="rspan.css" />
<script type="text/javascript" src="$.js"></script>
<script type="text/javascript" src="Timer.js"></script>
<script type="text/javascript" src="RSpan.js"></script>
<script type="text/javascript">
var app = null;
var rs = null;
// ---------------------------------------------------------------------------------------------
function ehResize() {
if (app) app.style.height = window.innerHeight + "px";
}
// ---------------------------------------------------------------------------------------------
function init() {
app = $("app");
if (!opener) {
app.innerHTML = "This page has been accessed in an incorrect way. Try: <a href=\"https://ubiq-x.github.io/rspan\">https://ubiq-x.github.io/rspan</a>.";
return;
}
ehResize();
var p = opener.params;
rs = RSpan(app);
rs.run(
eval(p.items.value),
eval(p.recallPrompt.value),
p.sent.value.split("\n"),
eval(p.timeItemPres.value),
eval(p.timeOutcomePres.value),
eval(p.timeBtnDelay.value),
eval(p.practiceItemCnt.value),
eval(p.practiceSentCnt.value),
eval(p.practiceSetSize.value),
eval(p.setSizes.value),
p.randSetSizeOrd.checked,
p.randSentOrd.checked,
eval(p.sentLenL.value),
eval(p.sentLenU.value)
);
}
// ---------------------------------------------------------------------------------------------
function uninit() {
}
</script>
</head>
<body onload="init();" onunload="uninit();" onkeypress="return false;" onselectstart="return false;" oncontextmenu="return false;" onresize="ehResize();">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td id="app" style="text-align: center; vertical-align: middle; height: 100px;"></td>
</tr>
</table>
</body>
</html>