Subversion Repositories wimsdev

Rev

Rev 15188 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2544 bpr 1
###################
2
\title{}
3
\author{}
4
\email{}
14285 bpr 5
\css{<style>
3546 bpr 6
   .question {_style_question}
7
   .reponse {_style_reponse}
14584 bpr 8
   .prompt {}
9
   .instruction{}
3546 bpr 10
   _style_css
11
 </style>}
2544 bpr 12
\language{fr}
13
\computeanswer{no}
14
\format{html}
15
\text{file=}
16
\text{notepad=slib(utilities/notepad Notepad,small)}
17
\text{instruction=asis()}
18
\text{instruction2=asis()}
19
\text{choice=}
20
\text{common=}
21
\text{audio_file=}
22
\text{reading_file=}
23
\text{image_file=}
24
\text{video_file=}
25
\text{alea=}
26
\text{size=}
27
\text{partialscore=}
28
\text{percent=}
29
\text{aucune=}
30
\text{format=}
3776 bpr 31
\text{format0=}
2544 bpr 32
\text{specialhelp1=}
33
\text{specialhelp2=}
34
\text{specialhelp3=}
3693 bpr 35
\text{specialhelp4=}
2544 bpr 36
\text{helpprompt=}
37
\text{reaccent=}
38
\text{paste=}
39
\text{pos_rep=}
40
\text{second_step=}
41
\text{first_step=}
42
\text{answer_given=}
43
\text{try=}
44
\text{packs=}
45
\text{player=}
46
\text{player_option=}
47
#####################
15188 bpr 48
\text{presentgood=}
2544 bpr 49
\text{file0=randitem(\file)}
50
\integer{cnt_question= wims(recordcnt \file0)}
51
 
52
################
53
\text{MAX=}
54
\text{N=}
55
\text{M=}
56
################
3776 bpr 57
\text{option=\format0 iswordof flashcard?show}
58
\text{ff=\format0 iswordof flashcard ?s;&nbsp;}
13772 lemaire 59
\text{autocompletion=\format iswordof case nocase ? autocomplete="off"}
2544 bpr 60
\text{player=wims(replace internal - by in \player)}
3693 bpr 61
\text{specialhelp=\specialhelp1,\specialhelp2,\specialhelp3,\specialhelp4}
2544 bpr 62
\text{helpprompt=\helpprompt = ?++>}
63
\integer{first_step=\first_step notwordof 0 ? 1}
64
\text{option_reaccent=\reaccent!=yes ? noreaccent:}
65
\text{nopaste=\paste issametext no ? slib(utilities/nopaste )}
66
 
67
\text{instruction=\instruction issametext ? wims(getdef instruction in \file0)}
4437 bpr 68
\text{instruction=wims(\instruction)}
2544 bpr 69
\text{instruction2=\instruction2 issametext ? wims(getdef instruction2 in \file0)}
4437 bpr 70
\text{instruction2=wims(\instruction2)}
2544 bpr 71
\text{size=\size issametext ? wims(getdef size in \file0)}
72
\text{reading_file=\reading_file issametext ? wims(getdef reading_file in \file0)}
73
\text{reading = wims(record 0 of \reading_file)}
4437 bpr 74
\text{reading=wims(\reading)}
2544 bpr 75
\text{audio_file = \audio_file issametext ? wims(getdef audio_file in \file0)}
11366 bpr 76
\text{audio=\audio_file notsametext and \audio_file notsametext no?
6943 bpr 77
<div class="wimscenter">slib(media/audio \imagedir/\audio_file,\player_option,player=\player)</div>}
2544 bpr 78
 
79
\text{image_file=\image_file issametext ? wims(getdef image_file in \file0)}
11366 bpr 80
\text{image=\image_file notsametext and \image_file notsametext no?
17180 bpr 81
wims(makelist <img src="\imagedir/x " alt=""> for x in \image_file)}
2544 bpr 82
 
83
\text{video_file=\video_file issametext ? wims(getdef video_file in \file0)}
11366 bpr 84
\if{\video_file notsametext and \video_file notsametext no}{
2544 bpr 85
  \text{video_file=http notin \video_file ? \imagedir/\video_file}
6943 bpr 86
\text{video=\video_file notsametext ? <div><a target="wims_external" href="\video_file">VIDEO</a></div>}
2544 bpr 87
}
88
\text{choix=\choice issametext ? wims(getdef choice in \file0):\choice}
89
 
90
\text{try =\try notwordof 1 2 3 4 5 6 7 8 9 10 ? 1}
91
\text{size=\format iswordof dragfill clickfill ? \size x 1}
92
\integer{N = min(\cnt_question,\N)}
93
\integer{MAX=min(\N*\MAX,\cnt_question)}
94
\text{battage=\alea issametext yes ? shuffle(\cnt_question) :
95
wims(makelist x for x = 1 to \cnt_question)}