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