short data save task.js (via psiturk data save)

PHOTO EMBED

Wed Jun 02 2021 17:03:23 GMT+0000 (UTC)

Saved by @Kara_schwartz29 ##javascript ##jspsych ##psiturk

	psiTurk.showPage('postquestionnaire.html');
	psiTurk.recordTrialData({'phase':'postquestionnaire', 'status':'begin'});
	
	$("#next").click(function () {
	    record_responses();
	    psiTurk.saveData({
            success: function(){
                psiTurk.computeBonus('compute_bonus', function() { 
                	psiTurk.completeHIT(); // when finished saving compute bonus, then quit
                }); 
            }, 
            error: prompt_resubmit});
	});
    
	
content_copyCOPY

https://github.com/jrz235/psiTurk-Structural-Priming-Online/blob/master/static/js/task.js