Rev 13705 | 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 |
13705 | obado | 2 | textarea="data instruction" |
3 | iEdit="instruction" |
||
5281 | bpr | 4 | |
13705 | obado | 5 | :Write the word corresponding to the picture (or text presented) |
6 | Be careful, this model will only work well if you upload images on WIMS. |
||
5281 | bpr | 7 | <p> |
13705 | obado | 8 | To build an exercise with this model, |
9 | simply type the list of images and corresponding labels. |
||
5281 | bpr | 10 | </p> |
15179 | lemaire | 11 | |
13477 | obado | 12 | <p class="wims_credits"> |
15179 | lemaire | 13 | Author of the model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
5281 | bpr | 14 | </p> |
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
11544 | obado | 17 | Remove the above header if you destroy the model tags! (The lines starting |
18 | with a ':'.) Otherwise the exercise might not be taken back by Createxo. |
||
5281 | bpr | 19 | |
11544 | obado | 20 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
5281 | bpr | 21 | |
13705 | obado | 22 | :\title{Recognize a picture} |
5281 | bpr | 23 | :\author{Bernadette, Perrin-Riou} |
24 | :\email{bpr@math.u-psud.fr} |
||
5724 | bpr | 25 | :\credits{} |
13477 | obado | 26 | |
27 | :Instructions |
||
13705 | obado | 28 | \text{instruction=Write the word corresponding to the picture<br/> |
29 | <em>(the exercise will only work when you have uploaded images into the exercise)</em>} |
||
5281 | bpr | 30 | |
13477 | obado | 31 | :Data |
13705 | obado | 32 | \text{data=amphitheater.png, amphitheater |
33 | aqueduct.png, aqueduct |
||
34 | triumphal_arch.png, the triumphal arch |
||
35 | circus.png, circus |
||
36 | domus.png, domus |
||
37 | temple.png, temple |
||
38 | theater.png, theater |
||
39 | thermes.png, baths |
||
5281 | bpr | 40 | } |
41 | |||
13705 | obado | 42 | :Boxes size (in pixels) |
5281 | bpr | 43 | \text{sizeh=40} |
11544 | obado | 44 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
5281 | bpr | 45 | |
46 | \text{mot = randrow(\data)} |
||
7341 | bpr | 47 | \text{mot=wims(embraced randitem \mot)} |
5281 | bpr | 48 | \text{image=\mot[1]} |
49 | \text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))} |
||
50 | \text{mot =\mot[2]} |
||
51 | |||
52 | \statement{ |
||
13705 | obado | 53 | <div class="instructions">\instruction</div> |
54 | <div class="wimscenter"> |
||
55 | \if{\ext isitemof png,gif,jpg,jpeg}{ |
||
56 | \img{\imagedir/\image} |
||
57 | } |
||
58 | {\image} |
||
59 | </p> |
||
5281 | bpr | 60 | |
13705 | obado | 61 | <div class="wimscenter"> |
62 | \embed{r1,\sizeh |
||
5281 | bpr | 63 | default |
6946 | bpr | 64 | autocomplete="off"} |
13705 | obado | 65 | </div> |
5281 | bpr | 66 | } |
13705 | obado | 67 | |
6946 | bpr | 68 | \answer{}{\mot}{type=case} |