Minno Suite
About
Documentation
Blog
Forum
Documentation
Getting started
Server
Using the Dashboard
Getting started (admin account)
Getting started (researcher)
Setting up Dropbox
Study Development
Data
Installation
Requirements
Manual Installation
Docker Installation
The Docker Configuration File
AWS Cloud Installation
AWS Update
AWS Paid SSL
DigitalOcean Installation
A secure connection (https)
Free domain with Freenom
Core concepts
Javascript
Creating a task
Deploying a task
API
Logger
Sequencer
Introduction
Templates
Inheritance
inheritanceAbstraction
inheritanceByData
inheritanceCustom
inheritanceExRandom
inheritanceRandom
inheritanceRepeat
inheritanceSeed
inheritanceSequential
Mixers
mixerBranch
mixerChoose
mixerMultiBranch
mixerRandom
mixerRepeat
mixerWeightedRandom
mixerWrapper
Sequencer
Variables
Current
Global
Local
Time sensitive tasks
Data
API
Settings
Media
Stimulus
Trial
Input
Interactions
Interactions - actions
Interactions - conditions
Stimuli \ Layout
Scorer
Examples
helloPlay
inheritance
input
interactions
sequence
settings
stimulus
stroop-block
stroop-inheritance
stroop-interactions
stroop-setup
stroop-task
touch
trial
Tutorials
Hello world
Slide show
Questionnaires
Introduction
Data
API
Settings
Pages
Questions
dropdown
Grid
Info
multiGrid
Rank
selectOne & selectMulti
Slider
Text & Textarea
textNumber
Examples
Body weight
bodyAwareness
buttons
buttonsAdvanced
buttonsOnePage
dependency
gridExample
liveDependency
nfc
openEnded
openEndedLong
playground
rateImages
rateImagesSizes
scaleWithFeedback
sliderExample
timer
userPrevResp
usingImages
Study Manager
Playground
API
Tasks
Custom tasks
Settings
Project Implicit Build
Task types
Allow Leaving
Inject Style
Is Touch
Messages
Post
Post CSV
Quest
Redirect
Set Value
Time
Yes/No
Examples
Show Video
Weight task
Resources
Edit this page
Create child page
Create documentation issue
Create project issue
Documentation
Time sensitive tasks
Examples
touch
touch
touch.js
Run
Download
// There are several changes required for support of touch devices. // This tutorial will show you how to fully support them in you tasks. define(['timeAPI'], function(APIconstructor) { var API = new APIconstructor(); API.addSequence([ { // ##### touch input // The input objects support a meta property: `touch`. // If touch is undefined then this input will always be used. // If it is set to true then the input will be used only in touch devices. // If it is set to false then the input will be used only in non touch devices. input: [ // This input will be available on touch devices too (mostly, it won't be available for lack of keyboard though) {handle:'end', on:'space'}, // But these will be available only on touch devices. // There are several touch targeted input shortcuts that you can use (they work for non touch devices too though). // These are `rightTouch`, `leftTouch`, `topTouch` and `bottomTouch`. </br> {handle:'end',on:'rightTouch', touch:true}, {handle:'end',on:'leftTouch', touch: true} ], // ##### touchMedia // Sometimes you want to display distinct media for touch devices. // For these cases, the stimulus object supports the `touchMedia` parameter // that accepts an alternative media object that will be displayed on touch devices instead of the regular one. // If a `touchMedia` parameter is not defined the regular media will be used instead. layout:[ { location:{top:20}, media:{word:'this will always be here'} }, { location:{bottom:20}, media:{word:'Only on regular'}, touchMedia:{word:'Only on touch'} } ], interactions: [ { conditions: [{type:'inputEquals',value:'end'}], actions: [{type:'endTrial'}] } ] } ]); return API.script; });
Last modified March 11, 2021:
setup hugo (11980dc)