core/js/IAT_gform.js
// Loads the input file and starts introduction
Loads the input file and starts introduction
Loads the input file and starts introduction
function initialize()
{	
	$.getJSON("templates/active.txt", function(input) {
		document.title = input.active + " IAT";
		$.getJSON("templates/"+input.active+"/input.txt", function(data) { 
			template = data;
			$.get("core/instruct0.html", function(data) {
				$("#instructions").html(data);
				$("#subID").val(randomString(10));
			});
		});
	});
}
function initialize ( ) { $ . getJSON ( "templates/active.txt" , function ( input ) { document . title = input . active + " IAT" ; $ . getJSON ( "templates/" + input . active + "/input.txt" , function ( data ) { template = data ; $ . get ( "core/instruct0.html" , function ( data ) { $ ( "#instructions" ) . html ( data ) ; $ ( "#subID" ) . val ( randomString ( 10 ) ) ; } ) ; } ) ; } ) ; }
Loads the input file and starts introduction
Loads the input file and starts introduction
// get active template & load data into global variable