mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
34 lines
723 B
HTML
34 lines
723 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<script src="js/jquery.min.js"></script>
|
|
<script src="../jspsych.js"></script>
|
|
<script src="../plugins/jspsych-call-function.js"></script>
|
|
<link rel="stylesheet" href="../css/jspsych.css"></link>
|
|
</head>
|
|
<body>
|
|
<div id="jspsych-target"></div>
|
|
</body>
|
|
<script>
|
|
|
|
var trials = {
|
|
type: 'call-function',
|
|
func: function(){ console.log(Date.now()) }
|
|
};
|
|
|
|
// this is to check if the default for timing_post_trial works.
|
|
var next_trial = {
|
|
type: 'call-function',
|
|
func: function(){ console.log(Date.now()) }
|
|
};
|
|
|
|
|
|
jsPsych.init({
|
|
display_element: $('#jspsych-target'),
|
|
experiment_structure: [trials, next_trial]
|
|
});
|
|
|
|
|
|
</script>
|
|
</html>
|