Subversion Repositories wimsdev

Rev

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
 
12171 mquerol 5
:Escriure el nom que correspongui a la imatge (o text presentat)
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{Reconèixer una imatge}
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=Escriviu la paraula corresponent a la imatge (l'exercici només funcionarà quan es carreguin les imatges
30
a l'exercici)}
5281 bpr 31
 
12171 mquerol 32
:Dades
5281 bpr 33
\text{data=amphitheatre.png,l'amphithéâtre
34
aqueduc.png, l'aqueduc
35
arcdetriomphe.png,l'arc de triomphe
36
cirque.png, le cirque
37
domus.png, la domus
38
temple.png, le temple
39
theatre.png, le théâtre
40
thermes.png, les termes
41
}
42
 
12171 mquerol 43
:La mida de les caixes en píxels
5281 bpr 44
\text{sizeh=40}
45
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
46
 
47
\text{mot = randrow(\data)}
12171 mquerol 48
\text{mot=wims(embraced randitem \mot)}
5281 bpr 49
\text{image=\mot[1]}
50
\text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))}
51
\text{mot =\mot[2]}
52
 
53
\statement{
54
\instruction
12171 mquerol 55
<p class="wimscenter">
7341 bpr 56
\if{\ext isitemof png,gif,jpg,jpeg}{
5281 bpr 57
  \img{\imagedir/\image}
58
  }
59
  {\image}</p>
60
 
12171 mquerol 61
<div class="wimscenter">
5281 bpr 62
\embed{r1,\sizeh
63
default
6946 bpr 64
autocomplete="off"}
12171 mquerol 65
</div>
5281 bpr 66
}
6946 bpr 67
\answer{}{\mot}{type=case}