Skip to content

Commit

Permalink
✨ examples in instructions (WIP #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed May 26, 2020
1 parent 699a66e commit f6deef9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<script src="static/js/jspsych/plugins/jspsych-html-keyboard-response.js" type="text/javascript"></script>
<script src="static/js/jspsych/plugins/jspsych-survey-text.js" type="text/javascript"></script>
<script src="static/js/jspsych/plugins/jspsych-survey-multi-choice.js" type="text/javascript"></script>
<script src="static/js/instructions.js" type="text/javascript"> </script>
<script src="static/js/utils.js" type="text/javascript"> </script>
<script src="static/js/instructions.js" type="text/javascript"> </script>
<script src="static/js/task.js" type="text/javascript"> </script>

<script type="text/javascript">
Expand Down Expand Up @@ -81,8 +81,10 @@
}

function init(){
fdbktl(1);
//fdbktl(1);
showInstructions('ID_wf');
//trials(fullTL);

}
</script>

Expand Down
38 changes: 33 additions & 5 deletions static/js/instructions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare var jsPsych: any;
declare var FRTS: any; // fruits as they were ordered
declare var FRTS: {[key: string]: Fruit; }[]; // e.g. 'apple' => Fruit. see fruits()
declare var uniqueId: any;
declare var psiturk: any;
//declare var $: any; //jquery
Expand Down
2 changes: 1 addition & 1 deletion templates/exp.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@


<script src="/static/js/psiturk.js" type="text/javascript"> </script>
<script src="/static/js/instructions.js" type="text/javascript"> </script>
<script src="/static/js/utils.js" type="text/javascript"> </script>
<script src="/static/js/instructions.js" type="text/javascript"> </script>
<script src="/static/js/task.js" type="text/javascript"> </script>

<script type="text/javascript">
Expand Down

0 comments on commit f6deef9

Please sign in to comment.