Rev 6539 | Rev 7097 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6539 | Rev 6946 | ||
---|---|---|---|
Line 225... | Line 225... | ||
225 | \text{data_q=\data10!= ? wims(append item 10 to \data_q)} |
225 | \text{data_q=\data10!= ? wims(append item 10 to \data_q)} |
226 | 226 | ||
227 | 227 | ||
228 | \integer{cnt_question=items(\data_q)} |
228 | \integer{cnt_question=items(\data_q)} |
229 | 229 | ||
230 | \text{autocompletion=\format iswordof case ? |
230 | \text{autocompletion=\format iswordof case ? autocomplete="off"} |
231 | \text{player=wims(replace internal - by in \player)} |
231 | \text{player=wims(replace internal - by in \player)} |
232 | 232 | ||
233 | \integer{first_step=\first_step notwordof 0 ? 1} |
233 | \integer{first_step=\first_step notwordof 0 ? 1} |
234 | \text{option_reaccent=\reaccent!=yes ? noreaccent:} |
234 | \text{option_reaccent=\reaccent!=yes ? noreaccent:} |
235 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
235 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
236 | 236 | ||
237 | \text{audio=\audio_file notsametext and \audio_file notsametext no? |
237 | \text{audio=\audio_file notsametext and \audio_file notsametext no? |
238 | < |
238 | <div class="wimscenter">slib(media/audio \imagedir/\audio_file,\player_option,player=\player)</div>} |
239 | 239 | ||
240 | \text{image=\image_file notsametext and \image_file notsametext no? |
240 | \text{image=\image_file notsametext and \image_file notsametext no? |
241 | wims(makelist <img src="\imagedir/x " alt=""/> for x in \image_file)} |
241 | wims(makelist <img src="\imagedir/x " alt="" /> for x in \image_file)} |
242 | 242 | ||
243 | \if{\video_file notsametext and \video_file notsametext no}{ |
243 | \if{\video_file notsametext and \video_file notsametext no}{ |
244 | \text{video_file=http notin \video_file ? \imagedir/\video_file} |
244 | \text{video_file=http notin \video_file ? \imagedir/\video_file} |
245 | \text{video=\video_file notsametext ? <a target="wims_external" href="\video_file">[video] </a |
245 | \text{video=\video_file notsametext ? <a target="wims_external" href="\video_file">[video] </a>} |
246 | } |
246 | } |
247 | 247 | ||
248 | \text{style = <style type="text/css"> |
248 | \text{style = <style type="text/css"> |
249 | .enonce{margin-bottom:0} |
249 | .enonce{margin-bottom:0} |
250 | .feedback{border:1px dashed grey;padding:0.5em;margin:0;} |
250 | .feedback{border:1px dashed grey;padding:0.5em;margin:0;} |
Line 297... | Line 297... | ||
297 | \text{inst_image=wims(getopt image in \preliminaire_test)} |
297 | \text{inst_image=wims(getopt image in \preliminaire_test)} |
298 | \text{inst_title=wims(getopt title in \preliminaire_test)} |
298 | \text{inst_title=wims(getopt title in \preliminaire_test)} |
299 | \text{inst_intro=wims(getopt intro in \preliminaire_test)} |
299 | \text{inst_intro=wims(getopt intro in \preliminaire_test)} |
300 | \text{test_inst=\inst_audio\inst_image\inst_title\inst_intro notsametext ? 1 : 0} |
300 | \text{test_inst=\inst_audio\inst_image\inst_title\inst_intro notsametext ? 1 : 0} |
301 | \text{rab_inst=} |
301 | \text{rab_inst=} |
302 | \text{rab_inst=\inst_title notsametext ?\rab_inst< |
302 | \text{rab_inst=\inst_title notsametext ?\rab_inst<div class="wimscenter">\inst_title</div>} |
303 | \text{rab_inst=\inst_intro notsametext ?\rab_inst \inst_intro} |
303 | \text{rab_inst=\inst_intro notsametext ?\rab_inst \inst_intro} |
304 | \text{rab_inst=\inst_image notsametext ? \rab_inst < |
304 | \text{rab_inst=\inst_image notsametext ? \rab_inst <div class="wimscenter"><img src="\imagedir/\inst_image" alt="" /></div>} |
305 | \if{\inst_audio notsametext }{ |
305 | \if{\inst_audio notsametext }{ |
306 | \text{rab_inst1= . isin \inst_audio or \packs= ? |
306 | \text{rab_inst1= . isin \inst_audio or \packs= ? |
307 | slib(media/audio \imagedir/\inst_audio,\player_option,player=\player):slib(lang/swac \inst_audio,\packs,player=\player,\player_option)} |
307 | slib(media/audio \imagedir/\inst_audio,\player_option,player=\player):slib(lang/swac \inst_audio,\packs,player=\player,\player_option)} |
308 | \text{rab_inst=\rab_inst < |
308 | \text{rab_inst=\rab_inst <div class="wimscenter">\rab_inst1[1;1]</div>} |
309 | } |
309 | } |
310 | \text{preliminaire=\test_inst=1 ? \rab_inst: } |
310 | \text{preliminaire=\test_inst=1 ? \rab_inst: } |
311 | \text{QUEST=\test_inst=1 ? wims(line 2 to -1 of \QUEST)} |
311 | \text{QUEST=\test_inst=1 ? wims(line 2 to -1 of \QUEST)} |
312 | \matrix{QUEST=\accolade=1 ?wims(embraced randitem \QUEST):\QUEST} |
312 | \matrix{QUEST=\accolade=1 ?wims(embraced randitem \QUEST):\QUEST} |
313 | \matrix{question = \question |
313 | \matrix{question = \question |
Line 398... | Line 398... | ||
398 | \if{\reading notsametext }{\special{help reading,[à lire]}} |
398 | \if{\reading notsametext }{\special{help reading,[à lire]}} |
399 | \if{\image notsametext }{\special{help image,[à regarder]}} |
399 | \if{\image notsametext }{\special{help image,[à regarder]}} |
400 | \audio\video |
400 | \audio\video |
401 | \for{h=1 to \etape[\step]}{ |
401 | \for{h=1 to \etape[\step]}{ |
402 | \if{(\h <= \etape[\step] - \N or r \h isitemof \nstep) and \question[\h;] notsametext }{ |
402 | \if{(\h <= \etape[\step] - \N or r \h isitemof \nstep) and \question[\h;] notsametext }{ |
403 | < |
403 | <div class="enonce"> |
404 | \if{\cnt_step > 1 and \MAX > 1}{\h : } \PRELIMINAIRE[\h;] |
404 | \if{\cnt_step > 1 and \MAX > 1}{\h : } \PRELIMINAIRE[\h;] |
405 | \question[\h;]</ |
405 | \question[\h;]</div> |
406 | } |
406 | } |
407 | \if{\h <= \etape[\step] - \N and \question[\h;] notsametext}{ |
407 | \if{\h <= \etape[\step] - \N and \question[\h;] notsametext}{ |
408 | <div class="reponse"> |
408 | <div class="reponse"> |
409 | \qcm_prompt1 |
409 | \qcm_prompt1 |
410 | \for{ a in \REP[\h;]}{ |
410 | \for{ a in \REP[\h;]}{ |
Line 426... | Line 426... | ||
426 | \for{s=1 to \CNT_choix[\h]}{ |
426 | \for{s=1 to \CNT_choix[\h]}{ |
427 | \if{\s isitemof \rep[\h;]}{ <li>\CHOIX[\h;\s]</li>} |
427 | \if{\s isitemof \rep[\h;]}{ <li>\CHOIX[\h;\s]</li>} |
428 | } |
428 | } |
429 | </ul> |
429 | </ul> |
430 | } |
430 | } |
431 | \if{\explication[\h;] notsametext }{< |
431 | \if{\explication[\h;] notsametext }{<div class="feedback">\explication[\h;]</div>} |
432 | </div> |
432 | </div> |
433 | } |
433 | } |
434 | { \if{ r \h isitemof \nstep}{ |
434 | { \if{ r \h isitemof \nstep}{ |
435 | <div class="question"> |
435 | <div class="question"> |
436 | <ol> |
436 | <ol> |