Rev 16896 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6584 | bpr | 1 | slib_lang_exists_tmp=yes |
16896 | gmarbeuf | 2 | slib_title=Plugin for JSXGraph responsive |
6584 | bpr | 3 | slib_parms=3\ |
16896 | gmarbeuf | 4 | ,id and name of the board of the JSXGraph applet in this order and separated by space.\ |
18587 | gmarbeuf | 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">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>\ |
16896 | gmarbeuf | 6 | ,script for construction in JSXGraph language. |
6584 | bpr | 7 | |
16896 | gmarbeuf | 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>\ |
||
18587 | gmarbeuf | 11 | <li>The embedded version of JSXGraph is 1.11.1 (new functions and 3D objects).</li>\ |
16896 | gmarbeuf | 12 | <li>By default, the CSS style and the javascript used by JSXGraph are automatically called by the slib \ |
13 | unless the <span class="tt wims_code_words">nocssjs</span> option is set.<br/>\ |
||
14 | In the case of the <span class="tt wims_code_words">nocssjs</span> option, \ |
||
15 | it is then necessary to call the CSS and javascript with \ |
||
16 | <span class="nowrap"><link rel="stylesheet" href="scripts/js/jsxgraph/jsxgraph.css"></span> \ |
||
17 | and <span class="nowrap"><script src="scripts/js/jsxgraph/jsxgraphcore.js" charset="utf-8"></script></span> \ |
||
18 | in \css{} for example for an OEF exercise.<br/></li>\ |
||
19 | <li>One can define some css style for .jxgbox and .jsxgraph_button.\ |
||
20 | For example: \ |
||
13862 | obado | 21 | <pre><style>\ |
6584 | bpr | 22 | .jxgbox {margin-left:auto;margin-right:auto}\ |
23 | .jsxgraph_button {text-align:center;}\ |
||
16896 | gmarbeuf | 24 | </style></pre></li>\ |
25 | <ul> |