Commit 41cfa61a authored by William Paul Liggett's avatar William Paul Liggett

Log Data to CSV: Much of the JavaScript was built to handle the recording of...

Log Data to CSV: Much of the JavaScript was built to handle the recording of the user activity. Also, the UI test flow now works and looks better.
parent 7eb8d312
......@@ -36,14 +36,16 @@
<p class="version_info"><strong>TO DO:</strong></p>
<ol>
<li>Test Conditions #1, 3, and 4: Visually show the correct durations for the tasks and break depending on the test condition. [Estimate: 3 hours]</li>
<li>Vigilance Tests: Record the activity of each subject during the test and save it as a CSV data file on the server. [Estimate: 5 to 10 hours]</li>
<li>Log Data to CSV: Record the activity of each subject during the test and save it as a CSV data file on the server. [Estimate: 5 hours remaining]</li>
<li>Admin Page: Add a section to show the stored CSV files so that they can be downloaded at will. This section will not be fancy, as it will just be a bunch of links
and maybe an ability to download all of the files as a ZIP archive. [Estimate: 2 hours]</li>
</ol>
<p class="version_info">Version 1.7.1 (2018-03-04):</p>
<p><em>Estimated labor time: <span id="hours_logged_for_update_12">1</span> hour.</em></p>
<p><em>Estimated labor time: <span id="hours_logged_for_update_12">6</span> hours.</em></p>
<ul>
<li>Log Data to CSV: Much of the JavaScript was built to handle the recording of the user activity. This will be
finalized and then the backend PHP portion will eventually convert the user data to a CSV file.</li>
<li>Test Conditions (all): Visually, the flow and UI elements now properly begin with a practice test, a 30-second gap
between the practice and the real test, and the user is more aware of what is going on by adding the banner text
of "Practice Test" or "Break" where appropriate.</li>
......
......@@ -119,7 +119,10 @@
"Test\" button to continue on to the practice block.</p></div>";
$start_test_button = "<input type=\"button\" name=\"StartTestButton\" id=\"StartTestButton\" value=\"Start Test\" />";
$test_condition_js_var = "<script>var ov_test_condition = parseInt(" . $_SESSION['ov_test_condition'] . ");</script>";
// JavaScript variables to properly initiate the correct test and to log the user's activity.
$js_var_test_condition = "<script>var ov_test_condition = parseInt(" . $_SESSION['ov_test_condition'] . ");" . PHP_EOL;
$js_var_subject_id = "var ov_subject_id = parseInt(" . $_SESSION['ov_user'] . ");</script>" . PHP_EOL;
// ---------------------------------------------------------------
// Test Condition #1: No break. See above description for details.
......@@ -138,7 +141,8 @@
// ------------------------------------------------
// Outputs the correct HTML for any test condition.
// ------------------------------------------------
echo $test_condition_js_var;
echo $js_var_test_condition;
echo $js_var_subject_id;
echo $h1_page_title;
echo $login_welcome_msg;
echo $start_test_button;
......@@ -153,7 +157,8 @@
"$tab$tab$tab$tab<span class=\"letter_d\">D</span>" . PHP_EOL .
"$tab$tab$tab$tab<span class=\"letter_backwards_d\">D</span>" . PHP_EOL .
"$tab$tab$tab</div>" . PHP_EOL .
"$tab$tab</div>" . PHP_EOL;
"$tab$tab</div>" . PHP_EOL .
"<p id=\"testing_spacebar\"></p>";
}
}
?>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment