Rev 5147 | Rev 6132 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | type=first |
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> |
16 | Auteur du modèle : Gang Xiao <xiao@unice.fr> |
||
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} |
23 | reyssat | 28 | :\email{xiao@unice.fr} |
29 | |||
30 | :Nombre d'objets à trier par exercice. Jusqu'à 20. |
||
31 | Si ce nombre est plus petit que les objets disponibles, une partie tirée au |
||
32 | hasard des objets seront présentés. <p> |
||
33 | Si ce nombre est plus grand que les objets disponibles, il sera ramené au |
||
34 | nombre d'objets. |
||
35 | \integer{tot=6} |
||
36 | |||
37 | :La taille des objets à glisser, en pixels, x fois y. |
||
38 | Pensez aux gens qui augmentent la taille de polices de leurs navigateurs ! |
||
39 | Ne mettez pas les cases trop petites. |
||
40 | \text{size=80x40} |
||
41 | |||
42 | :La liste d'objets à réordonner |
||
43 | Ecrivez les objets dans le bon ordre, séparés par des virgules. |
||
44 | \text{data=Mercure,Vénus,Terre,Mars,Jupiter,Saturne,Uranus,Neptune} |
||
45 | |||
46 | :Le texte qui explique ce qu'il faut faire. |
||
47 | \text{explain= |
||
4674 | bpr | 48 | Mettre les planètes suivantes du système solaire dans le bon ordre, la plus proche |
23 | reyssat | 49 | du Soleil en premier. |
50 | } |
||
51 | |||
52 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
||
53 | |||
54 | \integer{datacnt=items(\data)} |
||
55 | \integer{tot=min(20,min(\tot,\datacnt))} |
||
56 | \if{\tot<\datacnt}{ |
||
57 | \text{sh=shuffle(\datacnt)} |
||
58 | \text{sh=wims(sort numeric items \sh[1..\tot])} |
||
59 | \text{data=item(\sh,\data)} |
||
60 | } |
||
61 | |||
62 | \text{st=wims(makelist r x for x=1 to \tot)} |
||
63 | \steps{\st} |
||
64 | |||
65 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
66 | |||
67 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
68 | |||
69 | \statement{\explain |
||
4177 | bpr | 70 | <p><table border="0"><tr> |
23 | reyssat | 71 | \for{k=1 to \tot}{<td>\embed{r\k,\size}</td>} |
72 | </tr></table> |
||
73 | } |
||
74 | |||
75 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
76 | |||
77 | \answer{1}{\data[1]}{type=dragfill} |
||
78 | \answer{2}{\data[2]}{type=dragfill} |
||
79 | \answer{3}{\data[3]}{type=dragfill} |
||
80 | \answer{4}{\data[4]}{type=dragfill} |
||
81 | \answer{5}{\data[5]}{type=dragfill} |
||
82 | \answer{6}{\data[6]}{type=dragfill} |
||
83 | \answer{7}{\data[7]}{type=dragfill} |
||
84 | \answer{8}{\data[8]}{type=dragfill} |
||
85 | \answer{9}{\data[9]}{type=dragfill} |
||
86 | \answer{10}{\data[10]}{type=dragfill} |
||
87 | \answer{11}{\data[11]}{type=dragfill} |
||
88 | \answer{12}{\data[12]}{type=dragfill} |
||
89 | \answer{13}{\data[13]}{type=dragfill} |
||
90 | \answer{14}{\data[14]}{type=dragfill} |
||
91 | \answer{15}{\data[15]}{type=dragfill} |
||
92 | \answer{16}{\data[16]}{type=dragfill} |
||
93 | \answer{17}{\data[17]}{type=dragfill} |
||
94 | \answer{18}{\data[18]}{type=dragfill} |
||
95 | \answer{19}{\data[19]}{type=dragfill} |
||
96 | \answer{20}{\data[20]}{type=dragfill} |
||
97 |