Rev 15179 | 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 | :Choose a label corresponding to the image (or text) presented |
6 | Be careful, this model will only work 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{Find the right label} |
5281 | bpr | 23 | :\author{Bernadette, Perrin-Riou} |
24 | :\email{bpr@math.u-psud.fr} |
||
5724 | bpr | 25 | :\credits{} |
13477 | obado | 26 | |
27 | :Instructions |
||
17175 | bpr | 28 | \text{instruction=Click on the word corresponding to the image.<br> |
13705 | obado | 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 | :How many disrupters |
5281 | bpr | 43 | \integer{cntpertub=3} |
13477 | obado | 44 | |
13705 | obado | 45 | :Boxes height (in pixels) |
5281 | bpr | 46 | \text{sizev=40} |
13477 | obado | 47 | |
13705 | obado | 48 | :Boxes width (in pixels) |
5281 | bpr | 49 | \text{sizeh=200} |
11544 | obado | 50 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
5281 | bpr | 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{ |
||
13705 | obado | 63 | <div class="instruction">\instruction</div> |
64 | <div class="wimscenter"> |
||
65 | \if{\ext isitemof png,gif,jpg,jpeg} |
||
66 | { |
||
67 | \img{\imagedir/\image} |
||
68 | } |
||
69 | {\image} |
||
70 | </div> |
||
71 | <p class="wimscenter"> |
||
72 | \embed{r1,\sizeh x \sizev} |
||
73 | </p> |
||
5281 | bpr | 74 | } |
11375 | bpr | 75 | \answer{}{\mot;\perturb}{type=clickfill} |