Subversion Repositories wimsdev

Rev

Rev 13476 | 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
13716 obado 2
textarea="data instruction"
3
iEdit="instruction"
5281 bpr 4
 
12172 mquerol 5
:Triar l'etiqueta corresponent a la imatge (o al text que es presenta)
12171 mquerol 6
Tingueu present que aquest model només funcionarà bé si carregueu les imatges a wims.
5281 bpr 7
<p>
12171 mquerol 8
Per construir un exercici amb aquest model, simplement escriu la llista d'imatges i
9
etiquetes corresponents
5281 bpr 10
</p>
11
$image_help
13476 obado 12
<p class="wims_credits">
12171 mquerol 13
Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr>
5281 bpr 14
</p>
15
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
16
 
17
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
18
(Ce sont les lignes qui commencent par un ':'.)
19
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
20
 
21
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
22
 
23
 
12171 mquerol 24
:\title{Trobar l'etiqueta correcta}
5281 bpr 25
:\author{Bernadette, Perrin-Riou}
26
:\email{bpr@math.u-psud.fr}
12171 mquerol 27
:\credits{}
13476 obado 28
 
12171 mquerol 29
:Enunciat
30
\text{instruction=Feu clic a la paraula corresponent a la imatge.
31
(L'exercici només funcionarà quan es carreguin les imatges
32
a l'exercici)}
5281 bpr 33
 
12171 mquerol 34
:Dades
5281 bpr 35
\text{data=amphitheatre.png,l'amphithéâtre
36
aqueduc.png, l'aqueduc
37
arcdetriomphe.png,l'arc de triomphe
38
cirque.png, le cirque
39
domus.png, la domus
40
temple.png, le temple
41
theatre.png, le théâtre
42
thermes.png, les thermes
43
}
44
 
12171 mquerol 45
:Nombre de disruptors
5281 bpr 46
\integer{cntpertub=3}
12171 mquerol 47
:La mida vertical de les caixes en píxels
5281 bpr 48
\text{sizev=40}
12171 mquerol 49
:La mida horitzontal de les caixes en píxels
5281 bpr 50
\text{sizeh=200}
51
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
52
 
53
\text{mot = randrow(\data)}
54
\text{image=\mot[1]}
55
\text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))}
56
\text{mot =\mot[2]}
57
\text{liste=column(2, \data)}
58
\text{perturb=wims(listcomplement \mot in \liste)}
59
\text{perturb=shuffle(\perturb)}
60
\text{perturb=\perturb[1..\cntpertub]}
61
 
62
 
63
\statement{
64
\instruction
12171 mquerol 65
<p class="wimscenter">
5639 bpr 66
\if{\ext isitemof png,gif,jpg,jpeg}{
5281 bpr 67
  \img{\imagedir/\image}
68
  }
69
  {\image}</p>
70
 
12171 mquerol 71
<p class="wimscenter">
5281 bpr 72
\embed{r1,\sizeh x \sizev}
73
</p>
74
}
11375 bpr 75
\answer{}{\mot;\perturb}{type=clickfill}