Commit dff35fb4 authored by William Paul Liggett's avatar William Paul Liggett

Changed some default JS var assignments.

parent de2e10e4
......@@ -13,6 +13,8 @@
// 0th cell = the datetime with milliseconds (e.g., "3/4/2018 18:49:09:565")
// 1st cell = the date (e.g., "3/4/2018")
// 2nd cell = the time with milliseconds included (e.g., "18:49:09:565").
//
/* !@#$ ... I MIGHT NOT NEED THIS NOW.
function getCurrentDatetime() {
// Records the date and timestamp of when the test began.
var ov_datetime = new Date();
......@@ -43,6 +45,7 @@ function getCurrentDatetime() {
return [ov_datetime, ov_date, ov_time];
}
*/
// ------------------
// GLOBAL VARIABLES
......@@ -56,7 +59,7 @@ var ov_record_user_activity = false;
var ov_user_activity_array = ["TimeStamp", "Type", "Block", "GlobalTrialCounter", "CurrentTrial", "ov_random_letter_is_o", "RT"];
// Records the datetime in ms since the Unix epoch. It'll be set once the test actually begins.
var ov_test_began_datetime = 0;
var ov_test_began_datetime = -1;
// Tracks whether it is a practice test ("P") or an actual experiment ("E").
var ov_test_type = "";
......@@ -64,13 +67,13 @@ var ov_test_type = "";
// A test block are 2-minute periods of time during the actual test.
// Note: The practice test should always be less than 2-mins or further calculations will be messed up.
// Block 0 = Practice. Block 1 = 1st 2-min period. Block 2 = 2nd 2-min period. Block 3 = 3rd 2-min period. And so on.
var ov_test_block = 0;
var ov_test_block = -1;
// Primarily used to outputting the time of the current random letter to the CSV.
//var ov_current_random_letter_time_as_string = "";
// This is used to measure the user's response time (RT). Eventually uses Unix epoch time format (ms).
var ov_current_random_letter_datetime = 0;
var ov_current_random_letter_datetime = -1;
// Quick way to determine how to log certain fields in the CSV, such as: Target, Distractor, False Alarm, and Correct.
var ov_random_letter_is_o = false;
......
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