Rev 10914 | Rev 12169 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=order |
23 | reyssat | 2 | textarea="data explain" |
3 | |||
4 | :Remettre en bon ordre des objets donnés, glisser-déposer. |
||
5 | |||
6 | On présente une liste d'objets, et il faut les trier selon l'ordre précisé |
||
7 | en les tirant vers les cases prévues avec la souris. |
||
8 | <p> |
||
9 | Pour construire un exercice avec ce modèle, il suffit d'entrer la liste |
||
10 | d'objets à trier et changer le texte explicatif. |
||
11 | <p> |
||
12 | Avec une petite modification, une variante de ce modèle peut accepter des |
||
13 | images comme objets. |
||
5131 | bpr | 14 | $image_help |
23 | reyssat | 15 | <p> |
8002 | bpr | 16 | Auteur du modèle : Gang Xiao <qualite@wimsedu.info> |
23 | reyssat | 17 | |
18 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
19 | |||
2880 | bpr | 20 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 21 | (Ce sont les lignes qui commencent par un ':'.) |
22 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
23 | |||
24 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
25 | |||
26 | :\title{Réordonner} |
||
5147 | bpr | 27 | :\author{XIAO, Gang} |
8002 | bpr | 28 | :\email{qualite@wimsedu.info} |
6132 | bpr | 29 | :\credits{} |
23 | reyssat | 30 | |
31 | :Nombre d'objets à trier par exercice. Jusqu'à 20. |
||
32 | Si ce nombre est plus petit que les objets disponibles, une partie tirée au |
||
33 | hasard des objets seront présentés. <p> |
||
34 | Si ce nombre est plus grand que les objets disponibles, il sera ramené au |
||
35 | nombre d'objets. |
||
36 | \integer{tot=6} |
||
37 | |||
38 | :La taille des objets à glisser, en pixels, x fois y. |
||
39 | Pensez aux gens qui augmentent la taille de polices de leurs navigateurs ! |
||
40 | Ne mettez pas les cases trop petites. |
||
41 | \text{size=80x40} |
||
42 | |||
43 | :La liste d'objets à réordonner |
||
44 | Ecrivez les objets dans le bon ordre, séparés par des virgules. |
||
45 | \text{data=Mercure,Vénus,Terre,Mars,Jupiter,Saturne,Uranus,Neptune} |
||
46 | |||
47 | :Le texte qui explique ce qu'il faut faire. |
||
48 | \text{explain= |
||
4674 | bpr | 49 | Mettre les planètes suivantes du système solaire dans le bon ordre, la plus proche |
23 | reyssat | 50 | du Soleil en premier. |
51 | } |
||
52 | |||
53 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
||
10914 | bpr | 54 | \text{data=randomrow(\data)} |
23 | reyssat | 55 | \integer{datacnt=items(\data)} |
56 | \integer{tot=min(20,min(\tot,\datacnt))} |
||
57 | \if{\tot<\datacnt}{ |
||
58 | \text{sh=shuffle(\datacnt)} |
||
59 | \text{sh=wims(sort numeric items \sh[1..\tot])} |
||
60 | \text{data=item(\sh,\data)} |
||
61 | } |
||
62 | |||
63 | \text{st=wims(makelist r x for x=1 to \tot)} |
||
64 | \steps{\st} |
||
65 | |||
66 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
67 | |||
68 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
69 | |||
70 | \statement{\explain |
||
6132 | bpr | 71 | <table class="wimsnoborder"><tr> |
23 | reyssat | 72 | \for{k=1 to \tot}{<td>\embed{r\k,\size}</td>} |
73 | </tr></table> |
||
74 | } |
||
75 | |||
76 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
77 | |||
78 | \answer{1}{\data[1]}{type=dragfill} |
||
79 | \answer{2}{\data[2]}{type=dragfill} |
||
80 | \answer{3}{\data[3]}{type=dragfill} |
||
81 | \answer{4}{\data[4]}{type=dragfill} |
||
82 | \answer{5}{\data[5]}{type=dragfill} |
||
83 | \answer{6}{\data[6]}{type=dragfill} |
||
84 | \answer{7}{\data[7]}{type=dragfill} |
||
85 | \answer{8}{\data[8]}{type=dragfill} |
||
86 | \answer{9}{\data[9]}{type=dragfill} |
||
87 | \answer{10}{\data[10]}{type=dragfill} |
||
88 | \answer{11}{\data[11]}{type=dragfill} |
||
89 | \answer{12}{\data[12]}{type=dragfill} |
||
90 | \answer{13}{\data[13]}{type=dragfill} |
||
91 | \answer{14}{\data[14]}{type=dragfill} |
||
92 | \answer{15}{\data[15]}{type=dragfill} |
||
93 | \answer{16}{\data[16]}{type=dragfill} |
||
94 | \answer{17}{\data[17]}{type=dragfill} |
||
95 | \answer{18}{\data[18]}{type=dragfill} |
||
96 | \answer{19}{\data[19]}{type=dragfill} |
||
97 | \answer{20}{\data[20]}{type=dragfill} |
||
98 |