-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de10801
commit 6e10d74
Showing
7 changed files
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>{name} Extension Example</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<!-- Example plugin an extension may work with --> | ||
<script src="https://unpkg.com/@jspsych/[email protected]"></script> | ||
<script src="../dist/index.browser.min.js"></script> | ||
<link href="https://unpkg.com/[email protected]/css/jspsych.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<script> | ||
let jsPsych = initJsPsych({ | ||
extensions: [{ type: {globalName} }], | ||
}); | ||
|
||
let trial = { | ||
type: jsPsychHtmlKeyboardResponse, | ||
stimulus: "Hello world", | ||
extensions: [{ type: {globalName} }, | ||
], | ||
}; | ||
|
||
jsPsych.run([trial]); | ||
</script> | ||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>{name} Extension Example</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<!-- Example plugin an extension may work with --> | ||
<script src="https://unpkg.com/@jspsych/[email protected]"></script> | ||
<script src="../dist/index.browser.min.js"></script> | ||
<link href="https://unpkg.com/[email protected]/css/jspsych.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<script> | ||
let jsPsych = initJsPsych({ | ||
extensions: [{ type: {globalName} }], | ||
}); | ||
|
||
let trial = { | ||
type: jsPsychHtmlKeyboardResponse, | ||
stimulus: "Hello world", | ||
extensions: [{ type: {globalName} }, | ||
], | ||
}; | ||
|
||
jsPsych.run([trial]); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<script src="https://unpkg.com/jspsych"></script> | ||
<!-- The plugin is loaded here --> | ||
<script src="https://unpkg.com/@jspsych/plugin-{name}"></script> | ||
<script src="../dist/index.global.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/jspsych/css/jspsych.css"> | ||
</head> | ||
|
||
<body></body> | ||
<script> | ||
const jsPsych = initJsPsych(); | ||
|
||
const trial = { | ||
type: {globalName} | ||
}; | ||
|
||
jsPsych.run([trial]) | ||
</script> | ||
|
||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<script src="https://unpkg.com/jspsych"></script> | ||
<!-- The plugin is loaded here --> | ||
<script src="https://unpkg.com/@jspsych/plugin-{name}"></script> | ||
<script src="../dist/index.global.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/jspsych/css/jspsych.css"> | ||
</head> | ||
|
||
<body></body> | ||
<script> | ||
const jsPsych = initJsPsych(); | ||
|
||
const trial = { | ||
type: {globalName} | ||
}; | ||
|
||
jsPsych.run([trial]) | ||
</script> | ||
|
||
</html> |