Skip to content

Instantly share code, notes, and snippets.

View robinvanemden's full-sized avatar
🌳
⏩ ⏩

Robin van Emden robinvanemden

🌳
⏩ ⏩
View GitHub Profile
-- Authware 7.0 Script,
-- Robin van Emden 2015
-- http://pavlov.tech/2015/03/04/authorware-to-arduino-interface/
-- Communicates with an Arduino
-- Over Serial Port on a PC
-- Implements DirectCommunication Xtra from
-- http://www.directxtras.com/dcomm_home.asp
-- Instantiate the DirectCommunication Xtra
Trace("--- DirectCommunication -- ")
<div id="basicdiv" style="position: relative; left: 0; top: 0; width: 920px; height: 575px;background-color:#666666;">
<img id="imgmask" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_0Mw5SEViwkr67BP"
style="position: absolute; top: 0; left: 0; width: 920px; height: 575px; z-index: 1;">
<img id="imgself1" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_8wE16Ir2f8GOW2h"
style="position: absolute; top: 0; left: 0; width: 920px; height: 575px; z-index: 2;">
<img id="imgself2" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_5mNxaldk6WwG4SN"
var qthis;
var globalInterval;
var counter = 0;
var continuecounter = 0;
Qualtrics.SurveyEngine.addOnload(function() {
qthis = this;
});
jq(window).load(function() {
@robinvanemden
robinvanemden / QualtricsQuestionJs.js
Created November 3, 2014 18:07
Adding jsPsych to Qualtrics
Qualtrics.SurveyEngine.addOnload(function() {
//Retrieve the Response ID from the hidden Qualtrics Session ID value
var responseIdFromSessionID = jq('#SessionID').val().replace("SS_", "R_");
//Retrieve Qualtrics object and save in qthis
var qthis = this;
//Hide buttons - can also (even better) be hidden in the CSS
jq('#Buttons').css("display", "none");
@robinvanemden
robinvanemden / QualtricsJSPsychHeader.html
Last active November 30, 2016 13:16
Loading external jQuery and jsPsych libraries in Qualtrics header
<!-- Load external jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>var jq=$.noConflict();</script>
<!-- Load the jspsych library and plugins, after upload to file library -->
<script src="https://uleidenss.eu.qualtrics.com/ControlPanel/File.php?F=F_8BprgXBclFbi4gl"></script>