I am trying to embed an IAT within Qualtrics, and it's important that I have a version that is mobile/touch compatible. I started with the sample Javascript code
here, and based on some of the previous posts in this group, tried to add a parameter to create a touch version. However, it doesn't seem to do anything--it still appears as the keyboard version.
Has anyone successfully embedded a touch version of an IAT within Qualtrics? If so, would you be willing to share the code you used?
define(['pipAPI', '
https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/qualtrics/quiat9.js'], function(APIConstructor, iatExtension){
var API = new APIConstructor();
return iatExtension({
isTouch: true, category1 : {
name : 'Black people', //Will appear in the data.
title : {
media : {word : 'Black people'}, //Name of the category presented in the task.
css : {color:'#31940F','font-size':'2em'}, //Style of the category title.
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{image : 'black1.jpg'},
{image : 'black2.jpg'},
{image : 'black3.jpg'},
{image : 'black4.jpg'},
{image : 'black5.jpg'},
{image : 'black6.jpg'}
],
//Stimulus css (style)
stimulusCss : {color:'#31940F','font-size':'1.8em'}
},
category2 :
{
name : 'White people', //Will appear in the data.
title : {
media : {word : 'White people'}, //Name of the category presented in the task.
css : {color:'#31940F','font-size':'2em'}, //Style of the category title.
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{image : 'yf1.jpg'},
{image : 'yf4.jpg'},
{image : 'yf5.jpg'},
{image : 'ym2.jpg'},
{image : 'ym3.jpg'},
{image : 'ym5.jpg'}
],
//Stimulus css
stimulusCss : {color:'#31940F','font-size':'1.8em'}
},
base_url : {//Where are your images at?
image : '
https://baranan.github.io/minno-tasks/images/'
}
});
});