File: jsxgraphcurve.input

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 (62 lines) | stat: -rw-r--r-- 1,762 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
!!author: Julien Lyotard
!set anstype=yes
!set anstyle=dprompt
!set ans_require=jsxgraph

!if $wims_read_parm=def
  !exit
!endif
!if $printing=yes
  !set i=$wims_read_parm
  !set id=$(iii)_$i
!else
  !set id=$i
!endif
!set input_type=!text remove 0123456789. in $(replygood$i[2;1])
!default input_type=points
!set input_img=$(replygood$i[1;1])
!set inputsize=!replace internal $	$ by $\
$  in $inputsize

!set inputsize=!nonempty lines $inputsize
!if ?analyze isin $input_img
  !set input_img=!line 2 of $inputsize
  !set input_other=!line 3 to -1 of $inputsize
  !set input_type=!word 1 of $input_other
!endif
!set Inputsize=!line 1 of $inputsize
!set test=!text remove 0123456789x in $Inputsize

!if $test issametext $empty
  !set Inputsize=!replace internal x by , in $Inputsize
  !distribute items $Inputsize into xsize,ysize
!endif
!default xsize=200
!default ysize=200

!if debug iswordof $m_oefenv
  !set showinfobox=true
!else
  !set showinfobox=false
!endif
!set oef_answer_option$i=$xsize,$ysize\
$input_img\
$input_other

<div class="jsxgraph_button">
    <span onclick="zoom_in_jsx$id();" class="wims_button larger" style="cursor:pointer;">+&#x1f50d;</span>
    <span onclick="zoom_reset_jsx$id();" class="wims_button larger" style="cursor:pointer;">=</span>
    <span onclick="zoom_out_jsx$id();" class="wims_button larger" style="cursor:pointer;">&#x1f50e;-</span>
</div>
!read anstype/jsxgraphcurve.inc $input_type,jsreply$i,$xsize,$ysize,$input_img,$id

<div class="jsxgraph_button">
  <span onclick="efface$id();" class="wims_button wims_warning" style="cursor:pointer;">$wims_name_erase</span>
</div>
!if $printing=yes
  !exit
!endif

<input type="hidden" name="reply$i" id="jsreply$i" value="">

!set oef_js_submit=$oef_js_submit capture$i();