Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
17192 bpr 1
:signification
2
 Met des champs de types de réponses texte dans une figure JSXGraph.
3
 Doit être utilisé dans le <span class="tt wims_code_words">statement</span> d'un exercice OEF.
4
 
5
<p>
6
La première ligne est formée du script JSXGraph mise entre crochets, suivie du formatage css
7
  des champs input entre crochet . Le mot clef noanswer peut-être utilisé si on ne souhaite
8
  pas la correction.
9
 Les endroits d'insertion de la réponse sont marqués dans le graphique en précisant les coordonnées
10
  par le mot reply<span class="tt">n</span>.
11
 Les lignes suivantes sont de la forme
12
</p>
13
 <pre>reply<span class="tt">n</span>,coordinate ,word before input ,css</pre>
14
 où <span class="tt">coordinate</span> est l'endroit du champ de réponse de la forme x x y,
15
 <span class="tt">word before input</span> un mot avant la champ input (facultatif).
16
  <span class="tt">css</span> un code css (facultatif).
17
 
18
:example
19
 <div class="wims_help_bloc example">
20
 <h2>Exemples</h2>
21
<div class="spacer">
22
<textarea id="wims_show61" cols="100" rows="9" readonly="readonly">
23
\text{script=jsxbox brd,[300 x 300,min=200px max=400px],
24
var brd = JXG.JSXGraph.initBoard('jsxbox', {axis:true,originX: 150, originY: 150, unitX: 10, unitY: 10});
25
p1 = brd.create('point', [-2,1]);
26
p2 = brd.create('point', [0,function () { return p1.X();}]);
27
brd.create('line',[p1,p2]);}
28
 
29
\statement{
17199 bpr 30
\special{jsxgraphinput [\script],['width:5em',Color:'red'],
17192 bpr 31
reply 1,3x4,avant=,['width:4em',maxlength: 2,Color:'green']
32
reply 2,3x-4,blabla=}
33
}
34
\answer{}{x^2}{type=formal}
35
\answer{}{2}{type=numeric}
36
</textarea>
37
</div>