Subversion Repositories wimsdev

Rev

Rev 11375 | Rev 13477 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11375 bpr 1
type=imaudio
5281 bpr 2
textarea="data"
3
 
5724 bpr 4
:Choisir une étiquette correspondant à l'image (ou au texte présenté)
5281 bpr 5
Attention, ce modèle ne fonctionnera bien que si vous chargez les images sur wims.
6
<p>
7
Pour construire un exercice avec ce modèle, il suffit de taper la liste des images et
8
des étiquettes correspondantes
9
</p>
10
$image_help
11
<p>
11544 obado 12
Author of the model: Bernadette Perrin-Riou <bpr@math.u-psud.fr>
5281 bpr 13
</p>
14
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
15
 
11544 obado 16
Remove the above header if you destroy the model tags! (The lines starting
17
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
5281 bpr 18
 
11544 obado 19
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
5281 bpr 20
 
21
 
22
:\title{Trouver la bonne étiquette}
23
:\author{Bernadette, Perrin-Riou}
24
:\email{bpr@math.u-psud.fr}
5724 bpr 25
:\credits{}
5281 bpr 26
:Consigne
27
\text{instruction=Clique sur le mot correspondant à l'image.
28
(l'exercice ne fonctionnera que quand les images seront chargées
29
dans l'exercice)}
30
 
31
:Données
32
\text{data=amphitheatre.png,l'amphithéâtre
33
aqueduc.png, l'aqueduc
34
arcdetriomphe.png,l'arc de triomphe
35
cirque.png, le cirque
36
domus.png, la domus
37
temple.png, le temple
38
theatre.png, le théâtre
39
thermes.png, les thermes
40
}
41
 
42
:Nombre de perturbateurs.
43
\integer{cntpertub=3}
44
:La taille verticale des cases en pixels.
45
\text{sizev=40}
46
:La taille horizontale des cases en pixels
47
\text{sizeh=200}
11544 obado 48
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
5281 bpr 49
 
50
\text{mot = randrow(\data)}
51
\text{image=\mot[1]}
52
\text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))}
53
\text{mot =\mot[2]}
54
\text{liste=column(2, \data)}
55
\text{perturb=wims(listcomplement \mot in \liste)}
56
\text{perturb=shuffle(\perturb)}
57
\text{perturb=\perturb[1..\cntpertub]}
58
 
59
 
60
\statement{
61
\instruction
5723 bpr 62
<p class="wimscenter">
5639 bpr 63
\if{\ext isitemof png,gif,jpg,jpeg}{
5281 bpr 64
  \img{\imagedir/\image}
65
  }
66
  {\image}</p>
67
 
5723 bpr 68
<p class="wimscenter">
5281 bpr 69
\embed{r1,\sizeh x \sizev}
70
</p>
71
}
11375 bpr 72
\answer{}{\mot;\perturb}{type=clickfill}