mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
adding tests&examples folder
This commit is contained in:
parent
79b06f665a
commit
29a57fbe14
BIN
tests&examples/img/backwardN.gif
Normal file
BIN
tests&examples/img/backwardN.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
tests&examples/img/fixation.gif
Normal file
BIN
tests&examples/img/fixation.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
tests&examples/img/normalN.gif
Normal file
BIN
tests&examples/img/normalN.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
4
tests&examples/js/jquery.min.js
vendored
Normal file
4
tests&examples/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
tests&examples/js/snap.svg-min.js
vendored
Normal file
20
tests&examples/js/snap.svg-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
34
tests&examples/jspsych-visual-search-circle.html
Normal file
34
tests&examples/jspsych-visual-search-circle.html
Normal file
@ -0,0 +1,34 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/snap.svg-min.js"></script>
|
||||
<script src="../jspsych.js"></script>
|
||||
<script src="../plugins/jspsych-visual-search-circle.js"></script>
|
||||
<link rel="stylesheet" src="../css/jspsych.css"></link>
|
||||
</head>
|
||||
<body>
|
||||
<div id="jspsych-target"></div>
|
||||
</body>
|
||||
<script>
|
||||
|
||||
var trials = {
|
||||
type: 'visual-search-circle',
|
||||
target: 'img/normalN.gif',
|
||||
foil: 'img/backwardN.gif',
|
||||
fixation_image: 'img/fixation.gif',
|
||||
target_present: [true, false, true, false],
|
||||
set_size: [2,3,4,6]
|
||||
};
|
||||
|
||||
function start(){
|
||||
jsPsych.init({
|
||||
display_element: $('#jspsych-target'),
|
||||
experiment_structure: [trials]
|
||||
});
|
||||
}
|
||||
|
||||
jsPsych.preloadImages(['img/normalN.gif', 'img/backwardN.gif', 'img/fixation.gif'], start);
|
||||
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user