Rev 13705 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
type=imaudio
textarea="data instruction"
iEdit="instruction"
:Write the word corresponding to the picture (or text presented)
Be careful, this model will only work well if you upload images on WIMS.
<p>
To build an exercise with this model,
simply type the list of images and corresponding labels.
</p>
<p class="wims_credits">
Author of the model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a>
</p>
:%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%%
Remove the above header if you destroy the model tags! (The lines starting
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
:\title{Recognize a picture}
:\author{Bernadette, Perrin-Riou}
:\email{bpr@math.u-psud.fr}
:\credits{}
:Instructions
\text{instruction=Write the word corresponding to the picture<br/>
<em>(the exercise will only work when you have uploaded images into the exercise)</em>}
:Data
\text{data=amphitheater.png, amphitheater
aqueduct.png, aqueduct
triumphal_arch.png, the triumphal arch
circus.png, circus
domus.png, domus
temple.png, temple
theater.png, theater
thermes.png, baths
}
:Boxes size (in pixels)
\text{sizeh=40}
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
\text{mot = randrow(\data)}
\text{mot=wims(embraced randitem \mot)}
\text{image=\mot[1]}
\text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))}
\text{mot =\mot[2]}
\statement{
<div class="instructions">\instruction</div>
<div class="wimscenter">
\if{\ext isitemof png,gif,jpg,jpeg}{
\img{\imagedir/\image}
}
{\image}
</p>
<div class="wimscenter">
\embed{r1,\sizeh
default
autocomplete="off"}
</div>
}
\answer{}{\mot}{type=case}