Rev 13705 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=game |
13705 | obado | 2 | textarea="data instruction1 instruction2" |
3 | iEdit="instruction1 instruction2" |
||
7994 | bpr | 4 | |
13705 | obado | 5 | :We show a text or an image for a limited time but at the student's choice then we ask a question |
7994 | bpr | 6 | |
7 | <div class="small"> |
||
13705 | obado | 8 | This exercise can easily be transformed to be included in an OEF module |
9 | if you want to put the data into an auxiliary file. |
||
10 | To do this, simply fill in the \text{file=} field by putting the name of the file |
||
11 | (once the exercise has been transferred to an OEF module of a Modtool account). |
||
12 | A more complete exercise of the same type exists in Quicktool. |
||
7994 | bpr | 13 | </div> |
13477 | obado | 14 | <p class="wims_credits"> |
15179 | lemaire | 15 | Author of the model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
13477 | obado | 16 | </p> |
7994 | bpr | 17 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
18 | |||
11544 | obado | 19 | Remove the above header if you destroy the model tags! (The lines starting |
20 | with a ':'.) Otherwise the exercise might not be taken back by Createxo. |
||
7994 | bpr | 21 | |
11544 | obado | 22 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
7994 | bpr | 23 | |
13705 | obado | 24 | :\title{Memorize a text} |
7994 | bpr | 25 | :\author{Bernadette, Perrin-Riou} |
26 | :\email{bpr@math.u-psud.fr} |
||
27 | :\credits{} |
||
28 | |||
13705 | obado | 29 | :Instructions at the first step |
30 | \text{instruction1=Memorize the following text, and then click the start button.} |
||
7994 | bpr | 31 | |
13705 | obado | 32 | :Minimum, maximum tolerated time (in milliseconds) |
33 | \text{time=100,100000} |
||
13477 | obado | 34 | |
13705 | obado | 35 | :Instructions at the second step |
36 | \text{instruction2=Write the number you read.} |
||
7994 | bpr | 37 | |
13705 | obado | 38 | :Type of answer at the second step |
39 | \text{atype=item(2,symtext, |
||
7994 | bpr | 40 | numeric,function)} |
13477 | obado | 41 | |
42 | :Data |
||
13705 | obado | 43 | Define one question per line. |
44 | The first item is shown in the first step. |
||
45 | The answer to the second question is to be put in the second item. |
||
46 | If there is none, the first text would be requested. |
||
7994 | bpr | 47 | |
13705 | obado | 48 | \text{data=two,2 |
49 | foor,4 |
||
50 | one,1} |
||
13477 | obado | 51 | |
13705 | obado | 52 | :Options in the case of symtext |
53 | Option words can be taken from "nopunct", "nocase", "case" |
||
7994 | bpr | 54 | |
55 | \text{option=} |
||
56 | |||
11544 | obado | 57 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
13705 | obado | 58 | \css{<style> |
59 | .texte {border:solid black 1pt; padding:2em; margin:3em;text-align:center;} |
||
7994 | bpr | 60 | </style>} |
61 | |||
62 | \text{data=randrow(\data)} |
||
63 | |||
64 | \text{STEP=r1 |
||
65 | r2} |
||
66 | \steps{\STEP} |
||
67 | \text{cnt=items(\data)} |
||
68 | \if{\cnt>1}{ |
||
69 | \text{question1=\data[1..-2]} |
||
70 | \text{question2=\data[-1]} |
||
71 | }{ |
||
72 | \text{question1=\data} |
||
73 | \text{question2=\data} |
||
74 | } |
||
75 | \statement{ |
||
76 | \if{\step=1}{ |
||
77 | <div class="instruction">\instruction1</div> |
||
78 | <div class="texte">\question1</div> |
||
79 | \embed{r1} |
||
80 | } |
||
81 | \if{\step >= 2}{ |
||
82 | <div class="instruction">\instruction2</div> |
||
83 | <div class="wimscenter">\embed{r2,50}</div> |
||
84 | } |
||
85 | } |
||
86 | \answer{}{\time}{type=time}{option=nonstop noanalyzeprint}{weight=0} |
||
87 | \answer{}{\question2}{type=\type}{option=\option}{weight=100} |