Subversion Repositories wimsdev

Rev

Rev 13862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13862 Rev 16896
Line 1... Line 1...
1
slib_lang_exists_tmp=yes
1
slib_lang_exists_tmp=yes
2
slib_title=Plugin for JSXGraph
2
slib_title=Plugin for JSXGraph responsive
3
slib_parms=3\
3
slib_parms=3\
4
jsxbox,id of the jsxgraph board\
4
,id and name of the board of the JSXGraph applet in this order and separated by space.\
5
300 x 300, size : <span class="tt">width x height</span>\
5
,<span class="tt"><strong>[</strong>size , options separated by spaces<strong>]</strong></span> in square brackets.<ul><li>size: <span class="tt wims_code_words">width x height</span>(in px)</li><li>options:<ul><li><span class="tt wims_code_words">center</span> to center the applet in its parent;</li><li><span class="tt wims_code_words">resize</span> to resize point size according to screen size;</li><li><span class="tt wims_code_words">min</span>= <em>n</em>px or <em>n</em>% or ... to indicate the minimum width of the applet below which it cannot be reduced;</li><li><span class="tt wims_code_words">max</span>= <em>n</em>px or <em>n</em>% or ... to indicate the minimum width of the applet above which it cannot be enlarged;</li><li><span class="tt wims_code_words">nocssjs</span> to not call the CSS and javascript via the slib (see comments below);</li><li><span class="tt wims_code_words">scroll</span> to add a scroll bar in case of overflow.</li></ul></li></ul>\
6
,script
6
,script for construction in JSXGraph language.
7
 
7
 
8
slib_out=Figure in JSXgraph
8
slib_out=Figure in JSXGraph
-
 
9
slib_comment= <ul>\
-
 
10
<li>Backward compatibility: applets created with the old syntax (id,width x height,script) are still in non responsive mode but a scroll bar appears in case of overflow.</li>\
-
 
11
<li>By default, the CSS style and the javascript used by JSXGraph are automatically called by the slib \
-
 
12
unless the <span class="tt wims_code_words">nocssjs</span> option is set.<br/>\
-
 
13
In the case of the <span class="tt wims_code_words">nocssjs</span> option, \
-
 
14
it is then necessary to call the CSS and javascript with  \
-
 
15
<span class="nowrap">&lt;link rel="stylesheet" href="scripts/js/jsxgraph/jsxgraph.css"&gt;</span> \
-
 
16
and <span class="nowrap">&lt;script src="scripts/js/jsxgraph/jsxgraphcore.js" charset="utf-8"&gt;&lt;/script&gt;</span> \
-
 
17
in &#92;css{} for example for an OEF exercise.<br/></li>\
9
slib_comment= One can define some css style for jxgbox and .jsxgraph_button.\
18
<li>One can define some css style for .jxgbox and .jsxgraph_button.\
10
 For example \
19
 For example: \
11
 <pre>&lt;style>\
20
 <pre>&lt;style>\
12
.jxgbox {margin-left:auto;margin-right:auto}\
21
.jxgbox {margin-left:auto;margin-right:auto}\
13
.jsxgraph_button {text-align:center;}\
22
.jsxgraph_button {text-align:center;}\
14
&lt;/style></pre>
23
&lt;/style></pre></li>\
-
 
24
<ul>