-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
47 lines (39 loc) · 2.32 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
<html>
<head>
<title>Learning to Program Using JavaScript and Test Driven Learning</title>
<script type="text/javascript" charset="utf-8">
var i, task;
var tasks = ["00HelloWorld", "01DieRoll", "02GuessingGame",
"03LoopedGuessingGame", "04ParameterizedGuessingGame", "05UserSpecifiedMinMaxGame"
];
</script>
<link rel="stylesheet" type="text/css" href="main.css" media="screen" />
</head>
<body>
<div id="content">
<h1>Test-Driven Learning (TDL)<br />Introduction to JavaScript</h1>
<table id="tasklist" border="3" cellspacing="5" cellpadding="15">
<tr><th>Task</th><th>Description</th><th>Tests</th><th>Application</th></tr>
<tr><td id='columnone'>TDD JavaScript Overview</td><td><a target='_blank' href='README.txt'>README</a></td><td colspan='2'>Find out about how this resource is organized and how you're expected to use it.</td></tr>
<script type="text/javascript" charset="utf-8">
for (i = 0; i < tasks.length; i = i + 1) {
task = "<tr>" +
"<td id='columnone'>" + tasks[i].replace(/[A-Z]/g, " $&") + "</td>" +
"<td><a target='_blank' href='" + tasks[i] + "/README.txt'>README</a></td>" +
"<td><a target='_blank' href='" + tasks[i] + "/tests/runTests.html'>Run Test</a></td>" +
"<td><a target='_blank' href='" + tasks[i] + "/src/runApp.html'>Run App</a></td>" +
"</tr>";
document.getElementById('tasklist').innerHTML += task;
}
</script>
</table>
<div id="notice">
<p><em><b>Privacy Notice:</b></em> These tasks contain a "phone home" feature that, if you are online while running the tests, sends information to a remote server including the value of the authorsName variable and which tests have failed or passed. The purpose of this information is to see the progress that learners make while working through the tasks and to spot difficulties that many learners encounter that might indicate that a task should be revised.</p>
<p>You can disable the phone home feature by including the following line at the top of your app.js files:</p>
<pre>
var phoneHome = false;
</pre>
</div>
</div>
</body>
</html>