File: jsxgraph

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (24 lines) | stat: -rw-r--r-- 2,236 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
slib_lang_exists_tmp=yes
slib_title=Plugin for JSXGraph responsive
slib_parms=3\
,id and name of the board of the JSXGraph applet in this order and separated by space.\
,<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>\
,script for construction in JSXGraph language.

slib_out=Figure in JSXGraph
slib_comment= <ul>\
<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>\
<li>By default, the CSS style and the javascript used by JSXGraph are automatically called by the slib \
unless the <span class="tt wims_code_words">nocssjs</span> option is set.<br/>\
In the case of the <span class="tt wims_code_words">nocssjs</span> option, \
it is then necessary to call the CSS and javascript with  \
<span class="nowrap">&lt;link rel="stylesheet" href="scripts/js/jsxgraph/jsxgraph.css"&gt;</span> \
and <span class="nowrap">&lt;script src="scripts/js/jsxgraph/jsxgraphcore.js" charset="utf-8"&gt;&lt;/script&gt;</span> \
in &#92;css{} for example for an OEF exercise.<br/></li>\
<li>One can define some css style for .jxgbox and .jsxgraph_button.\
 For example: \
 <pre>&lt;style>\
.jxgbox {margin-left:auto;margin-right:auto}\
.jsxgraph_button {text-align:center;}\
&lt;/style></pre></li>\
<ul>